Add lawn_mower support (Worx Landroid) with start_mowing/pause/dock actions
This commit is contained in:
parent
5120617777
commit
9220ff9d3e
1 changed files with 71 additions and 8 deletions
|
|
@ -8,8 +8,11 @@ blueprint:
|
|||
|
||||
Passt für normale Schalter/Lampen genauso wie für ein Garagentor als
|
||||
cover-Entität: "Umschalten" öffnet bzw. schließt das Tor dann automatisch
|
||||
passend zum aktuellen Zustand – ganz ohne Sonderlogik. Ungenutzte Tasten
|
||||
einfach leer lassen, dann passiert bei ihnen nichts.
|
||||
passend zum aktuellen Zustand – ganz ohne Sonderlogik. Auch Mähroboter
|
||||
(Domain lawn_mower, z. B. Worx Landroid über die Landroid-Cloud-
|
||||
Integration) werden unterstützt, dafür gibt es die eigenen Aktionen
|
||||
"Mähen starten", "Pause" und "Zur Ladestation" statt Ein/Aus/Umschalten.
|
||||
Ungenutzte Tasten einfach leer lassen, dann passiert bei ihnen nichts.
|
||||
|
||||
Für jedes physische Taster-Gerät wird eine eigene Automatisierungs-Instanz
|
||||
aus diesem Blueprint angelegt. Der Gerätename lässt sich über
|
||||
|
|
@ -43,6 +46,7 @@ blueprint:
|
|||
- lock
|
||||
- valve
|
||||
- siren
|
||||
- lawn_mower
|
||||
|
||||
button_1_action:
|
||||
name: Taste 1 – Aktion
|
||||
|
|
@ -50,6 +54,8 @@ blueprint:
|
|||
Umschalten passt für normale Schalter/Lampen und für ein Garagentor
|
||||
(cover-Entität, öffnet/schließt automatisch je nach Zustand).
|
||||
Ein-/Ausschalten eignet sich z. B. für Wippen-Tastenpaare.
|
||||
Für Mähroboter (lawn_mower) stattdessen "Mähen starten", "Pause"
|
||||
oder "Zur Ladestation" verwenden.
|
||||
default: toggle
|
||||
selector:
|
||||
select:
|
||||
|
|
@ -61,6 +67,12 @@ blueprint:
|
|||
label: Einschalten
|
||||
- value: turn_off
|
||||
label: Ausschalten
|
||||
- value: start_mowing
|
||||
label: "Mähroboter: Mähen starten"
|
||||
- value: pause
|
||||
label: "Mähroboter: Pause"
|
||||
- value: dock
|
||||
label: "Mähroboter: Zur Ladestation"
|
||||
|
||||
button_2_entity:
|
||||
name: Taste 2 – Zielentität
|
||||
|
|
@ -77,6 +89,7 @@ blueprint:
|
|||
- lock
|
||||
- valve
|
||||
- siren
|
||||
- lawn_mower
|
||||
|
||||
button_2_action:
|
||||
name: Taste 2 – Aktion
|
||||
|
|
@ -84,6 +97,8 @@ blueprint:
|
|||
Umschalten passt für normale Schalter/Lampen und für ein Garagentor
|
||||
(cover-Entität, öffnet/schließt automatisch je nach Zustand).
|
||||
Ein-/Ausschalten eignet sich z. B. für Wippen-Tastenpaare.
|
||||
Für Mähroboter (lawn_mower) stattdessen "Mähen starten", "Pause"
|
||||
oder "Zur Ladestation" verwenden.
|
||||
default: toggle
|
||||
selector:
|
||||
select:
|
||||
|
|
@ -95,6 +110,12 @@ blueprint:
|
|||
label: Einschalten
|
||||
- value: turn_off
|
||||
label: Ausschalten
|
||||
- value: start_mowing
|
||||
label: "Mähroboter: Mähen starten"
|
||||
- value: pause
|
||||
label: "Mähroboter: Pause"
|
||||
- value: dock
|
||||
label: "Mähroboter: Zur Ladestation"
|
||||
|
||||
button_3_entity:
|
||||
name: Taste 3 – Zielentität
|
||||
|
|
@ -111,6 +132,7 @@ blueprint:
|
|||
- lock
|
||||
- valve
|
||||
- siren
|
||||
- lawn_mower
|
||||
|
||||
button_3_action:
|
||||
name: Taste 3 – Aktion
|
||||
|
|
@ -118,6 +140,8 @@ blueprint:
|
|||
Umschalten passt für normale Schalter/Lampen und für ein Garagentor
|
||||
(cover-Entität, öffnet/schließt automatisch je nach Zustand).
|
||||
Ein-/Ausschalten eignet sich z. B. für Wippen-Tastenpaare.
|
||||
Für Mähroboter (lawn_mower) stattdessen "Mähen starten", "Pause"
|
||||
oder "Zur Ladestation" verwenden.
|
||||
default: toggle
|
||||
selector:
|
||||
select:
|
||||
|
|
@ -129,6 +153,12 @@ blueprint:
|
|||
label: Einschalten
|
||||
- value: turn_off
|
||||
label: Ausschalten
|
||||
- value: start_mowing
|
||||
label: "Mähroboter: Mähen starten"
|
||||
- value: pause
|
||||
label: "Mähroboter: Pause"
|
||||
- value: dock
|
||||
label: "Mähroboter: Zur Ladestation"
|
||||
|
||||
button_4_entity:
|
||||
name: Taste 4 – Zielentität
|
||||
|
|
@ -145,6 +175,7 @@ blueprint:
|
|||
- lock
|
||||
- valve
|
||||
- siren
|
||||
- lawn_mower
|
||||
|
||||
button_4_action:
|
||||
name: Taste 4 – Aktion
|
||||
|
|
@ -152,6 +183,8 @@ blueprint:
|
|||
Umschalten passt für normale Schalter/Lampen und für ein Garagentor
|
||||
(cover-Entität, öffnet/schließt automatisch je nach Zustand).
|
||||
Ein-/Ausschalten eignet sich z. B. für Wippen-Tastenpaare.
|
||||
Für Mähroboter (lawn_mower) stattdessen "Mähen starten", "Pause"
|
||||
oder "Zur Ladestation" verwenden.
|
||||
default: toggle
|
||||
selector:
|
||||
select:
|
||||
|
|
@ -163,6 +196,12 @@ blueprint:
|
|||
label: Einschalten
|
||||
- value: turn_off
|
||||
label: Ausschalten
|
||||
- value: start_mowing
|
||||
label: "Mähroboter: Mähen starten"
|
||||
- value: pause
|
||||
label: "Mähroboter: Pause"
|
||||
- value: dock
|
||||
label: "Mähroboter: Zur Ladestation"
|
||||
|
||||
button_5_entity:
|
||||
name: Taste 5 – Zielentität
|
||||
|
|
@ -179,6 +218,7 @@ blueprint:
|
|||
- lock
|
||||
- valve
|
||||
- siren
|
||||
- lawn_mower
|
||||
|
||||
button_5_action:
|
||||
name: Taste 5 – Aktion
|
||||
|
|
@ -186,6 +226,8 @@ blueprint:
|
|||
Umschalten passt für normale Schalter/Lampen und für ein Garagentor
|
||||
(cover-Entität, öffnet/schließt automatisch je nach Zustand).
|
||||
Ein-/Ausschalten eignet sich z. B. für Wippen-Tastenpaare.
|
||||
Für Mähroboter (lawn_mower) stattdessen "Mähen starten", "Pause"
|
||||
oder "Zur Ladestation" verwenden.
|
||||
default: toggle
|
||||
selector:
|
||||
select:
|
||||
|
|
@ -197,6 +239,12 @@ blueprint:
|
|||
label: Einschalten
|
||||
- value: turn_off
|
||||
label: Ausschalten
|
||||
- value: start_mowing
|
||||
label: "Mähroboter: Mähen starten"
|
||||
- value: pause
|
||||
label: "Mähroboter: Pause"
|
||||
- value: dock
|
||||
label: "Mähroboter: Zur Ladestation"
|
||||
|
||||
button_6_entity:
|
||||
name: Taste 6 – Zielentität
|
||||
|
|
@ -213,6 +261,7 @@ blueprint:
|
|||
- lock
|
||||
- valve
|
||||
- siren
|
||||
- lawn_mower
|
||||
|
||||
button_6_action:
|
||||
name: Taste 6 – Aktion
|
||||
|
|
@ -220,6 +269,8 @@ blueprint:
|
|||
Umschalten passt für normale Schalter/Lampen und für ein Garagentor
|
||||
(cover-Entität, öffnet/schließt automatisch je nach Zustand).
|
||||
Ein-/Ausschalten eignet sich z. B. für Wippen-Tastenpaare.
|
||||
Für Mähroboter (lawn_mower) stattdessen "Mähen starten", "Pause"
|
||||
oder "Zur Ladestation" verwenden.
|
||||
default: toggle
|
||||
selector:
|
||||
select:
|
||||
|
|
@ -231,6 +282,12 @@ blueprint:
|
|||
label: Einschalten
|
||||
- value: turn_off
|
||||
label: Ausschalten
|
||||
- value: start_mowing
|
||||
label: "Mähroboter: Mähen starten"
|
||||
- value: pause
|
||||
label: "Mähroboter: Pause"
|
||||
- value: dock
|
||||
label: "Mähroboter: Zur Ladestation"
|
||||
|
||||
variables:
|
||||
channel: "{{ trigger.event.data.channel }}"
|
||||
|
|
@ -259,7 +316,8 @@ action:
|
|||
- condition: template
|
||||
value_template: "{{ channel | int == 1 and button_1_entity not in [none, ''] }}"
|
||||
sequence:
|
||||
- action: "homeassistant.{{ button_1_action }}"
|
||||
- action: >-
|
||||
{{ ('lawn_mower.' if button_1_action in ['start_mowing','pause','dock'] else 'homeassistant.') ~ button_1_action }}
|
||||
target:
|
||||
entity_id: "{{ button_1_entity }}"
|
||||
|
||||
|
|
@ -267,7 +325,8 @@ action:
|
|||
- condition: template
|
||||
value_template: "{{ channel | int == 2 and button_2_entity not in [none, ''] }}"
|
||||
sequence:
|
||||
- action: "homeassistant.{{ button_2_action }}"
|
||||
- action: >-
|
||||
{{ ('lawn_mower.' if button_2_action in ['start_mowing','pause','dock'] else 'homeassistant.') ~ button_2_action }}
|
||||
target:
|
||||
entity_id: "{{ button_2_entity }}"
|
||||
|
||||
|
|
@ -275,7 +334,8 @@ action:
|
|||
- condition: template
|
||||
value_template: "{{ channel | int == 3 and button_3_entity not in [none, ''] }}"
|
||||
sequence:
|
||||
- action: "homeassistant.{{ button_3_action }}"
|
||||
- action: >-
|
||||
{{ ('lawn_mower.' if button_3_action in ['start_mowing','pause','dock'] else 'homeassistant.') ~ button_3_action }}
|
||||
target:
|
||||
entity_id: "{{ button_3_entity }}"
|
||||
|
||||
|
|
@ -283,7 +343,8 @@ action:
|
|||
- condition: template
|
||||
value_template: "{{ channel | int == 4 and button_4_entity not in [none, ''] }}"
|
||||
sequence:
|
||||
- action: "homeassistant.{{ button_4_action }}"
|
||||
- action: >-
|
||||
{{ ('lawn_mower.' if button_4_action in ['start_mowing','pause','dock'] else 'homeassistant.') ~ button_4_action }}
|
||||
target:
|
||||
entity_id: "{{ button_4_entity }}"
|
||||
|
||||
|
|
@ -291,7 +352,8 @@ action:
|
|||
- condition: template
|
||||
value_template: "{{ channel | int == 5 and button_5_entity not in [none, ''] }}"
|
||||
sequence:
|
||||
- action: "homeassistant.{{ button_5_action }}"
|
||||
- action: >-
|
||||
{{ ('lawn_mower.' if button_5_action in ['start_mowing','pause','dock'] else 'homeassistant.') ~ button_5_action }}
|
||||
target:
|
||||
entity_id: "{{ button_5_entity }}"
|
||||
|
||||
|
|
@ -299,7 +361,8 @@ action:
|
|||
- condition: template
|
||||
value_template: "{{ channel | int == 6 and button_6_entity not in [none, ''] }}"
|
||||
sequence:
|
||||
- action: "homeassistant.{{ button_6_action }}"
|
||||
- action: >-
|
||||
{{ ('lawn_mower.' if button_6_action in ['start_mowing','pause','dock'] else 'homeassistant.') ~ button_6_action }}
|
||||
target:
|
||||
entity_id: "{{ button_6_entity }}"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue