I have this configuration in the PLC for the cover control:
output register 2, bit 2: cover up
output register 2, bit 3: cover down
input register 50: actual position
output register 52: requested position
This is the yaml configuration, I can only close the cover and there is no posibility to adjust position or stop the cover.
I don’t find the solution with the info provided in the integration explanation, please help.
covers:
- name: "Gordijn Buro"
device_class: curtain
address: 2
state_open: 2
state_closed: 3
scan_interval: 1
status_register_type: holding
status_register: 26
Can you post a link to the documentation for your curtain?
There is no documentation, it is a PLC with 1 output for open the curtain, and another output for closing it.
The function block I created is calculating the actual position from the time required between fully open and fully closed.
The requested position is converted to the time required to reach the position.
I always used a cover template but I wanted to switch to the modbus cover platform.
I have changed the configuration to:
- name: "Gordijn Buro"
device_class: curtain
address: 26
state_open: 100
state_closed: 0
scan_interval: 1
status_register_type: holding
status_register: 25
With this change, it is now possible to open and close the curtain. Now I get stuck on the possibilities of the modbus integration: stop the movement at any time, or move to a certain position.
1 Like