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

Moderator: leecollings

Post Reply
superkris
Posts: 13
Joined: Friday 25 March 2016 16:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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?
superkris
Posts: 13
Joined: Friday 25 March 2016 16:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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 1677 times
Internally i could use JSON commands to sent a value to the mysensors device:
dummy.JPG
dummy.JPG (102.64 KiB) Viewed 1677 times
Will this work, and is it a efficient way to do this?
superkris
Posts: 13
Joined: Friday 25 March 2016 16:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest