Hello
Looking for a bit of advice otherwise I will rebuild. Since updating to 3.10 it seems nothing works with my configured MQTT devices.
EDIT: I have deleted and reinstalled MQTT and all is well, the post is now a useful resource for a good working MQTT configuration with Sonoff/Tasmota Bridge, PIR2 sensor and Sonoff basic switches.
MQTT Config as follows: Passwords and usernames have been redacted.
logins:
- username: [REDACTED]
password: [REDACTED]
anonymous: false
customize:
active: false
folder: mosquitto
certfile: fullchain.pem
keyfile: privkey.pem
require_certificate: false
folder was never created as everything is working.
configuration.yaml containing hub, sensor and switch, no changes prior to update
# hub #
sensor:
- platform: mqtt
state_topic: 'tele/sonoff/RESULT'
name: sonoff
value_template: "{{ value_json.RfReceived.Data }}"
expire_after: 1
# IR sensor #
binary_sensor:
- platform: template
sensors:
sonoff_pir_1:
value_template: '{{ is_state("sensor.sonoff", "EA360E") }}'
delay_off: '00:00:03'
device_class: motion
friendly_name: "PIR One"
# Switches #
switch:
- platform: mqtt
name: "Office Light"
state_topic: "stat/office_light/RESULT"
value_template: "{{ value_json.POWER }}"
command_topic: "cmnd/office_light/POWER"
availability_topic: "tele/office_light/LWT"
payload_on: "ON"
payload_off: "OFF"
payload_available: "Online"
payload_not_available: "Offline"
qos: 1
retain: true
Thanks