Hi, this time no question, but just want to attribute my automation.
Just received my new voice sattelite, and playing with it.
Here my results…
I have action for all buttonclicks and for spinning the wheel.
No idea how to fire the easter egg, but it has an action in the script…
Last thing to do is to give the volume of the tv a maximum, so it wont be too hard
You alias: voiceassistant
description: ""
triggers:
- trigger: state
entity_id:
- event.home_assistant_voice_09277b_button_press
id: knop
enabled: true
- trigger: state
entity_id:
- media_player.home_assistant_voice_09277b_media_player
id: volume
enabled: true
attribute: volume_level
conditions: []
actions:
- choose:
- conditions:
- condition: trigger
id:
- knop
enabled: true
- condition: state
entity_id: event.home_assistant_voice_09277b_button_press
attribute: event_type
state: double_press
sequence:
- if:
- condition: state
entity_id: switch.tv_switch_huiskmr
state: "on"
then:
- data:
entity_id: media_player.chromecast_huiskamer_nest
message: hallo, tv wordt uitgezet
cache: true
language: nl
enabled: true
action: tts.google_translate_say
- action: switch.turn_off
metadata: {}
data: {}
target:
entity_id:
- switch.tv_switch_huiskmr
else:
- data:
entity_id: media_player.chromecast_huiskamer_nest
message: hallo, tv wordt aangezet
cache: true
language: nl
enabled: true
action: tts.google_translate_say
- action: switch.turn_on
metadata: {}
data: {}
target:
entity_id:
- switch.tv_switch_huiskmr
- conditions:
- condition: trigger
id:
- knop
enabled: true
- condition: state
entity_id: event.home_assistant_voice_09277b_button_press
attribute: event_type
state: triple_press
sequence:
- action: input_boolean.toggle
target:
entity_id:
- input_boolean.scene_avond
data: {}
- if:
- condition: state
entity_id: input_boolean.scene_avond
state: "on"
then:
- data:
entity_id: media_player.chromecast_huiskamer_nest
message: hallo, avond is aangezet
cache: true
language: nl
enabled: true
action: tts.google_translate_say
else:
- data:
entity_id: media_player.chromecast_huiskamer_nest
message: hallo, avond is uitgezet
cache: true
language: nl
enabled: true
action: tts.google_translate_say
- conditions:
- condition: trigger
id:
- knop
enabled: true
- condition: state
entity_id: event.home_assistant_voice_09277b_button_press
attribute: event_type
state: long_press
sequence:
- data:
entity_id: media_player.chromecast_huiskamer_nest
message: hallo, alles wordt uitgezet
cache: true
language: nl
enabled: true
action: tts.google_translate_say
- data: {}
target:
entity_id: input_boolean.alles_uit
action: input_boolean.turn_on
- conditions:
- condition: trigger
id:
- knop
enabled: true
- condition: state
entity_id: event.home_assistant_voice_09277b_button_press
attribute: event_type
state: easter_egg_press
sequence:
- data:
entity_id: media_player.chromecast_huiskamer_nest
message: hallo, voice state is easter
cache: true
language: nl
enabled: true
action: tts.google_translate_say
- conditions:
- condition: trigger
id:
- volume
- condition: state
entity_id: switch.tv_switch_huiskmr
state: "on"
sequence:
- if:
- condition: template
value_template: >
{% set xfrom = trigger.from_state.attributes.volume_level |
float(2) %} {% set xto =
trigger.to_state.attributes.volume_level | float(2) %} {% if
xto > xfrom %}
TRUE
{% else %}
FALSE
{% endif %}
- condition: state
entity_id: switch.tv_switch_huiskmr
state: "on"
then:
- data:
entity_id: media_player.chromecast_huiskamer_nest
message: hallo, volume wordt aangepast harder
cache: true
language: nl
enabled: false
action: tts.google_translate_say
- data_template:
entity_id: media_player.samsung_8_series_55
volume_level: "{{ trigger.to_state.attributes.volume_level | float(2) }}"
action: media_player.volume_set
else:
- data:
entity_id: media_player.chromecast_huiskamer_nest
message: hallo, volume wordt zachter
cache: true
language: nl
enabled: false
action: tts.google_translate_say
- data_template:
entity_id: media_player.samsung_8_series_55
volume_level: "{{ trigger.to_state.attributes.volume_level | float(2) }}"
action: media_player.volume_set
default:
- data:
entity_id: media_player.chromecast_huiskamer_nest
message: hallo, voice device wordt aangezet
cache: true
language: nl
enabled: false
action: tts.google_translate_say
- action: assist_satellite.announce
metadata: {}
data:
message: voice is default
target:
entity_id: assist_satellite.home_assistant_voice_09277b_assist_satellite
enabled: false
mode: single