Home Assistant - smarthomemessenger.sk

Domácnosť
Smart Home Messenger
Displej pre Vašu inteligentnú
Smart Home Messenger
Prejsť na obsah
Integrácia do Home Assistant
configuration.yaml:

rest_command:
send_to_smart_display:
   url: "http://192.168.1.131/?message={{ message | urlencode }}&brightness={{ brightness | urlencode }}&scrolling={{ scrolling | urlencode }}&time={{ time | urlencode }}&speed={{ speed | urlencode }}&sound_hz={{ sound_hz | urlencode }}&sound_s={{ sound_s | urlencode }}"
   method: GET
 send_time_to_display:
   url: "http://192.168.1.131/?time=1&scrolling=0"
   method: GET    
 send_info_to_display:
   url: "http://192.168.1.131/?message=+(i)+&sound_hz=950&sound_s=500"
   method: GET

Príklad odoslania teploty v automatizácií:

service: rest_command.send_text_to_display
data:
message: Teplota vonku {{ states('sensor.netatmo_vonku_temperature') }} C
brightnes: 0
scrolling: 1
speed: 6
time: 0

Pre spustenie odoslania teploty môžete nastaviť napríklad pri zmene teploty aktivuj automatizáciu.

Príklad odoslania každú hodinu kto má meniny v automatizácií:

alias: Meniny
description: ""
trigger:
 - platform: time_pattern
   seconds: "1"
   minutes: "0"
condition: []
action:
 - service: rest_command.send_info_to_display
   data: {}
 - delay:
     hours: 0
     minutes: 0
     seconds: 2
     milliseconds: 0
 - service: rest_command.send_to_smart_display
   data:
     message: Dnes ma meniny {{ states('sensor.nameday_sk') }}
     scrolling: 1
 - delay:
     hours: 0
     minutes: 0
     seconds: 3
     milliseconds: 0
 - service: rest_command.send_time_to_display
   metadata: {}
   data: {}
mode: single


Parametre príkazov:

message = zobrazí ľubovoľný text
brightnes = jas hodnota 0 až 15 od najnižšieho po najvyšší jas
scrolling = 1 text roluje, 0 stojí
speed = rýchlosť rolovania od 1 najpomalšie po 10 najrýchlejšie
time = 1 zobrazí hodiny a dátum, 0 zobrazí text
sound_hz = 500 tón pípnutia (hz)
sound_s = 1000 dĺžka pípnutia (ms)

ukážka webového rozhrania:



Návrat na obsah