Blueprint WLED Sensor and TTS Action (Alexa & Google)

usa o badge aqui em baixo para importar diretamente para o teu homeassistant esta BluePrint

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

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
2 Curtiram

Copyright © 2017-2021. Todos os direitos reservados
CPHA.pt - info@cpha.pt


FAQ | Termos de Serviço/Regras | Política de Privacidade