Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rule "Alexa - Fenster offen"
- when
- Member of Amazon_Echos changed to "sind noch fenster offen"
- then
- val currentEcho = Amazon_Echos.members.sortBy[lastUpdate].last
- val OffeneFenster = Fenster.members.filter[ i | i.state == OPEN ].map[ label ].reduce[ s, label | s + ", " + label ]
- if(Fenster.state == OPEN) {
- currentEcho.sendCommand("Ja, folgende Fenster sind geƶffnet. " + OffeneFenster)
- }
- else {
- currentEcho.sendCommand("Nein alle Fenster sind zu")
- }
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement