@danielgroenbek wrote:
Can you help me create a script for a single button press to toggle between multiple light scenes/scenarios? I believe it should include a state so the script know what scene comes next.
I still haven’t decided if I should toggle between hue.scenes or light config in yaml, as I haven’t selected my path on lights yet (IKEA or HUE).
Example on what needs to be toggled if we go with the script (activates a Hue Scene):
group_name: Sofa
scene_name: Bright
scene_name: Relax
scene_name: PartyJust added the yaml code here.
- id: ‘1583061829815’
alias: Ny automatisering toggle test
description: ‘’
trigger:
- device_id: 80188063433d445986cdc3bfa1f7fd89
domain: deconz
platform: device
subtype: turn_off
type: remote_button_short_press
condition: []
action:- data:
group_name: Sofa
scene_name: Bright
service: hue.hue_activate_scene- data:
group_name: Sofa
scene_name: Relax
service: hue.hue_activate_scene- data:
group_name: Sofa
scene_name: Party
service: hue.hue_activate_sceneThanks
Posts: 2
Participants: 2