Erst mal eine Frage zu beginn. Hast du auch einen Temperatursensor? Wenn ja warum erstellst du dir nicht ein climate Device?
Würde in etwa so aussehen:
- platform: generic_thermostat
unique_id: treppenhaus_infrarot
name: Treppenhaus Infrarot
heater: switch.treppenhaus_heizung
target_sensor: sensor.treppenhaus_temperatur_temperature
min_temp: 4
max_temp: 31
target_temp: 18
cold_tolerance: 0.3
hot_tolerance: 0.3
min_cycle_duration:
seconds: 300
precision: 0.1
target_temp_step: 0.5
Alles anzeigen
Ansonsten habe ich mir einen Boost in HA gebaut. Der sieht bei mir so aus (ebenfalls mit Helfer Timer):
Folgender Rest Command wird benötigt, dieser setzt am Shelly Relais den AutoOff
rest_command:
timer_on_relay:
url: http://{{ ip }}/relay/0?turn=on&timer={{ value }}
timeout: 30
Automation:
alias: "[INFRAROT] Boost"
description: ""
trigger:
- platform: event
event_type: timer.started
event_data:
entity_id: timer.treppenhaus_infrarot
id: Treppenhaus Ein
- platform: event
event_type: timer.restarted
event_data:
entity_id: timer.treppenhaus_infrarot
id: Treppenhaus Ein
- platform: event
event_type: timer.cancelled
event_data:
entity_id: timer.treppenhaus_infrarot
id: Treppenhaus Aus
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: Treppenhaus Ein
sequence:
- service: rest_command.timer_on_relay
data_template:
ip: 192.168.21.111
value: >-
{{ state_attr('timer.treppenhaus_infrarot',
'duration').split(':')[1] | int(10) * 60 }}
- conditions:
- condition: trigger
id: Treppenhaus Aus
sequence:
- type: turn_off
device_id: db1a3f686f7c6aa608cbfa6a39408c24
entity_id: switch.treppenhaus_heizung
domain: switch
mode: parallel
max: 10
Alles anzeigen
Ich mache das mit zwei Infrarot Heizungen, sind aber auch als Climate Eingerichtet. Du müsstest entsprechend natürlich noch deine device_id, entity_id usw. anpssen.
Deine Bedingungen müsstest du dann auch noch mit einbauen.
Und im Dashboard lese ich das ganze so aus:
cards:
- square: false
columns: 2
type: grid
cards:
- type: vertical-stack
cards:
- show_name: true
show_icon: true
type: button
tap_action:
action: call-service
service: timer.start
data: {}
target:
entity_id: timer.treppenhaus_infrarot
entity: timer.treppenhaus_infrarot
show_state: false
icon: mdi:fire
hold_action:
action: call-service
service: timer.cancel
data: {}
target:
entity_id: timer.treppenhaus_infrarot
name: 'Treppenhaus '
- type: entities
entities:
- entity: timer.treppenhaus_infrarot
name: ' '
show_header_toggle: true
Alles anzeigen