initial commit
This commit is contained in:
17
integrations/packages/hasp_plate02.yaml
Executable file
17
integrations/packages/hasp_plate02.yaml
Executable file
@@ -0,0 +1,17 @@
|
||||
openhasp:
|
||||
plate01:
|
||||
objects:
|
||||
- obj: "p1b2" # switch, checkbox or btn with toggle true
|
||||
properties:
|
||||
"val": '{{ 1 if is_state("light.lamp_zolder_werkbank", "on") else 0 }}'
|
||||
"text": '{{ "\uE6E8" if is_state("light.lamp_zolder_werkbank", "on") else "\uE335" | e }}'
|
||||
event:
|
||||
"down":
|
||||
- service: homeassistant.toggle
|
||||
entity_id: "light.lamp_zolder_werkbank"
|
||||
- obj: "p0b1"
|
||||
properties:
|
||||
"text": "{{ states('sensor.zolder_temperatuur') }}"
|
||||
- obj: "p0b2"
|
||||
properties:
|
||||
"text_color": "{% if -30 <= state_attr('openhasp.plate01','rssi') |int %}green{% elif -31 > state_attr('openhasp.plate01','rssi') |int >= -50 %}orange{% elif -51 > state_attr('openhasp.plate01','rssi') |int >= -80 %}tomato{% else %}red{% endif %}"
|
||||
Reference in New Issue
Block a user