openhasp
This commit is contained in:
@@ -253,26 +253,42 @@ in
|
||||
# https://www.home-assistant.io/integrations/ota_updater/
|
||||
zha.zigpy_config.ota.z2m_remote_index = "https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master/index.json";
|
||||
|
||||
openhasp:
|
||||
plate:
|
||||
objects:
|
||||
- obj: "p0b1" # temperature label on all pages
|
||||
properties:
|
||||
"text": '{{ states("sensor.thermostat_current_temperature") }}°F'
|
||||
- obj: "p1b2" # light-switch toggle button
|
||||
properties:
|
||||
"val": '{{ 1 if states("light.living_room_lights") == "on" else 0 }}'
|
||||
"text": '{{ "\uE6E8" if is_state("light.living_room_lights", "on") else "\uE335" | e }}'
|
||||
event:
|
||||
"up":
|
||||
- service: homeassistant.toggle
|
||||
entity_id: "light.living_room_lights"
|
||||
- obj: "p1b3" # dropdown
|
||||
event:
|
||||
"changed":
|
||||
- service: persistent_notification.create
|
||||
data:
|
||||
message: I like {{ text }}
|
||||
openhasp = {
|
||||
plate = {
|
||||
objects = [
|
||||
{
|
||||
obj = "p0b1"; # temperature label on all pages
|
||||
properties = {
|
||||
"text" = ''{{ states("sensor.thermostat_current_temperature") }}°F'';
|
||||
};
|
||||
}
|
||||
{
|
||||
obj = "p1b2"; # light-switch toggle button
|
||||
properties = {
|
||||
"val" = ''{{ 1 if states("light.living_room_lights") == "on" else 0 }}'';
|
||||
"text" = ''{{ "\uE6E8" if is_state("light.living_room_lights", "on") else "\uE335" | e }}'';
|
||||
};
|
||||
event = {
|
||||
"up" = {
|
||||
service = "homeassistant.toggle";
|
||||
entity_id = "light.living_room_lights";
|
||||
};
|
||||
};
|
||||
}
|
||||
{
|
||||
obj = "p1b3"; # dropdown
|
||||
event = {
|
||||
"changed" = {
|
||||
service = "persistent_notification.create";
|
||||
data = {
|
||||
message = "I like {{ text }}";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user