Current state of K's activity timer
This commit is contained in:
11
kallen-timer/announce-finish.js
Normal file
11
kallen-timer/announce-finish.js
Normal file
@ -0,0 +1,11 @@
|
||||
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
|
Reference in New Issue
Block a user