Hi Jens,
i managed to set the ventilation steps on my THZ504 with:
select:
- platform: template
name: "Lüftungstufe Tag"
id: lueftungsstufe_tag
optimistic: true
options:
- "1"
- "2"
- "3"
set_action:
then:
- delay: 500ms
- if:
condition:
- lambda: |-
return (id(lueftungsstufe_tag).state) == "1";
then:
- canbus.send:
data: [ 0x30, 0x00, 0xfa,0x05,0x6c,0x00,0x01 ]
can_id: 0x6a2
- if:
condition:
- lambda: |-
return (id(lueftungsstufe_tag).state) == "2";
then:
- canbus.send:
data: [ 0x30, 0x00, 0xfa,0x05,0x6c,0x00,0x02 ]
can_id: 0x6a2
- if:
condition:
- lambda: |-
return (id(lueftungsstufe_tag).state) == "3";
then:
- canbus.send:
data: [ 0x30, 0x00, 0xfa,0x05,0x6c,0x00,0x03 ]
can_id: 0x6a2
- delay: 500ms
- canbus.send:
data: [ 0x31, 0x00, 0xfa,0x05,0x6c,0x00,0x00 ]
can_id: 0x6a2
- platform: template
name: "Lüftungstufe Nacht"
id: lueftungsstufe_nacht
optimistic: true
options:
- "1"
- "2"
- "3"
set_action:
then:
- delay: 500ms
- if:
condition:
- lambda: |-
return (id(lueftungsstufe_nacht).state) == "1";
then:
- canbus.send:
data: [ 0x30, 0x00, 0xfa,0x05,0x6d,0x00,0x01 ]
can_id: 0x6a2
- if:
condition:
- lambda: |-
return (id(lueftungsstufe_nacht).state) == "2";
then:
- canbus.send:
data: [ 0x30, 0x00, 0xfa,0x05,0x6d,0x00,0x02 ]
can_id: 0x6a2
- if:
condition:
- lambda: |-
return (id(lueftungsstufe_nacht).state) == "3";
then:
- canbus.send:
data: [ 0x30, 0x00, 0xfa,0x05,0x6d,0x00,0x03 ]
can_id: 0x6a2
- delay: 500ms
- canbus.send:
data: [ 0x31, 0x00, 0xfa,0x05,0x6d,0x00,0x00 ]
can_id: 0x6a2