You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getStates
function (IDs, callback)
get the states of more than one state. This command normally is called after the connection is established to get the actual states of used data points.
IDs - pattern or array with IDs. Could be omitted to get all states. Patterns could have wildcards, like: '.STATE', 'haa.0.'
callback - function (error, states) {} - states is object like {'id1': 'state1', 'id2': 'state2', ...}. stateX are objects with the structure described above.
Problem:
Wildcards are only possible using a single id like:
ids= 'bshb.0.*.RoomClimateControl.setpointTemperature';
Using several ids in an array, wildcards don't work:
ids = [ 'bshb.0.', 'hue-extended.0.'];
The text was updated successfully, but these errors were encountered:
In general "yes this is the current intended behavior". You can provide ONE pattern string OR a list of concrete State IDs. SO this is a feature request tp also support a list of patterns
From the readme file:
getStates
function (IDs, callback)
get the states of more than one state. This command normally is called after the connection is established to get the actual states of used data points.
IDs - pattern or array with IDs. Could be omitted to get all states. Patterns could have wildcards, like: '.STATE', 'haa.0.'
callback - function (error, states) {} - states is object like {'id1': 'state1', 'id2': 'state2', ...}. stateX are objects with the structure described above.
Problem:
Wildcards are only possible using a single id like:
ids= 'bshb.0.*.RoomClimateControl.setpointTemperature';
Using several ids in an array, wildcards don't work:
ids = [ 'bshb.0.', 'hue-extended.0.'];
The text was updated successfully, but these errors were encountered: