11169
(Віталій)
September 10, 2021, 4:26pm
1
Hello everyone, I’m a beginner, so please don’t scold
I have OH3 and KNX-based system in my home. Also i have motorized rollershutters, controlling by MDT AKU actuators. Work well.
I added them to OH3 via KNX binding and can control rollershutter via OH. Work well.
Next, I try to add them to the HomeKit: i add ‘WindowCovering’ metadata, a button appears in Apple’s “Home” aplication, but when I press it nothing happens.
What needs to be done to make the HomeKit control work?
Thank you.
11169
(Віталій)
September 11, 2021, 2:21pm
2
I tried to find the difference in the commands from UI and the HomeKit:
Buttons form UI send ‘UP/DOWN’ commands and they work
2021-09-11 17:05:00.079 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'Relay3_OP’ received command UP
2021-09-11 17:05:00.083 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'Relay3_OP’ predicted to become UP
2021-09-11 17:05:00.092 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Relay3_OP’ changed from 100 to 0
HomeKit send ‘0/100’ commands and they don’t work
2021-09-11 16:44:11.863 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'Relay3_OP' received command 100
2021-09-11 16:44:11.868 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'Relay3_OP' predicted to become 100
2021-09-11 16:44:11.876 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Relay3_OP' changed from 0 to 100
I think i need some kind translaton from 0/100 to UP/DOWN commands
11169
(Віталій)
September 11, 2021, 2:55pm
3
I create two simple Rules (via UI) and seems they resolve ther problem
triggers:
- id: "1"
configuration:
itemName: Relay3_OP
command: "100"
type: core.ItemCommandTrigger
conditions: []
actions:
- inputs: {}
id: "2"
configuration:
itemName: Relay3_OP
command: DOWN
type: core.ItemCommandAction
triggers:
- id: "1"
configuration:
itemName: Relay3_OP
command: "0"
type: core.ItemCommandTrigger
conditions: []
actions:
- inputs: {}
id: "2"
configuration:
itemName: Relay3_OP
command: UP
type: core.ItemCommandAction
yfre
(eugen)
September 11, 2021, 4:18pm
4
please also take look on this rule
The counter has to start somewhere. Presumably it is a global variable? And it somehow maps to the current position of the shutter I’m assuming (e.g. if the shutter is 50% open the counter is 6).
With those assumptions:
This is a really dangerous implementation. It is a really bad idea to have long sleeps inside a Rule. You can only run 5 Rules at the same time. If something goes wrong or for some reason Arbeitszimmer_Rolladen changes a too much it will cause ALL your Rules to stop running un…