Last active
January 2, 2021 12:13
-
-
Save vMeph/79766bf6626c1e28c598e1bd58828ad8 to your computer and use it in GitHub Desktop.
Se um sensor energia, temperatura, luminosidade etc.. for acima do valor inserido, o WLED Dispara e a Alexa ou Google notifica via TTS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: WLED Sensor and TTS Action (Alexa & Google) | |
description: > | |
Esta blueprint permite usar o WLED de uma forma mais intuitiva | |
Se um sensor energia, temperatura, luminosidade etc.. for acima do valor inserido, o WLED Dispara e a Alexa ou Google notifica via TTS | |
domain: automation | |
input: | |
sensor_entity: | |
name: Sensor | |
description: Insere a entidade do teu sensor exemplo de energia, temperatura etc... | |
selector: | |
entity: | |
domain: sensor | |
default: '' | |
sensor_setpoint_above: | |
name: Acima | |
description: Se o valor introduzido do sensor for acima do valor inserido liga o WLED | |
default: '' | |
selector: | |
number: | |
min: 1.0 | |
max: 10000.0 | |
mode: box | |
unit_of_measurement: '' | |
wled_entity: | |
name: WLED | |
description: WLED entidade | |
selector: | |
entity: | |
integration: wled | |
domain: light | |
wled_effect: | |
name: WLED Efeito | |
description: WLED poe o nome do teu efeito, exemplo Breathe | |
default: '' | |
wled_intensity: | |
name: WLED Intensidade | |
description: Intensidade do effeito, valores de 0 a 255 | |
default: 155 | |
selector: | |
number: | |
min: 1 | |
max: 255 | |
mode: box | |
step: 1.0 | |
unit_of_measurement: '%' | |
wled_effect_speed: | |
name: WLED Efeitos | |
description: Velocidade dos efeitos, valores de 0 a 255 | |
default: 155 | |
selector: | |
number: | |
min: 1.0 | |
max: 255.0 | |
mode: box | |
step: 1.0 | |
unit_of_measurement: '%' | |
wled_brightness: | |
name: WLED Brilho | |
description: Brilho dos leds | |
default: 155 | |
selector: | |
number: | |
min: 1.0 | |
max: 255.0 | |
mode: slider | |
step: 1.0 | |
unit_of_measurement: '%' | |
wled_preset: | |
name: WLED Preset | |
description: insere os teus preset | |
default: '' | |
selector: | |
number: | |
min: 1.0 | |
max: 25.0 | |
mode: box | |
step: 1.0 | |
unit_of_measurement: '' | |
alexa_device: | |
name: Alexa | |
description: Escolhe a alexa que queres que fale a mensagem. | |
selector: | |
entity: | |
integration: alexa_media | |
domain: media_player | |
default: '' | |
google_device: | |
name: Google | |
description: Escolha a entidade do Google que vai transmitir a mensagem. | |
selector: | |
entity: | |
integration: cast | |
domain: media_player | |
default: '' | |
message: | |
name: Mensagem | |
description: Escreve a mensagem que queres que a Alexa ou o Google fale | |
default: '' | |
variables: | |
wled_entity: !input wled_entity | |
wled_brightness: !input wled_brightness | |
wled_effect: !input wled_effect | |
wled_preset: !input wled_preset | |
wled_intensity: !input wled_intensity | |
wled_effect_speed: !input wled_effect_speed | |
sensor_entity: !input sensor_entity | |
sensor_setpoint_above: !input sensor_setpoint_above | |
alexa_device: !input alexa_device | |
message: !input message | |
google_device: !input google_device | |
trigger: | |
platform: numeric_state | |
entity_id: !input sensor_entity | |
above: !input sensor_setpoint_above | |
mode: single | |
action: | |
- service: light.turn_on | |
entity_id: !input wled_entity | |
data: | |
brightness: !input wled_brightness | |
- service: wled.preset | |
entity_id: !input wled_entity | |
data: | |
preset: !input wled_preset | |
- service: wled.effect | |
entity_id: !input wled_entity | |
data: | |
effect: !input wled_effect | |
intensity: !input wled_intensity | |
speed: !input wled_effect_speed | |
- service: notify.alexa_media | |
data: | |
target: !input alexa_device | |
message: !input message | |
data: | |
type: announce | |
method: speak | |
- service: tts.google_say | |
data: | |
entity_id: | |
- !input google_device | |
message: !input message |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment