nitaybz / homebridge-switcher-platform

Homebridge plugin for Switcher Smart Accessories
MIT License
35 stars 9 forks source link

Error: Operation failed, Could not acquire SessionID, Please try again #3

Closed matanz121 closed 4 years ago

matanz121 commented 4 years ago

when trying to turn on/turn off the switcher, I get the below message - Error: Operation failed, Could not acquire SessionID, Please try again

If I'm turning on the switcher locally - I can see that the state changes in the homebridge UI. But I don't have the option to change it by myself from the GUI.

nitaybz commented 4 years ago

Please make sure your machine (running homebridge) date and time are accurate and set correctly

matanz121 commented 4 years ago

Hi, looks like everything set correctly. timezone + date - correct.

anything else?

nitaybz commented 4 years ago

usually the sessionID error occurring when there is time difference between the switcher and the homebridge machine.. It can also happen when you try to execute few requests close to each other...

does it happen all the time or every now and then?

matanz121 commented 4 years ago

pi@raspberrypi:/usr/local/lib/node_modules/homebridge/lib $ date Tue 7 Jul 20:08:58 IDT 2020

the local time in Israel is also - 20:08. also, I see in the switcher app that the time is the same.

it happens all the time. I tried to reboot the home bridge but doesn't change anything.

nitaybz commented 4 years ago

What version is your switcher? What firmware? On what machine are you running homebridge? What version of python do you use?

matanz121 commented 4 years ago

Switcher version - 2.29 (IOS) FIRMWARE - 71.00 Switcher Boiler 3DC4 - look like I have an update - but I do not know why I can't update I'm running homebride on rasberian os on rasberrypy zero w Python version 2.7.16 installed when I'm running python --version in the os

matanz121 commented 4 years ago

now I updated the firmware to - 72.36 still the same error - [7/7/2020, 21:51:01] [Boiler] ERROR Turning ON the Switcher [7/7/2020, 21:51:01] [Boiler] Error: Operation failed, Could not acquire SessionID, Please try again... [7/7/2020, 21:51:01] [Boiler] NOT TRYING AGAIN!!

When I'm turning on the boiler from the switcher app I can see that the homebridge retrieves the info. the get function works perfect. the rest not working.

nitaybz commented 4 years ago

Did you try to restart homebridge after the firmware update?

nitaybz commented 4 years ago

anyway with the previous Switcher firmware it shouldn't have worked... but now after a good restart I believe it should work

matanz121 commented 4 years ago

yes, now it starts work from Homekit. I can tell Siri to turn on & off the boiler. from the HomeBridge UI, it doesn't work well, but it's enough for me.

thanks for your support! BTW, is there any option to turn on the boiler for 30min for example? or just turn on/off?

nitaybz commented 4 years ago

if you set the accessory type to valve you can set default duration for the switcher from Home app, but the minimum is 1 hour as it is bound to the "Auto Shutdown" feature in Switcher app. although if you don't set the accessory type to valve you can still set the duration from Eve app.