Howto combine multiple states from a sensor in one telegram message?


i dont have a clue how to approach this one. how can i make a telegram message saying:

Hi, right now its $temp in the bathroom and the humidity is $humidity

so you need 2 (or more) states as msg.payload now i can use the change node to change msg.payload to msg.temp or hum and that works but i can’t figure out how to use two states

this is the information:

philips hue sensor with the states:


i’ve been googling for hours but it seems i’m the only one with this problem.

anyone help?

Set the data field to JSON and use {{msg}}