The blind is set to open and close in 42s in the niko settings.
This is the log of 2 times the same action where I lower the blind with the openhab app and open it again.
The log is different as the first time it seems to work correctly and the state is reported from 100 >12 However when opening the blind it goes from 12 > 0 while I would expect it goes back to 100.
The second time I close and open the blind with the app the state is not reported anymore. It goes from 0 >100 and 100>0
Update: I removed the binding and all things but the issues still persists after re-adding everything.
I need to invert the direction in openhab to match the position the Niko app is showing me.
However if I do this the openhab app is not working anymore. Not sure if maybe a conflict in the direction is the source of the issue
2022-12-21 13:00:10.661 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'Slaapkamer_Gordijn' received command DOWN
2022-12-21 13:00:10.662 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'Slaapkamer_Gordijn' predicted to become DOWN
==> /var/log/openhab/openhab.log <==
2022-12-21 13:00:10.669 [DEBUG] [handler.NikoHomeControlActionHandler] - handle command DOWN for nikohomecontrol:blind:440e003a366a:40:rollershutter
2022-12-21 13:00:10.670 [DEBUG] [ol.internal.protocol.nhc1.NhcAction1] - execute action Down of type ROLLERSHUTTER for 40
2022-12-21 13:00:10.672 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - handleRollerShutterCommand: rollershutter 40 command Down
2022-12-21 13:00:10.673 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - handleRollerShutterCommand: rollershutter 40, current position 0
2022-12-21 13:00:10.673 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - handleRollerShutterCommand: rollershutter 40 task executing immediately
2022-12-21 13:00:10.675 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - executeRollershutterTask: rollershutter 40 task triggered
2022-12-21 13:00:10.676 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - handleRollerShutterCommand: rollershutter 40 task running
2022-12-21 13:00:10.677 [DEBUG] [l.nhc1.NikoHomeControlCommunication1] - send json {"id":40,"value1":254,"cmd":"executeactions"}
2022-12-21 13:00:10.679 [DEBUG] [l.nhc1.NikoHomeControlCommunication1] - received json {"cmd":"executeactions", "data":{"error":0}}
2022-12-21 13:00:10.680 [DEBUG] [l.nhc1.NikoHomeControlCommunication1] - execute action success
2022-12-21 13:00:10.744 [DEBUG] [l.nhc1.NikoHomeControlCommunication1] - received json {"event":"listactions","data":[{"id":40,"value1":0}]}
2022-12-21 13:00:10.745 [DEBUG] [l.nhc1.NikoHomeControlCommunication1] - event execute action 40 with state 0
2022-12-21 13:00:10.745 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - setRollershutterMovingFalse: rollershutter 40 not moving
2022-12-21 13:00:10.746 [DEBUG] [econtrol.internal.protocol.NhcAction] - update channel state for 40 with 0
==> /var/log/openhab/events.log <==
2022-12-21 13:00:12.222 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'Slaapkamer_Gordijn' received command STOP
==> /var/log/openhab/openhab.log <==
2022-12-21 13:00:12.227 [DEBUG] [handler.NikoHomeControlActionHandler] - handle command STOP for nikohomecontrol:blind:440e003a366a:40:rollershutter
2022-12-21 13:00:12.228 [DEBUG] [ol.internal.protocol.nhc1.NhcAction1] - execute action Stop of type ROLLERSHUTTER for 40
2022-12-21 13:00:12.228 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - handleRollerShutterCommand: rollershutter 40 command Stop
2022-12-21 13:00:12.229 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - handleRollerShutterCommand: rollershutter 40, current position 0
2022-12-21 13:00:12.230 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - handleRollerShutterCommand: rollershutter 40 task executing immediately
2022-12-21 13:00:12.230 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - executeRollershutterTask: rollershutter 40 task triggered
2022-12-21 13:00:12.231 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - handleRollerShutterCommand: rollershutter 40 task running
2022-12-21 13:00:12.231 [DEBUG] [l.nhc1.NikoHomeControlCommunication1] - send json {"id":40,"value1":253,"cmd":"executeactions"}
2022-12-21 13:00:12.233 [DEBUG] [l.nhc1.NikoHomeControlCommunication1] - received json {"cmd":"executeactions", "data":{"error":0}}
2022-12-21 13:00:12.234 [DEBUG] [l.nhc1.NikoHomeControlCommunication1] - execute action success
2022-12-21 13:00:12.309 [DEBUG] [l.nhc1.NikoHomeControlCommunication1] - received json {"event":"listactions","data":[{"id":40,"value1":88}]}
2022-12-21 13:00:12.310 [DEBUG] [l.nhc1.NikoHomeControlCommunication1] - event execute action 40 with state 88
2022-12-21 13:00:12.310 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - setRollershutterMovingFalse: rollershutter 40 not moving
2022-12-21 13:00:12.311 [DEBUG] [econtrol.internal.protocol.NhcAction] - update channel state for 40 with 88
==> /var/log/openhab/events.log <==
2022-12-21 13:00:12.314 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Slaapkamer_Gordijn' changed from 100 to 12
2022-12-21 13:00:25.610 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'Slaapkamer_Gordijn' received command UP
2022-12-21 13:00:25.611 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'Slaapkamer_Gordijn' predicted to become UP
2022-12-21 13:00:25.613 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Slaapkamer_Gordijn' changed from 12 to 0
==> /var/log/openhab/openhab.log <==
2022-12-21 13:00:25.616 [DEBUG] [handler.NikoHomeControlActionHandler] - handle command UP for nikohomecontrol:blind:440e003a366a:40:rollershutter
2022-12-21 13:00:25.617 [DEBUG] [ol.internal.protocol.nhc1.NhcAction1] - execute action Up of type ROLLERSHUTTER for 40
2022-12-21 13:00:25.618 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - handleRollerShutterCommand: rollershutter 40 command Up
2022-12-21 13:00:25.618 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - handleRollerShutterCommand: rollershutter 40, current position 88
2022-12-21 13:00:25.619 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - handleRollerShutterCommand: rollershutter 40 task executing immediately
2022-12-21 13:00:25.620 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - executeRollershutterTask: rollershutter 40 task triggered
2022-12-21 13:00:25.621 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - handleRollerShutterCommand: rollershutter 40 task running
2022-12-21 13:00:25.622 [DEBUG] [l.nhc1.NikoHomeControlCommunication1] - send json {"id":40,"value1":255,"cmd":"executeactions"}
2022-12-21 13:00:25.624 [DEBUG] [l.nhc1.NikoHomeControlCommunication1] - received json {"cmd":"executeactions", "data":{"error":0}}
2022-12-21 13:00:25.625 [DEBUG] [l.nhc1.NikoHomeControlCommunication1] - execute action success
2022-12-21 13:00:25.732 [DEBUG] [l.nhc1.NikoHomeControlCommunication1] - received json {"event":"listactions","data":[{"id":40,"value1":100}]}
2022-12-21 13:00:25.732 [DEBUG] [l.nhc1.NikoHomeControlCommunication1] - event execute action 40 with state 100
2022-12-21 13:00:25.733 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - rollershutterMoveTime: rollershutter 40 move time 5040
2022-12-21 13:00:25.734 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - setRollershutterMovingTrue: rollershutter 40 moving
2022-12-21 13:00:25.735 [DEBUG] [econtrol.internal.protocol.NhcAction] - update channel state for 40 with 100
2022-12-21 13:00:30.775 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - setRollershutterMovingTrue: rollershutter 40 stopped moving
2022-12-21 13:00:36.181 [DEBUG] [ikoHomeControlBridgeDiscoveryService] - discovery broadcast on 192.168.0.255
2022-12-21 13:00:36.183 [TRACE] [nal.protocol.NikoHomeControlDiscover] - bridge discovery response 440E003A366AC0A800A6FFFFFF00
2022-12-21 13:00:36.185 [DEBUG] [nal.protocol.NikoHomeControlDiscover] - IP address is {440e003a366a=/192.168.0.166}, unique ID is 440e003a366a
2022-12-21 13:00:36.687 [DEBUG] [ikoHomeControlBridgeDiscoveryService] - NHC I bridge found at /192.168.0.166
==> /var/log/openhab/events.log <==
2022-12-21 13:00:39.407 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'SunElevation' changed from 15.485718377541374 to 15.472485435470785
2022-12-21 13:00:58.427 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'Slaapkamer_Gordijn' received command DOWN
2022-12-21 13:00:58.429 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'Slaapkamer_Gordijn' predicted to become DOWN
2022-12-21 13:00:58.431 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Slaapkamer_Gordijn' changed from 0 to 100
==> /var/log/openhab/openhab.log <==
2022-12-21 13:00:58.435 [DEBUG] [handler.NikoHomeControlActionHandler] - handle command DOWN for nikohomecontrol:blind:440e003a366a:40:rollershutter
2022-12-21 13:00:58.436 [DEBUG] [ol.internal.protocol.nhc1.NhcAction1] - execute action Down of type ROLLERSHUTTER for 40
2022-12-21 13:00:58.437 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - handleRollerShutterCommand: rollershutter 40 command Down
2022-12-21 13:00:58.438 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - handleRollerShutterCommand: rollershutter 40, current position 100
2022-12-21 13:00:58.438 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - handleRollerShutterCommand: rollershutter 40 task executing immediately
2022-12-21 13:00:58.439 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - executeRollershutterTask: rollershutter 40 task triggered
2022-12-21 13:00:58.439 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - handleRollerShutterCommand: rollershutter 40 task running
2022-12-21 13:00:58.440 [DEBUG] [l.nhc1.NikoHomeControlCommunication1] - send json {"id":40,"value1":254,"cmd":"executeactions"}
2022-12-21 13:00:58.442 [DEBUG] [l.nhc1.NikoHomeControlCommunication1] - received json {"cmd":"executeactions", "data":{"error":0}}
2022-12-21 13:00:58.443 [DEBUG] [l.nhc1.NikoHomeControlCommunication1] - execute action success
2022-12-21 13:00:58.538 [DEBUG] [l.nhc1.NikoHomeControlCommunication1] - received json {"event":"listactions","data":[{"id":40,"value1":0}]}
2022-12-21 13:00:58.539 [DEBUG] [l.nhc1.NikoHomeControlCommunication1] - event execute action 40 with state 0
2022-12-21 13:00:58.540 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - rollershutterMoveTime: rollershutter 40 move time 42000
2022-12-21 13:00:58.541 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - setRollershutterMovingTrue: rollershutter 40 moving
2022-12-21 13:00:58.541 [DEBUG] [econtrol.internal.protocol.NhcAction] - update channel state for 40 with 0
2022-12-21 13:00:59.928 [DEBUG] [very.NikoHomeControlDiscoveryService] - getting devices on 440e003a366a
==> /var/log/openhab/events.log <==
2022-12-21 13:01:03.451 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'Slaapkamer_Gordijn' received command STOP
==> /var/log/openhab/openhab.log <==
2022-12-21 13:01:03.457 [DEBUG] [handler.NikoHomeControlActionHandler] - handle command STOP for nikohomecontrol:blind:440e003a366a:40:rollershutter
2022-12-21 13:01:03.458 [DEBUG] [ol.internal.protocol.nhc1.NhcAction1] - execute action Stop of type ROLLERSHUTTER for 40
2022-12-21 13:01:03.458 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - handleRollerShutterCommand: rollershutter 40 command Stop
2022-12-21 13:01:03.459 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - handleRollerShutterCommand: rollershutter 40, current position 0
2022-12-21 13:01:03.459 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - handleRollerShutterCommand: rollershutter 40 moving, therefore stop
2022-12-21 13:01:03.460 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - rollershutterPositionStop: rollershutter 40 executing
2022-12-21 13:01:03.461 [DEBUG] [l.nhc1.NikoHomeControlCommunication1] - send json {"id":40,"value1":253,"cmd":"executeactions"}
2022-12-21 13:01:03.463 [DEBUG] [l.nhc1.NikoHomeControlCommunication1] - received json {"cmd":"executeactions", "data":{"error":0}}
2022-12-21 13:01:03.464 [DEBUG] [l.nhc1.NikoHomeControlCommunication1] - execute action success
2022-12-21 13:01:03.521 [DEBUG] [l.nhc1.NikoHomeControlCommunication1] - received json {"event":"listactions","data":[{"id":40,"value1":88}]}
2022-12-21 13:01:03.522 [DEBUG] [l.nhc1.NikoHomeControlCommunication1] - event execute action 40 with state 88
2022-12-21 13:01:03.523 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - setRollershutterMovingFalse: rollershutter 40 not moving
2022-12-21 13:01:03.524 [DEBUG] [ol.internal.protocol.nhc1.NhcAction1] - received requested rollershutter 40 position event 88
2022-12-21 13:01:03.524 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - executeRollershutterTask: rollershutter 40 task triggered
2022-12-21 13:01:03.525 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - handleRollerShutterCommand: rollershutter 40 task running
2022-12-21 13:01:03.526 [DEBUG] [l.nhc1.NikoHomeControlCommunication1] - send json {"id":40,"value1":253,"cmd":"executeactions"}
2022-12-21 13:01:03.528 [DEBUG] [l.nhc1.NikoHomeControlCommunication1] - received json {"cmd":"executeactions", "data":{"error":0}}
2022-12-21 13:01:03.529 [DEBUG] [l.nhc1.NikoHomeControlCommunication1] - execute action success
==> /var/log/openhab/events.log <==
2022-12-21 13:01:23.686 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'Slaapkamer_Gordijn' received command UP
2022-12-21 13:01:23.687 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'Slaapkamer_Gordijn' predicted to become UP
2022-12-21 13:01:23.689 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Slaapkamer_Gordijn' changed from 100 to 0
==> /var/log/openhab/openhab.log <==
2022-12-21 13:01:23.692 [DEBUG] [handler.NikoHomeControlActionHandler] - handle command UP for nikohomecontrol:blind:440e003a366a:40:rollershutter
2022-12-21 13:01:23.693 [DEBUG] [ol.internal.protocol.nhc1.NhcAction1] - execute action Up of type ROLLERSHUTTER for 40
2022-12-21 13:01:23.694 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - handleRollerShutterCommand: rollershutter 40 command Up
2022-12-21 13:01:23.695 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - handleRollerShutterCommand: rollershutter 40, current position 0
2022-12-21 13:01:23.696 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - handleRollerShutterCommand: rollershutter 40 task executing immediately
2022-12-21 13:01:23.697 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - executeRollershutterTask: rollershutter 40 task triggered
2022-12-21 13:01:23.698 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - handleRollerShutterCommand: rollershutter 40 task running
2022-12-21 13:01:23.699 [DEBUG] [l.nhc1.NikoHomeControlCommunication1] - send json {"id":40,"value1":255,"cmd":"executeactions"}
2022-12-21 13:01:23.701 [DEBUG] [l.nhc1.NikoHomeControlCommunication1] - received json {"cmd":"executeactions", "data":{"error":0}}
2022-12-21 13:01:23.702 [DEBUG] [l.nhc1.NikoHomeControlCommunication1] - execute action success
2022-12-21 13:01:23.766 [DEBUG] [l.nhc1.NikoHomeControlCommunication1] - received json {"event":"listactions","data":[{"id":40,"value1":100}]}
2022-12-21 13:01:23.767 [DEBUG] [l.nhc1.NikoHomeControlCommunication1] - event execute action 40 with state 100
2022-12-21 13:01:23.768 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - rollershutterMoveTime: rollershutter 40 move time 42000
2022-12-21 13:01:23.769 [TRACE] [ol.internal.protocol.nhc1.NhcAction1] - setRollershutterMovingTrue: rollershutter 40 moving
2022-12-21 13:01:23.769 [DEBUG] [econtrol.internal.protocol.NhcAction] - update channel state for 40 with 100
2022-12-21 13:01:36.692 [DEBUG] [ikoHomeControlBridgeDiscoveryService] - discovery broadcast on 192.168.0.255
2022-12-21 13:01:36.695 [TRACE] [nal.protocol.NikoHomeControlDiscover] - bridge discovery response 440E003A366AC0A800A6FFFFFF00
2022-12-21 13:01:36.696 [DEBUG] [nal.protocol.NikoHomeControlDiscover] - IP address is {440e003a366a=/192.168.0.166}, unique ID is 440e003a366a
2022-12-21 13:01:37.198 [DEBUG] [ikoHomeControlBridgeDiscoveryService] - NHC I bridge found at /192.168.0.166