I’ve three Tasmota Sonoff devices. When they’re auto-discovered, they work fine.
I want to know the Wifi signal strength of some of them, so I’ve added:
sensor:
- platform: mqtt
state_topic: "bridge/tele/state"
name: "SocketRSSI"
unit_of_measurement: "%"
value_template: "{{ value_json.Wifi.RSSI }}"
payload_available: "Online"
payload_not_available: "Offline"
It didn’t work. The dev-state page tells me that for sensor.socketrssi the state is unavailable.
So, I’m thinking: “Maybe it’s because it was auto-discovered?” Can anyone confirm if this is relevant?
Or, can anyone indicate what stupid thing I’m doing?
What is it that causes the bridge/tele/state packet to be published, anyway? I don’t see this packet appear in the sonoff’s console.
Anyway, I took the plunge and setoption19 off on the S20, and tried to manually configure it. I’m going to have to do this at some point for some ESP8266 project ideas I have. May as well learn how to configure a device which I know is working.
I’ve added:
switch:
- platform: mqtt
name: "S20 Switch"
state_topic: "S20_01/tele/STATE"
value_template: "{{ value_json.POWER }}"
command_topic: "S20_01/cmnd/POWER"
availability_topic: "S20_01/tele/LWT"
qos: 1
payload_on: "ON"
payload_off: "OFF"
payload_available: "Online"
payload_not_available: "Offline"
retain: false
But when I go to the dev-state page, the entry for switch.s20_switch is showing as unavailable!
I’m losing my mind. I’m at a point were I’m ready to give you guys the URL and password for my installation and tell me what I’m doing wrong. I’m really not stupid, but some fundamental concept has clearly escaped me here.
I’ve actually stripped out eveything from my configuration.yaml file apart from the external broker config and this one switch. It’s just not working.
Any thoughts, please?