Been using HA for a short while and LOVE it. Thanks to everyone who is making this possible!
Is there a way to create a Entity only for saving a state. (in order to use in conditions)
Below is what I am trying to accomplish. Maybe there another/better way?
Thanks so much!
Usage 1: An override. I have my media player trigger a Scence called Movie Time that dims the lights when play is pressed and raises the lights when paused(trigger Movie Pause). I would like to set a state (well unset technically) that prevents the trigger from firing by not fulfilling the condition.
- alias: 'Movie Time'
trigger:
platform: state
entity_id: media_player.kodi
to: 'playing'
action:
service: scene.turn_on
entity_id: scene.movie_play
condition;
platform: state
entity_id: override (pseudo entity)
state: 'false'
Usage 2: I have a dash button setup. When pressed, I would like the ability to know what scene I am in and then turn on another scene. Is there a way to find the last scene turned on? Or for each scene could I set the state of pseudo entity?
[code]scene:
- name: Day
entities:
light.dining_room:
state: on
brightness: 256
light.black_lamp_1:
state: off
light.black_lamp_2:
state: off
light.white_lamp:
state: off
current.scene: (pseudo entity)
state: day
automation:
-
alias: ‘Dash Button press Day to Evening’
trigger:
platform: event
event_type: ‘dash_1_press’
action:
service: scene.turn_on
entity_id: scene.evening
condition:
platform: state
entity_id: (pseudo entity)
state: ‘day’ -
alias: ‘Dash Button press Evening to Night’
…
[/code]
Thanks,
Dustin