NR not getting HA globals

Hi,

Quick question trying to get a HA variable in NR but keep getting “undefined”
Running HA (latest 2022.9.6) and NR also latest (13.4.0)

This is the inject node:

[{"id":"cc77b21808935d5b","type":"inject","z":"69588d0ab0888635","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"homeassitant.homeAssistant.states[\"sensor.memory_free\"].state","payloadType":"global","x":570,"y":840,"wires":[["c7194907ecbf5fdf"]]}]

which gives:

[node: return](http://homeassistant.local:1880/#)msg.payload : undefined
undefined

and this is what context gives me:

{"entity_id":"input_number.set_temp_kasten","state":"20.0","attributes":{"initial":null,"editable":true,"min":0,"max":25,"step":1,"mode":"box","unit_of_measurement":"²C","icon":"mdi:temperature-celsius","friendly_name":"set_temp_kasten"},"last_changed":"2022-09-23T19:52:22.203259+00:00","last_updated":"2022-09-23T19:52:22.203259+00:00","context":{"id":"01GDNYGZDVWVHR4FA6P6KVGYWV","parent_id":null,"user_id":null}}

I’m missing something I think…

Because this flow does succeed.

[{"id":"57027070e538fefa","type":"inject","z":"69588d0ab0888635","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"true","payloadType":"bool","x":190,"y":340,"wires":[["f92cd31d643fc8b2","d5a01328196604ea"]]},{"id":"d5a01328196604ea","type":"api-current-state","z":"69588d0ab0888635","name":"","server":"1573e18.cbf251f","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_number.last_change_status_frontdoor","state_type":"num","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"input_number.last_change_status_frontdoor","valueType":"str"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":510,"y":340,"wires":[["344224c7dd91a1c3"]]},{"id":"344224c7dd91a1c3","type":"change","z":"69588d0ab0888635","name":"","rules":[{"t":"set","p":"kast_set_temp","pt":"global","to":"payload","tot":"msg","dc":true}],"action":"","property":"","from":"","to":"","reg":false,"x":850,"y":340,"wires":[[]]},{"id":"1573e18.cbf251f","type":"server","name":"Home Assistant","version":4,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":true,"heartbeatInterval":"30","areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m"}]

But that seems to be a bit much if I need to do that foor all 500 of em…

In the first node, you have misspelled homeassistant - you have homeassitant (without the 3rd s).

:man_facepalming:not as if I haven’t made that error before …