I know this is easy, but my searching for an hour has not solved. I’m trying to use change node to set a flow to a value from the sensor attributes. This is sensor data:
Whilst HA does a nice job of turning spaces in names into underscores, Node-RED does not.
Where the JSON key contains spaces (and also apparently ‘-’ which is seen as a minus sign) you need to use the ‘[ ]’ syntax as the ‘.’ property accessor does not work.