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