Hi!
I am using Home Asistant and am pretty new to Node Red. Easiest thing, I thougth to start with, will be a trigger-state
on device_tracker.
with a condition. But I won’t, as you can see in the error messages.
What did I try?
If the attribute is_guest
of any entity with the substring device_tracker
changed to true
, do something.
Regarding the debugger, the condition can not find the entity and data:
Here is my flow:
[
{
"id":"2271eaf1.e0ebbe",
"type":"tab",
"label":"Flow 4",
"disabled":false,
"info":""
},
{
"id":"c9debe4c.c57ae8",
"type":"trigger-state",
"z":"2271eaf1.e0ebbe",
"name":"",
"server":"aa441305.98478",
"exposeToHomeAssistant":false,
"haConfig":[
{
"property":"name",
"value":""
},
{
"property":"icon",
"value":""
}
],
"entityid":"device_tracker.",
"entityidfiltertype":"substring",
"debugenabled":true,
"constraints":[
{
"targetType":"this_entity",
"targetValue":"",
"propertyType":"property",
"comparatorType":"is",
"comparatorValueDatatype":"bool",
"comparatorValue":"true",
"propertyValue":"data.event.new_state.attributes.is_guest"
}
],
"outputs":2,
"customoutputs":[
],
"outputinitially":false,
"state_type":"str",
"x":210,
"y":240,
"wires":[
[
"9186030b.6b93c"
],
[
]
]
},
{
"id":"9186030b.6b93c",
"type":"debug",
"z":"2271eaf1.e0ebbe",
"name":"",
"active":true,
"tosidebar":true,
"console":false,
"tostatus":false,
"complete":"true",
"targetType":"full",
"statusVal":"",
"statusType":"auto",
"x":750,
"y":240,
"wires":[
]
},
{
"id":"aa441305.98478",
"type":"server",
"name":"Home Assistant",
"addon":true
}
]
Altering the data property to data.event.new_state.attributes.is_guest
also did not work
Any ideas on that?