const states = global.get('homeassistant.homeAssistant.states') const room = states['input_select.kallen_activity_room'].state const activity = states['input_select.kallen_activities'].state msg.topic = room msg.activity = activity msg.payload = 'activity timer completed, good job!' node.status({ fill: "green", shape: "dot", text: "Sent" }) return msg