Page 1 of 1

Sending a time of other value from Domoticz to a Mysensor device

Posted: Monday 11 April 2016 22:54
by superkris
Hey guys,

I asked this on the mysensors forum too, but i'm looking for some specific domoticz functions.

For modifying a irrigation computer, i want to sent a "turn on for a X amount of time" function in Domoticz. More details on why i want this, can be found here.

It would be great if could add a device in domoticz that looks like a timer, and would just sent any time i want to the mysensors device. However, a device that would send another value (for example 1-10) would work to.

I want this device to be activated by scripts (blocky or LUA) or manual activation. But in both cases only a value must be send. I will make the mysensor device understand this as a "turn on for X minutes" command. Domoticz will not need to sent a off command. Only if this is activated manually. The mysensor device will sent a off signal itself when done.

Any tips on how to get such a function in domoticz?

Re: Sending a time of other value from Domoticz to a Mysensor device

Posted: Tuesday 12 April 2016 0:26
by superkris
I have been reading a lot. Pleas understand i'n not very good at programming and scripts. I basicly have no knowledge of this.

So i was reading a lot about Dummys and JSON. So far i have not find a function that sets a time, but i did found a selector switch that may just do what i need.
sproei compuer.JPG
sproei compuer.JPG (21.91 KiB) Viewed 1679 times
Internally i could use JSON commands to sent a value to the mysensors device:
dummy.JPG
dummy.JPG (102.64 KiB) Viewed 1679 times
Will this work, and is it a efficient way to do this?

Re: Sending a time of other value from Domoticz to a Mysensor device

Posted: Tuesday 12 April 2016 16:31
by superkris
Thanks for your feedback. If i understand right, you suggest that the "off" control should be given by Domoticz. However, i want this to be handeled by the mysensor module. Domoticz is very stable, but i still dont want to risk the off signal not reaching the mysensors device.

Why do you think this is the wrong way to do this?