I have this:
I swear it always worked but now the current state is not forwarding anything anymore.
[{"id":"e143dcb59df2ee80","type":"api-current-state","z":"3732525b.226766","name":"cover > 20%","server":"c6b350c5.b8b3c","version":3,"outputs":2,"halt_if":"$entity().data.new_state.attributes.current_position > 20","halt_if_type":"jsonata","halt_if_compare":"jsonata","entity_id":"cover.rolluik_woonkamer_groot_voor_143","state_type":"num","blockInputOverrides":false,"outputProperties":[{"property":"data.original_state","propertyType":"msg","value":"","valueType":"str"}],"for":0,"forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":710,"y":2580,"wires":[["319f2fb3319aaec4"],[]]},{"id":"49efa08fa0a5d29a","type":"inject","z":"3732525b.226766","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":540,"y":2580,"wires":[["e143dcb59df2ee80"]]},{"id":"319f2fb3319aaec4","type":"api-call-service","z":"3732525b.226766","name":"","server":"c6b350c5.b8b3c","version":5,"debugenabled":false,"domain":"switch","service":"toggle","areaId":[],"deviceId":[],"entityId":["switch.relay_1_relay_3"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":910,"y":2580,"wires":[[]]},{"id":"c6b350c5.b8b3c","type":"server","name":"Home Assistant","version":5,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30,"areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m","enableGlobalContextStore":true}]
What is the correct syntax/way to see the current state of the cover?
This is all the output it gives:
I want to check this value:
data.new_state.attributes.current_position
I had this:
but it gives:
what’s wrong?
Edit: it dos not “pass” anything if the cover is at 60%, thus is does not toggle.
Edit2: hmz… I was tinkering with this before: Current State node - attributes - #11 by Kermit
But now it suddenly does not work anymore I believe