Accessing MySensors Child value via dzVents

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
lamptah
Posts: 5
Joined: Tuesday 04 September 2018 3:37
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Accessing MySensors Child value via dzVents

Post by lamptah »

Is it possible to set the hardware value of a MySensors child via dzVents? These values seem to be purged during a restart of domoticz, and the IR Send command is relying on finding a previously received V_IR_RECEIVE in the values. Which works fine as long as domoticz was not restarted and purged any previously received V_IR_RECEIVE value, but after a restart the send function is defunct until a code is first received again.

This seems to be due to the fact that the value of the MySensors child is purged upon domoticz restart, and the WriteToHardware function uses `FindChildByValueType(V_IR_RECEIVE);` to find the child (and value to send).

After domoticz restart:
Image
After child refreshes IR code:
Image

So unless I force the MySensors node to periodically refresh all possible codes, I would need to manually set them with dzVents upon domoticz restart. Is that possible?

Thanks!
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Accessing MySensors Child value via dzVents

Post by waaren »

lamptah wrote: Thursday 11 October 2018 5:05 Is it possible to set the hardware value of a MySensors child via dzVents?
Probably only if you know the JSON to set this.
You can try to catch the JSON by going into developer tools of the chrome browser by pressing <CTRL> <SHIFT> <I> and enter the command.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest