Losing Web interface
After few weeks of using Sonoff RF Bridge I noticed that sometimes i lose access to the device over a web. Controller stops respond via ping and web is inaccessible however I still can maintain over MQTT or OpenHAB.
I checked forums but did not find anything useful. There was an issue in core library but the latest one should not be buggy. Anyway I use the following workaround. I decided twice a day restart Sonoff RF Bridge via MQTT run in OpenHAB.
MQTT command for restart:
1 |
cmnd/sonoff-bridge/Restart 1 |
OpenHAB rule
1 2 3 4 5 6 7 8 |
rule "sonoffbridge-restart" when Time cron "0 0 4 ? * MON-SUN" or Time cron "0 0 12 ? * MON-SUN" then val actions = getActions("mqtt","mqtt:broker:localbroker") actions.publishMQTT("cmnd/sonoff-bridge/Restart","1") end |
Proper time
I do not use console too much neither Timer but actually time was not shown in the correct timezone. What we may do? There are two commands. First set NTP server another one set timezone UTC+2 (you may set values -13..13) :
1 2 3 4 5 |
09:17:20 CMD: NtpServer1 162.159.200.123 09:17:20 MQT: stat/sonoff-bridge/RESULT = {"NtpServer1":"162.159.200.123"} 09:18:59 CMD: Timezone 2 09:18:59 MQT: stat/sonoff-bridge/RESULT = {"Timezone":"+02:00"} |
Power saving
Using the Sleep
command you can instruct Tasmota to sleep for the set milliseconds in its main cycle. While sleeping your device will consume less power.
Dynamic Sleep is enabled by default with a value of 50. I have increased to 200:
1 2 3 4 |
10:20:20 CMD: Sleep 10:20:20 MQT: stat/sonoff-bridge/RESULT = {"Sleep":"50 (50)"} 10:21:51 CMD: Sleep 200 10:21:52 MQT: stat/sonoff-bridge/RESULT = {"Sleep":"200 (200)"} |