mycontroller-org / mycontroller-v1-legacy

The Open Source Controller
http://www.MyController.org
Apache License 2.0
148 stars 90 forks source link

Add the ability of the node to report to MyController that it uses "sleep mode" when registering nodes #435

Closed wanvo closed 6 years ago

wanvo commented 6 years ago

Please add this feature. This feature is needed to automatically register new nodes.

jkandasa commented 6 years ago

@wanvo If I receive, I_PRE_SLEEP_NOTIFICATION from a node, Shall I change it as a sleeping node? Is that looks good?

wanvo commented 6 years ago

Jeeva, I'm not a MySensors library developer, so I can not exactly answer. I'll try to see how the function "sleep" is realized in the "MySensors" library and then I can give an answer. I think some message should be sent before going to sleep. Or do you think you need to make a standalone mechanism for determining the sleeping node, and it will have to send a special message during the presentation?

jkandasa commented 6 years ago

@wanvo I have created a discussion on MySensors forum.

wanvo commented 6 years ago

I think this is what you need. The documentation for the MySensors library states that the I_PRE_SLEEP_NOTIFICATION message is sent from the node before it goes to sleep. This is indicated here.

wanvo commented 6 years ago

Jeeva, ok. Let's wait for the community to say.

wanvo commented 6 years ago

Hi Jeeva. I think you need to use messages I_PRE_SLEEP_NOTIFICATION I_POST_SLEEP_NOTIFICATION The community says this

jkandasa commented 6 years ago

@wanvo I have added an implementation in SNAPSHOT version. Can you please check it and report back?

wanvo commented 6 years ago

@jkandasa I can not test this snapshot now unfortunately. I left for the wild mountainous terrain, and the internet is very slow and expensive here.

jkandasa commented 6 years ago

@wanvo no problem. When you back, test this and report the status. Thank you!