Closed jensflorian closed 4 years ago
Hi, I'm Glad the setup is easy.
You might not be using a key:value pair for setting new Characteristics Obtaining the current values is indeed done using a simple string
{
payload: "GetCharacteristics"
}
Setting Characteristics, should be done using a key:value pair, as multiple can be set at the same time
{
payload: {
"CurrentTemperature": 65
}
}
Do let me know if this helps.
Finally, I got it. In the properties tab of the Inject node, you have to select JSON for Payload. Then the command is accepted.
Thanks for the help!
Yup! I created the node(s) in such a way that setting Characteristics needs to be done using a key:value pair (a JSON object with properties), so multiples can be set as the same time.
In essence, the inject node will always wrap what is being injected, into a payload object:
As a string:
{
payload: "GetCharacteristics"
}
As a JSON object
{
payload: {
"Characteristic": value,
"AnotherCharacteristics": value
}
}
Glad its working for you - and you are very welcome.
Hello, Setting up your nodes is really easy! Now I am currently trying to set values to a HK-thermostat node to check if changes are shown in HomeKit. When injecting as a string
I get following debugging output:
The command GetCharacteristics works as expected and returns
What am I doing wrong? Any help with some examples is much appreciated, as I could not find any exemplaric flows at https://flows.nodered.org/