69 lines
1.8 KiB
YAML
Executable File
69 lines
1.8 KiB
YAML
Executable File
TempOutsideIntent:
|
|
speech:
|
|
text: >
|
|
{%- set temp = states('sensor.0x14b457fffe0bde4c_temperature') | round -%}
|
|
{%- set hum = states('sensor.0x14b457fffe0bde4c_humidity') | round -%}
|
|
Aktuell ist es draussen {{ temp }} Grad bei {{ hum }} Prozent Luftfeuchtigkeit
|
|
TempRoomInfoIntent:
|
|
speech:
|
|
text: >
|
|
{% for device in states.climate %}
|
|
{% set loop_room = device.attributes.friendly_name|lower %}
|
|
{% set SLOT_ROOM = ROOM|lower %}
|
|
{% if loop_room.endswith(SLOT_ROOM) %}
|
|
Im {{ ROOM }} ist es {{device.attributes.current_temperature|replace(".",",") }} Grad {% endif %}
|
|
{%- endfor %}
|
|
ActivateSceneIntent:
|
|
action:
|
|
service: scene.turn_on
|
|
data_template:
|
|
entity_id: scene.{{ Scene | replace(" ", "_") }}
|
|
# action:
|
|
# service: notify.pushover
|
|
# data_template:
|
|
# message: Holla, aktiviere "{{ Scene }}"
|
|
speech:
|
|
type: plain
|
|
text: OK, starte {{ Scene }}
|
|
|
|
ActivateIntent:
|
|
action:
|
|
service: light.turn_on
|
|
entity_id: light.stehlampe
|
|
speech:
|
|
type: plain
|
|
text: OK
|
|
DeactivateIntent:
|
|
action:
|
|
service: light.turn_off
|
|
entity_id: light.stehlampe
|
|
speech:
|
|
type: plain
|
|
text: OK
|
|
|
|
CoverPresetIntent:
|
|
action:
|
|
service: cover.set_cover_position
|
|
entity_id: group.all_covers
|
|
data_template:
|
|
position: "30"
|
|
CoverPercentageIntent:
|
|
action:
|
|
service: cover.set_cover_position
|
|
entity_id: group.all_covers
|
|
data_template:
|
|
position: "{{COVER_PERCENTAGE}}"
|
|
speech:
|
|
type: plain
|
|
text: Okidoki {{COVER_PERCENTAGE}}
|
|
|
|
RespondAvailableScenes:
|
|
speech:
|
|
text: >
|
|
Du kannst mich die folgenden Szenen aktivieren lassen:
|
|
{% for device in dict(states.scene|groupby('name')) -%}
|
|
{% if loop.last and loop.length > 1 %} und {%- elif not loop.first and loop.length > 1 %}, {% endif %}
|
|
{{device}}
|
|
{%- endfor %}
|
|
|