Originally posted by DonMor
View Post
In this way, I can switch on and off light from homeseer and from arduino.
My solution is move from arduino plugin to mqtt plugin.
This is a very good solution for me.
Example, I have a bedroom switch and light (switch input, light output).
With arduino plugin i had a script: if switch (input) value change --> toggle light (output).
I want to use a arduino board independent from homeseer.
So my sketch on arduino is: if switch (input) value change --> toggle light (output) and it work without homeseer. When output change, arduino send a mqtt data to homeseer that update the bedroom light device. If I press "OFF" on the bedroom light device (on homesser webpage), hs send an mqtt data to arduino, arduino switch off the bedroom light. In this way, I can toggle the bedroom light even if homeseer (or arduino plugin, or wifi (for esp8266)) is down. Every change is reported from<->to homeseer by mqtt data.
Now I'm working to write the sketch for all my devices in order to have my home automation independent from HS. HS is used for complex event but if a night I arrive to home and hs server is down, I can switch on all my lamps in home...
Leave a comment: