I have tried to get the automation config listed, working with a state condition, but I did not succeed, Did read a lot of posts and documentation. What I want to establish is change the UP button action on the remote acting like a DOWN button (state= closed) if the last press was an UP also (State=open) .
my code:
- alias: 'Steren remote Up' # Up button
trigger:
- platform: event
event_type: button_pressed
event_data:
entity_id: cover.55_study_blind
state: 'up' # this is what the event data lists
condition: # when I leave the condition section out, action is executed
condition: state # when included that section, action is not executed
entity_id: cover.55_study_blind
state: 'open' # this is what developer tool list as the state
action:
- service: notify.notify
data:
message: pressed but.{{trigger.event.data.state}} in remoteUp