sg72
September 15, 2023, 11:34am
1
Good morning
I am coming back to you, because I am in the process of modifying the switches of my roller shutters in cover.
cover:
- name: "volet_hangar_MD"
move_long_address: "0/0/15"
move_short_address: "0/0/15"
stop_address: "0/0/20"
- name: "volet_bureau_MD"
move_long_address: "0/0/4"
move_short_address: "0/0/4"
stop_address: "0/0/21"
- name: "volet_garage_MD"
move_long_address: "0/0/14"
move_short_address: "0/0/14"
stop_address: "0/0/19"
- name: "volet_baie_MD"
move_long_address: "0/0/16"
move_short_address: "0/0/16"
stop_address: "0/0/17"
The command to send the volet_hangar is this:
service: knx.send
data:
address: 0/0/15
payload: 0
0 = up
1 = Down
For the stop it is:
service: knx.send
data:
address: 0/0/20
payload: 0
Here are my Cover codes.
How can I add the playloads in it to determine the ups and downs?
farmio
(Matthias Alphart)
September 16, 2023, 2:22pm
2
Hi !
You can not set a knx covers payloads manually directly (there is the invert option for up_down).
Don’t set move_long and move_short to the same address. Hi f you don’t have tiltable covers you can omit move_short.
For a knx cover you will need to set correct travel times.
stop_address
is always sent a 1 to. If this doesn’t work for your device, you can invert it externally or use a template cover with knx.send
Template Cover - Home Assistant
sg72
September 16, 2023, 3:10pm
3
The problem is that if I look at the ETS file of my KNX, the up and down function of the shutters uses the same function. This is what I achieved with a switch button.
How can I achieve this with a Cover button? With a switch button it works really well the only problem is that when the shutters are open, the switch button indicates closed, whereas normally it should be all blue
switch:
- platform: template
switches:
tousvolets:
friendly_name: "Tous les volets"
value_template: "{{ is_state('switch.volet_hangar_md', 'on') }}"
turn_on:
- service: switch.turn_on
target:
entity_id: switch.volet_hangar_md
- delay: "00:00:00.500"
- service: switch.turn_on
target:
entity_id: switch.volet_baie_md
- delay: "00:00:00.500"
- service: switch.turn_on
target:
entity_id: switch.volet_bureau_md
- delay: "00:00:00.500"
- service: switch.turn_on
target:
entity_id: switch.volet_garage_md
turn_off:
- service: switch.turn_off
target:
entity_id: switch.volet_hangar_md
- delay: "00:00:00.500"
- service: switch.turn_off
target:
entity_id: switch.volet_baie_md
- delay: "00:00:00.500"
- service: switch.turn_off
target:
entity_id: switch.volet_bureau_md
- service: switch.turn_off
target:
entity_id: switch.volet_garage_md
volethangar:
friendly_name: "Volet Hangar"
value_template: "{{ is_state('switch.volet_hangar_md', 'on') }}"
turn_on:
service: switch.toggle
target:
entity_id: switch.volet_hangar_md
turn_off:
service: switch.toggle
target:
entity_id: switch.volet_hangar_md
voletgarage:
friendly_name: "Volet Garage"
value_template: "{{ is_state('switch.volet_garage_md', 'on') }}"
turn_on:
service: switch.toggle
target:
entity_id: switch.volet_garage_md
turn_off:
service: switch.toggle
target:
entity_id: switch.volet_garage_md
voletbureau:
friendly_name: "Volet Bureau"
value_template: "{{ is_state('switch.volet_bureau_md', 'on') }}"
turn_on:
service: switch.toggle
target:
entity_id: switch.volet_bureau_md
turn_off:
service: switch.toggle
target:
entity_id: switch.volet_bureau_md
voletbaie:
friendly_name: "Volet Baie"
value_template: "{{ is_state('switch.volet_baie_md', 'on') }}"
turn_on:
service: switch.toggle
target:
entity_id: switch.volet_baie_md
turn_off:
service: switch.toggle
target:
entity_id: switch.volet_baie_md
farmio
(Matthias Alphart)
September 16, 2023, 3:27pm
4
Have you tried any of the recommendations of my first answer?
The GA names don’t tell my anything. The actuators group object assignments would be more helpful. (besides not understanding the language 🤷)
sg72
September 16, 2023, 4:01pm
5
The problem is that I didn’t really understand what you said! Sorry, I have very bad English
farmio
(Matthias Alphart)
September 16, 2023, 4:17pm
6
What exactly don’t you understand / can’t be translated?
Try something like this
cover:
- name: "volet_hangar_MD"
move_long_address: "0/0/15"
stop_address: "0/0/20"
travelling_time_down: 51
travelling_time_up: 51
sg72
September 17, 2023, 8:22am
7
Great, it works.
type: entities
entities:
- entity: cover.volet_hangar
- entity: cover.volet_garage
icon: mdi:window-shutter-open
- entity: cover.volet_bureau
icon: mdi:window-shutter-open
- entity: cover.volet_baie
icon: mdi:window-shutter-open
state_color: true
show_header_toggle: true
However I have another question, how to display an image depending on the opening of the pane? For example if the pane is open, I will put the image of an open pane. If the pane is closed, I want to put the image of a closed pane.