requesting data from controller (Domoticz)
Njwyborn last edited by Njwyborn
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
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.