This device is not showing a switch I configured on the device. I would like it to show as a sensor.
I have created it in HA via MQTT template but feel I should not have to?
- platform: mqtt
name: "Coffeemaker"
unique_id: kitchenaid_coffee_brewing
icon: mdi:coffeemaker-outline
state_topic: "tele/coffeemaker/SENSOR"
value_template: '{{ "Idle" if value_json.Switch1 == "OFF" else "Brewing" }}'
availability_topic: "tele/coffeemaker/LWT"
payload_available: "Online"
payload_not_available: "Offline"
qos: 1
My goal is to have a switch associated with a relay pin to trigger brewing, and this currently seems to work. But I want another “sensor” pin that is driven high/low by the brewing LED. Currently, if I pull D2/GPIO4 low, the MQTT sensor shows idle, and brewing when not pulled low, but I am not seeing this entity in the HA Tasmota integration. What am I doing wrong?
Additional info:
Template:
{"NAME":"KitchenAid","GPIO":[1,1,1,1,160,225,1,1,1,1,161,1,1,1],"FLAG":0,"BASE":18}