Hi,
I need your support.
I have a Sonoff TH16 with Tasmota and use him to controll my heater in the badroom.
This one is controlled with the default thermostat rule from here:
https://github.com/arendst/Sonoff-Tasmota/wiki/Rule-Cookbook#thermostat-example.
This part is working fine, but I want now to see in the frontend the available status + is it on/or off and want to switch him on.
This is comming from console:
18:04:33 MQT: bad/handtuchtrockner/stat/RESULT = {"Var1":"1"}
18:04:33 MQT: bad/handtuchtrockner/stat/RESULT = {"T1":70,"T2":0,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}
18:04:33 MQT: bad/handtuchtrockner/stat/RESULT = {"Event":"Done"}
18:04:33 MQT: bad/handtuchtrockner/stat/RESULT = {"Event":"Done"}
18:05:34 MQT: bad/handtuchtrockner/tele/STATE = {"Time":"2019-09-05T18:05:34","Uptime":"2T21:39:21","Vcc":3.195,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"POWER1":"OFF","Wifi":{"AP":1,"SSId":"*****","BSSId":"****","Channel":11,"RSSI":38,"LinkCount":2,"Downtime":"0T00:01:07"}}
18:05:34 MQT: bad/handtuchtrockner/tele/SENSOR = {"Time":"2019-09-05T18:05:34","SI7021":{"Temperature":23.0,"Humidity":45.7},"TempUnit":"C"}
18:05:34 RUL: TELE-SI7021#TEMPERATURE performs "backlog backlog var1 1; RuleTimer1 70; event ctrl_ready=1; event temp_demand=23.0"
now my problem, to configurate correct the switch.
- platform: mqtt
name: "Handtuchtrockner unten"
state_topic: "bad/handtuchtrockner/stat/RESULT"
command_topic: "bad/handtuchtrockner/cmnd"
payload_on: "mem1 1"
payload_off: "mem1 0"
availability_topic: "bad/handtuchtrockner/stat/RESULT"
value_template: "{{ value_json.Var1 }}"
payload_available: "1"
payload_not_available: "0"
Whow can help me?
I saw also, that I can use a generic Thermostat.
But here I need an switch and a sensor...
the next two problem ....
Thank you for your help