I am new to Home Assistant and I need some help.
This is the situation:
- installed Home Assistant on a Raspberry PI4.
- installed MQTT Mosquitto and configured
- Flashed Sonnof swithch with tasmota and configured the MQTT
- Adapt the configuration.yaml
If I set up in sonoff console ‘SetOption19 1’ the device is properly discovered and displayed in HA overview.
If I set up in sonoff console ‘SetOption19 0’ the device is not available anymore.
Setting the switch manually does not work.
Could anybody please help me in this matter?
mqtt: broker: core-mosquitto username: user password: pass discovery: true switch: - platform: mqtt name: "Plug" command_topic: "cmnd/Plug1/power" state_topic: "stat/Plug1/power" availability_topic: "tele/Plug1/LWT" payload_on: "ON" payload_off: "OFF" qos: 0 retain: true
The sonoff configuration
the MQTT config
logins: - username: user password: pass anonymous: false customize: active: false folder: mosquitto certfile: fullchain.pem keyfile: privkey.pem require_certificate: false