Node update on value from Domoticz



  • Long story short, what is returned by Domoticz when a V_VAR1 is requested back to the Node ? What was sent as a Long originally, or does it return a string ?


    Log in to reply
     


  • @zboblamont OK, so experiments concluded that the return data from the latest version of Domoticz is a String whether it be V_VARx or V_TEXT.

    I tried the dual declaration using the same CHILD_ID as intended and as VAR_X (using an RF24 - not sure of the relevance) and the actual value sent but failed to make any sense of abstracting the Ulong conversion or the string.
    Only by presenting a fresh CHILD_ID and duplicating the send of data (water meter) as a V_VAR1 could I recover the last sent reading as a V_VAR1 from that fresh CHILD_ID, thence eventually arriving at 'strtoul' as a solution to restoring the last known value.
    For clarity my Gateway and Controller run on a UPS, and I hope shortly to add the spare router to that UPS so I'm not left in the dark on what is happening in the dark on a battery powered laptop...
    Hope this helps others trying to keep track of meters between relentless power cuts and reboots...


Log in to reply
 

2 out of 2

Suggested Topics


  • Troubleshooting   30 Mar 2014, 07:20

    5

  • Domoticz   28 Nov 2024, 05:38

    1
  • 3

  • Domoticz   9 May 2022, 17:30

    5

  • Domoticz   21 Jun 2022, 20:48

    8

15
Online

11.5k
Users

11.1k
Topics

112.8k
Posts