SOLVED (for me): This will enable one physical button to cycle through scenes using the Smartthings Hub using the event_type: “smartthings.button”
Create your Scenes in scene creator (Configuration -> Scenes).
The scene creator will save the current state of your devices at the time you save them, for example 3 different dim levels are 3 different scenes, set the dim level (I did it on my hue phone app), save the scene.
Once created, the name you have chosen for your scene is simply the friendly name you use in the Menu under the options. You can find them all in File Editor -> Open -> Scenes.yaml
Here’s the scene entity example:
- id: '1592734165530'
name: Dimmed50
entities:
light.hue_filament_bulb_1:
brightness: 126
friendly_name: Hue filament bulb 1
state: 'on'
supported_features: 41
- id: '1592735231307'
name: LR Bright
entities:
light.hue_filament_bulb_1:
brightness: 255
friendly_name: Hue filament bulb 1
state: 'on'
supported_features: 41
- id: '1592735550593'
name: LR Max Dim
entities:
light.hue_filament_bulb_1:
brightness: 1
friendly_name: Hue filament bulb 1
state: 'on'
supported_features: 41
Create your Input Select in the Configuration.yaml
This is your “menu”, so pop those names you created earlier in to the menu like so:
#Create Menu
input_select:
lr_brightness: #Custom Variable
options:
- Dimmed50
- LR Max Dim
- LR Bright
initial: LR Bright
In automations.yaml create your trigger for the button then create actual scene selections
Configuring “Actions”:
You want to use the preexisting service: input_select.select_next
This will cycle through the input_select “menu” defined in your Entity ID below
Your Entity_id must link to the custom variable (your chosen name, lr_brightness in my case) as seen above:
input_select.lr_brightness
#Automate Scene Rotation on Button2 Held
- alias: LR Dim Rotation
trigger:
platform: event
event_type: "smartthings.button"
event_data:
component_id: "button2"
name: "LR Aeotec Remote"
value: "held"
action:
service: input_select.select_next
entity_id: input_select.lr_brightness
Next the Actual Scene selections
Configure trigger -> “to:” with your Menu option name
Configure action -> “entity_id:” to the scene entity.
To confirm the scene entity go to Developer Tools -> Services and confirm the name of your entity:
Also in Automations.yaml
#Create Scene Selection
- alias: Full Brightness selected
trigger:
platform: state
entity_id: input_select.lr_brightness
to: "LR Bright"
action:
service: scene.turn_on
entity_id: scene.lr_bright
- alias: 50% Brightness
trigger:
platform: state
entity_id: input_select.lr_brightness
to: "Dimmed50"
action:
service: scene.turn_on
entity_id: scene.dimmed50
- alias: Dimmed
trigger:
platform: state
entity_id: input_select.lr_brightness
to: "LR Max Dim"
action:
service: scene.turn_on
entity_id: scene.lr_max_dim
Done