requesting data from controller (Domoticz)



  • Hi All,

    I have a battery node, which I wish to poll the latest data from the controller.
    I am using a presentation
    present(CHILD_ID_WATERTIME1, S_HEATER, "Water Time1 Min", false);

    I request data
    request( CHILD_ID_WATERTIME1, V_HVAC_SETPOINT_HEAT);

    The returned and actioned result has no data payload

    119631 TSF:MSG:SEND,33-33-0-0,s=11,c=2,t=47,pt=0,l=0,sg=0,ft=0,st=OK:
    119676 TSF:MSG:READ,0-0-33,s=11,c=2,t=47,pt=0,l=0,sg=0:

    the true data is 13

    I have tried V_VAR1, indeed, in a loop I have tried types "0" to "50"

    I have gotten round this by having the node set a value of a child item, and then run a script to "push" the values to the node, which works fine,
    The code in the "command" and "request" functions is identical, one returns a data value, one does not.

    I realise I must be doing something fundamentally wrong.
    Does Domoticz have issues with requests? It all seems fine on the controller page on this website.

    The code is a bit of a mess at the moment, as I have been trying to get the request working.

    Regards and thanks, Nigel

    Got a work around, used S_INFO and V_TEXT.

    THE CONTROLLER page definitely shows Thea requests are supported for almost all types, so something isn't right.


Log in to reply
 

Suggested Topics

175
Online

10.2k
Users

10.6k
Topics

109.2k
Posts