Witam, w config/configuration.yaml mam tak ustawione :
chciałem skonfigurować zwykłe sensory z esp i nie wiem co napisałem nie tak ?
# Kontaktron Brama Garażowa mqtt: binary_sensor: - name: "BramaGarazowa" state_topic: "Test_107/Kontaktron/State" payload_on: "1" availability: - topic: "Test_107/Kontaktron/availability" payload_available: "online" payload_not_available: "offline" qos: 2 device_class: opening # Alarm Lampa mqtt: binary_sensor: - name: "AlarmLampka" state_topic: "Test_107/Alarm_lampka/State" payload_on: "1" availability: - topic: "Test_107/Alarm_lampka/availability" payload_available: "online" payload_not_available: "offline" qos: 2 device_class: light # Alarm Syrena mqtt: binary_sensor: - name: "AlarmSyrena" state_topic: "Test_107/Alarm_syrena/State" payload_on: "1" availability: - topic: "Test_107/Alarm_syrena/availability" payload_available: "online" payload_not_available: "offline" qos: 2 device_class: sound
To sobie odpowiem:
Dodałem w configuration.yaml --> mqtt: !include mqtt.yaml
a tam już poszło dalej i zadziałało i działa dalej 🙂
binary_sensor: - name: BramaGarazowa state_topic: "Test_107/Kontaktron/State" payload_on: "1" payload_off: "0" qos: 2 device_class: opening - name: AlarmLampka state_topic: "Test_107/Alarm_lampka/State" payload_on: "1" payload_off: "0" qos: 2 device_class: light - name: AlarmSyrena state_topic: "Test_107/Alarm_syrena/State" payload_on: "1" payload_off: "0" qos: 2 device_class: sound