HABK
Novedades
Versión 1.0
First release
Qué hace
10 acciones-
Dictionary
-
Choose from Menu
-
Choose from MenuОдин
-
Render Templateio.robbie.HomeAssistant
-
Choose from Menu💡 Світло
-
Dictionary
-
Choose from List
-
Repeat with Each
-
Get Dictionary Value
-
Call Serviceio.robbie.HomeAssistant
Ver como código
Todas las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo funciona.
#define color red
const Commands = {
"CheckHome": "{{ states('group.persons') }}"
}
menu nil {
item "Один":
rawAction("io.robbie.HomeAssistant.RenderTemplateIntent", {
"ShowWhenRun": false,
"server": "",
"template": "{Commands['CheckHome']}"
})
item "💡 Світло":
const Groups = {
"Ванна": "group.bathroom_lights",
"Все": "group.all_lights",
"Вітальня": "group.livingroom_lights",
"Кухня": "group.kitchen_lights",
"Маленька спальня": "group.small_lights",
"Спальня": "group.bedroom_lights",
"Хамам": "group.hamam"
}
const = chooseFromList(Groups['Keys'], "Оберіть группу", true)
for _ in {
rawAction("io.robbie.HomeAssistant.CallServiceIntent", {
"ShowWhenRun": false,
"payload": "{\\\"entity_id\\\":\\\"{}\\\"}",
"server": "",
"service": "light.toggle"
})
}
}
Abrir en Cherri Playground
Descompilado con cherri 2.3.0 (GPL-2.0). Puede que necesite pequeños ajustes antes de compilarse.
Valoraciones y reseñas
Escribe una reseña–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Aún no hay reseñas. ¡Sé el primero en compartir tu opinión!
Publicidad
Más de tankistdn46
También te puede gustar
Publicidad