Current state of K's activity timer

This commit is contained in:
2023-10-02 15:53:45 -04:00
parent 915183c899
commit cc21c329fe
6 changed files with 82 additions and 0 deletions

View 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