stefanbode / Sonoff-Tasmota

Provide ESP8266 based itead Sonoff with Web, MQTT and OTA firmware using Arduino IDE, enhanced with I2C options
GNU General Public License v3.0
127 stars 41 forks source link

force tele #76

Closed madmicio closed 5 years ago

madmicio commented 5 years ago

here I am with a new request. is it possible to send tele/XXXXXXXX/SENSOR immediately after the end of the shutter movement, without waiting for teleperiod? this would be useful to immediately update the position of the shutter and would allow not having to set very short teleperiod times. for the moment I solved by taking the position from stat/XXXXXXXX/SHUTTER1. works well. the only problem is that if electricity is removed,when all the system power on again, the position does not update until the next movement of the shutter

stefanbode commented 5 years ago

This information is already there because you're right it makes sense.

20:05:14 RSL: STATE = {"Time":"2018-10-06T20:05:14","Uptime":"0T00:12:06","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","POWER4":"OFF", "Wifi":{"AP ":1, "SSId ":"BodeNet_Keller", "BSSId ":"38:10:D5:14:E6:70", "Channel":6, "RSSI":72}, "DeepSleep":0, "Heap":17976}
20:05:14 RSL: SENSOR = {"Time":"2018-10-06T20:05:14","ANALOG":{"A0":2},"SHUTTER-1":0,"SHUTTER-2":0}

for MQTT:

00:01:00 MQT: hm/status/sonoff/STATE = {"Time":"1970-01-01T00:01:00","Uptime":"0T00:00:58","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","POWER4":"OFF", "Wifi":{"AP ":1, "SSId ":"BodeNet_Keller", "BSSId ":"38:10:D5:14:E6:70", "Channel":6, "RSSI":74}, "DeepSleep":0, "Heap":21608}
00:01:00 MQT: hm/status/sonoff/SENSOR = {"Time":"1970-01-01T00:01:00","ANALOG":{"A0":2},"SHUTTER-1":0,"SHUTTER-2":0}