Closed illadro closed 3 years ago
please elaborate - what do you expect to happen? what happens instead?
Hi Rojer, in my case, initial situation is that OPEN and CLOSE buttons are inverted in HomeKit UI. If
Hope this can help.
OPEN and CLOSE buttons are inverted in HomeKit UI
what do you mean by "OPEN and CLOSE buttons are inverted in HomeKit UI"? there is only one tile for the curtain in the Home app that is used to both open and close. which "buttons" are you referring to?
"swap inputs" and "swap outputs" apply to physical inputs and outputs and do not affect homekit UI.
When I use your web interface (device reached using its IP) open/close blue buttons appears to control the roller shutter. If I click on OPEN, the roller shutter goes down and when I click on CLOSE, it goes up. I need to invert them to match the correct directions.
Before acting on the device swapping motor connections, I would to ask you if it's possible to swap them using the software (as Shelly Cloud has it).
sounds like you need to swap outputs only.
i just tested and it works as expected - with "swap outputs" enabled direction of movement in response to buttons is reversed.
Yep. Just swapping outputs on the device the issue should be solved.
Yep. Just swapping outputs on the device the issue should be solved.
right. so what's the problem? it seems to be working for me.
In my case with Swap Output enabled, open/close are still inverted. Active or not this option, the result is always the same.
did you press "save" after changing the option? if you reload the page, does it stay activated?
Yes it is. After click on Save and Reload, the option is active but nothing change on the device. Before flash the device, I upgraded the Shelly with the last firmware and changed outputs/inputs on the Shelly Cloud app. After that I flashed the device. Is it possible that this is causing the conflict?
hm. i'm looking at the code and it's literally not possible. nevertheless, let's do some testing. please open debug log in a separate tab (link in the system section), leave it open. then go back, press open, then close with swap outputs off. then turn swap outputs on, save, then press open and close again. after that, save the contents of the log tab, save as a gist and post a link here.
ok, i see. the problem is that even though this change requires restart of the service, it doesn't happen. you haven't added the device to Home yet, right?
if so, then this is a known issue, already fixed by https://github.com/mongoose-os-apps/shelly-homekit/commit/0af6d3ed9de4ea1ee0ba07f39e76c92431b3dc52 and will be included in the next release. in the mean time, rebooting the device after making the change should do the trick.
ok, i see. the problem is that even though this change requires restart of the service, it doesn't happen.
you haven't added the device to Home yet, right?
Right. Just waiting to solve this issue before adding it to Home app
if so, then this is a known issue, already fixed by https://github.com/mongoose-os-apps/shelly-homekit/commit/0af6d3ed9de4ea1ee0ba07f39e76c92431b3dc52 and will be included in the next release.
in the mean time, rebooting the device after making the change should do the trick.
Unfortunately it doesn't solve it. Rebooting the device don't swap outputs
enable swap outputs, save, then reboot the device. it should work.
if not, please post the log of open/close after the reboot
please include events produced by pressing open and close, as before.
and please include out of http://A.B.C.D/rpc/Config.Get?key=%22wc1%22
well, this is quite different. output swapping does work. wheeas previously we had output 1 activated in response to the open command:
19598637011 shelly_hap_window_c:342 WC 1: Tgt pos 0.00 -> 100.00 (RPC)
...
19598737352 shelly_output.cpp:63 Output 1: off -> on (move)
now it's output 2:
28926363 shelly_hap_window_c:342 WC 1: Tgt pos 0.00 -> 100.00 (RPC)
...
29108080 shelly_output.cpp:63 Output 2: off -> on (move)
however, after that we see failure of the motor to start - power consumption remains at 0, and we eventually give up and go into error state. does the motor actually move?
After the reboot with swap outputs enabled, the motor doesn't respond. I can hear the "click"into the device but the motor doesn't work. If I disable swap outputs and reboot, the motor starts to work perfectly but open/close are still inverted.
well, i don't know why the curtain is not moving. maybe it's because it' in the fully open position already? try running calibration.
Morning Rojer. Calibration has solved the issue. I really appreciate your help.
ok, very good. i pushed a change that resets calibration flag when outputs are swapped, thus forcing recalibration.
ok, very good. i pushed a change that resets calibration flag when outputs are swapped, thus forcing recalibration.
Nice! Is there a way to update all devices at the same time when a new firmware version is available?
@illadro read here https://github.com/mongoose-os-apps/shelly-homekit/wiki/Flashing#Script
I’m using Shelly 2.5 as roller shutter controller but when I try to switch inputs and outputs nothing happens.