savegame 2023-11-18

This commit is contained in:
Bastian Schnorbus
2023-11-18 14:51:50 +01:00
parent 6ab9ea0194
commit 546cedc190
19 changed files with 2500 additions and 136 deletions

68
alexa.yaml Normal file
View File

@@ -0,0 +1,68 @@
TempOutsideIntent:
speech:
text: >
{%- set temp = states('sensor.neomulti4in1_temperature') | round -%}
{%- set hum = states('sensor.neomulti4in1_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 %}