Hi All
Great work , really appreciated.
Unfortunately , it doesn’t work well, and I couldn’t find out out why.
When I operate the switcher from the app, HA is responding and showing all timers, current and status with no problem. it responds very good.
When I try to turn on the Switcher from HA, it takes around 30 seconds to turn on, and tuning it back off doesn’t work at all. At that moment HA hangs, and takes it about 2-3 minutes to recover back and be functional.
There are some errors in the log - see it below
Any help would be appreciated.
Hillel
Unable to remove unknown listener <function ServiceRegistry.async_call.<locals>.service_executed at 0x6f5bddf8>
12:08 AM core.py (WARNING)
failed to turn on with timer for switcher_aio.control_device_switch
12:08 AM custom_components/switcher_aio/init.py (ERROR)
failed to control the device Traceback (most recent call last): File “/config/custom_components/switcher_aio/init.py”, line 789, in async_send_command_to_device sock = get_socket(ip_address) File “/config/custom_components/switcher_aio/init.py”, line 565, in get_socket sock.connect((ip_addr, SOCKET_PORT)) TimeoutError: [Errno 110] Operation timed out
12:08 AM custom_components/switcher_aio/init.py (ERROR)
failed to connect socket to xxx.xxx.xxx.xxx Traceback (most recent call last): File “/config/custom_components/switcher_aio/init.py”, line 565, in get_socket sock.connect((ip_addr, SOCKET_PORT)) TimeoutError: [Errno 110] Operation timed out
12:08 AM custom_components/switcher_aio/init.py (ERROR)
Unable to find service input_select/select_option
12:06 AM core.py (WARNING)
Unable to remove unknown listener <function ServiceRegistry.async_call.<locals>.service_executed at 0x70067bb8>
12:06 AM core.py (WARNING)
failed to turn off the device
12:06 AM custom_components/switcher_aio/init.py (ERROR)
failed to control the device Traceback (most recent call last): File “/config/custom_components/switcher_aio/init.py”, line 789, in async_send_command_to_device sock = get_socket(ip_address) File “/config/custom_components/switcher_aio/init.py”, line 565, in get_socket sock.connect((ip_addr, SOCKET_PORT)) TimeoutError: [Errno 110] Operation timed out
12:06 AM custom_components/switcher_aio/init.py (ERROR)
failed to connect socket to xxx.xxx.xxx.xxx Traceback (most recent call last): File “/config/custom_components/switcher_aio/init.py”, line 565, in get_socket sock.connect((ip_addr, SOCKET_PORT)) TimeoutError: [Errno 110] Operation timed out
12:06 AM custom_components/switcher_aio/init.py (ERROR)
failed to turn off the device
12:03 AM custom_components/switcher_aio/init.py (ERROR)
failed to parse state response message Traceback (most recent call last): File “/config/custom_components/switcher_aio/init.py”, line 1873, in init temp_time_left_seconds = int(temp_time_left[6:8] + temp_time_left[4:6] + temp_time_left[2:4] + temp_time_left[0:2], 16) ValueError: invalid literal for int() with base 16: b’’
12:03 AM custom_components/switcher_aio/init.py (ERROR)
Unable to remove unknown listener <function ServiceRegistry.async_call.<locals>.service_executed at 0x6f45ed20>
12:03 AM core.py (WARNING)
failed to turn off the device
12:03 AM custom_components/switcher_aio/init.py (ERROR)