11 lines
350 B
JavaScript
11 lines
350 B
JavaScript
var states = global.get('homeassistant.homeAssistant.states')
|
|
var room = states['input_select.kallen_activity_room'].state
|
|
var 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 |