I am in Electrical Engineering industry for 4 years, in fact, I love to mess with electronic components, theory and applications of EE. For me, it is the queen of all Engineering branches, what you say?
@Erik-Forsberg
I think one should be a bit careful about making too many special rules for different cases, between device and controller. I think there should be set ways of communicating between the controller and device. There should also be ways for the user to make rules to create the automations, but this should not change the set ways for communication.
In this case, when we need an initial value from the user, which should be automated somehow, I think the user should be able to make rules, and somehow be able to set an initial state, by controller API or other means. But I think that should be detached from the specific device - controller communication.
You can have a look at my handle_req branch here:
https://github.com/MartinHjelmare/pymysensors/tree/handle_req
I would say your implementation looks fine, although I have some comments. We can continue at github.
@Sean-Brockest said:
not sure what a node or controller is. I don't care how it works, really.
A node would be a MySensors device (arduino with a radio module) with one or more of the following attached; sensor, relay, switch, or something like that. The radio module would talk to a gateway node that is attached to a computer running some kind of controller (Home Automation) software.
If this one thing is all you are trying to do and you are not trying to set up other home automation stuff, you shouldn't need the whole MySensors setup. You could probably do this with just an arduino board, 2 DS18B20 temp sensors and a relay module. The only problem in that would be that you would have to program it for a certain temp differential and any hysteresis that you would want in play, and it would be static until you re-programmed the arduino with new values. There would be ways to set it up to be programmed as far as the set temps and the switching, but that would take a lot more hardware such as an LCD screen and some switches for programming. It would also make the arduino code quite a bit more complex.
@Dick Still trying to find the problem. What I did in the past hours, fresh install of the Pi and the Mysensors gateway, Connect a Node and activate them in Domoticz.It works good (4 relays wih button). Adding anothe nod, instaling no problem and actiate in Domotic. Tst all the active sensors and nothing works. Deleted all the active sensors and dit the same as befor only i gave the nodes a radio ID. Sme resut, frst node worked goodand addig a second, nothing woks. Beore adding the node I tested them on a test module. Does have anybody an Idea??