[2022-07-15 19:40:05][INFO] : Start daemon [2022-07-15 19:40:05][INFO] : Log level : debug [2022-07-15 19:40:05][DEBUG] : Socket port : 55069 [2022-07-15 19:40:05][DEBUG] : PID file : /tmp/jeedom/toshibaac/deamon.pid [2022-07-15 19:40:05][DEBUG] : Username : pppppppp [2022-07-15 19:40:05][DEBUG] : Writing PID 3623 to /tmp/jeedom/toshibaac/deamon.pid [2022-07-15 19:40:05][DEBUG] : Init request module v2.27.1 [2022-07-15 19:40:05][DEBUG] : Using selector: EpollSelector [2022-07-15 19:40:05][DEBUG] : Sending POST to https://toshibamobileservice.azurewebsites.net/api/Consumer/Login [2022-07-15 19:40:06][DEBUG] : Response code: 200 [2022-07-15 19:40:06][DEBUG] : Sending POST to https://toshibamobileservice.azurewebsites.net/api/Consumer/RegisterMobileDevice [2022-07-15 19:40:06][DEBUG] : Response code: 200 [2022-07-15 19:40:06][DEBUG] : Starting run_op in pipeline thread [2022-07-15 19:40:06][DEBUG] : Creating pipeline executor [2022-07-15 19:40:06][DEBUG] : Gateway Hostname not present. Setting Hostname to: toshibasmaciothubprod.azure-devices.net [2022-07-15 19:40:06][DEBUG] : HTTPTransportStage(InitializePipelineOperation): got connection args [2022-07-15 19:40:06][DEBUG] : creating a SSL context [2022-07-15 19:40:06][DEBUG] : InitializePipelineOperation: completing without error [2022-07-15 19:40:06][DEBUG] : Starting in callback thread [2022-07-15 19:40:06][DEBUG] : Creating callback executor [2022-07-15 19:40:06][DEBUG] : Callback completed with result None [2022-07-15 19:40:06][DEBUG] : Starting run_op in pipeline thread [2022-07-15 19:40:06][DEBUG] : Gateway Hostname not present. Setting Hostname to: toshibasmaciothubprod.azure-devices.net [2022-07-15 19:40:06][DEBUG] : MQTTTransportStage(InitializePipelineOperation): got connection args [2022-07-15 19:40:06][DEBUG] : creating mqtt client [2022-07-15 19:40:06][INFO] : Creating client for connecting using MQTT over TCP [2022-07-15 19:40:06][DEBUG] : creating a SSL context [2022-07-15 19:40:06][DEBUG] : configuring SSL context with default certs [2022-07-15 19:40:06][DEBUG] : Created MQTT protocol client, assigned callbacks [2022-07-15 19:40:06][DEBUG] : InitializePipelineOperation: completing without error [2022-07-15 19:40:06][DEBUG] : Starting in callback thread [2022-07-15 19:40:06][DEBUG] : Callback completed with result None [2022-07-15 19:40:06][DEBUG] : Creating new event loop - CLIENT_INTERNAL_LOOP [2022-07-15 19:40:06][DEBUG] : Using selector: EpollSelector [2022-07-15 19:40:06][DEBUG] : Creating new handler runner for handler: _on_method_request_received [2022-07-15 19:40:06][DEBUG] : Creating new event loop - CLIENT_HANDLER_RUNNER_LOOP [2022-07-15 19:40:06][DEBUG] : Using selector: EpollSelector [2022-07-15 19:40:06][DEBUG] : HANDLER RUNNER (_on_method_request_received): Starting runner [2022-07-15 19:40:06][INFO] : Enabling feature:methods... [2022-07-15 19:40:06][DEBUG] : enable_feature methods called [2022-07-15 19:40:06][DEBUG] : Starting run_op in pipeline thread [2022-07-15 19:40:06][DEBUG] : EnableFeatureOperation: creating worker op of type MQTTSubscribeOperation [2022-07-15 19:40:06][DEBUG] : AutoConnectStage(MQTTSubscribeOperation): Op needs connection. Queueing this op and starting a ConnectionOperation [2022-07-15 19:40:06][DEBUG] : AutoConnectStage(MQTTSubscribeOperation): calling down with Connect operation [2022-07-15 19:40:06][INFO] : ReconnectStage(ConnectOperation): State changes LOGICALLY_DISCONNECTED->LOGICALLY_CONNECTED. Adding to wait list and sending new connect op down [2022-07-15 19:40:06][DEBUG] : ReconnectStage: sending new connect op down [2022-07-15 19:40:06][DEBUG] : ConnectionLockStage(ConnectOperation): blocking [2022-07-15 19:40:06][DEBUG] : MQTTTransportStage(ConnectOperation): connecting [2022-07-15 19:40:06][DEBUG] : MQTTTransportStage(ConnectOperation): Starting watchdog [2022-07-15 19:40:06][DEBUG] : connecting to mqtt broker [2022-07-15 19:40:06][INFO] : Connect using port 8883 (TCP) [2022-07-15 19:40:06][DEBUG] : Sending CONNECT (u1, p1, wr0, wq0, wf0, c0, k60) client_id=b'pppppppp_3e6e4eb5f0e5aa401657906805' [2022-07-15 19:40:06][DEBUG] : _mqtt_client.connect returned rc=0 [2022-07-15 19:40:06][DEBUG] : Received CONNACK (0, 0) [2022-07-15 19:40:06][INFO] : connected with result code: 0 [2022-07-15 19:40:06][DEBUG] : Starting _on_mqtt_connected in pipeline thread [2022-07-15 19:40:06][INFO] : _on_mqtt_connected called [2022-07-15 19:40:06][DEBUG] : PipelineRootStage: ConnectedEvent received. Calling on_connected_handler [2022-07-15 19:40:06][DEBUG] : Starting _on_connected in callback thread [2022-07-15 19:40:06][DEBUG] : completing connect op [2022-07-15 19:40:06][DEBUG] : MQTTTransportStage(ConnectOperation): cancelling watchdog [2022-07-15 19:40:06][DEBUG] : ConnectOperation: completing without error [2022-07-15 19:40:06][DEBUG] : ConnectionLockStage(ConnectOperation): op succeeded. Unblocking queue [2022-07-15 19:40:06][INFO] : Connection State - Connected [2022-07-15 19:40:06][DEBUG] : ConnectionLockStage(ConnectOperation): unblocking and releasing queued ops. [2022-07-15 19:40:06][DEBUG] : ConnectionLockStage(ConnectOperation): processing 0 items in queue for error=None [2022-07-15 19:40:06][DEBUG] : ReconnectStage(ConnectOperation): on_connect_complete error=None state=LOGICALLY_CONNECTED never_connected=True connected=True [2022-07-15 19:40:06][DEBUG] : ReconnectStage: completing waiting ops with error=None [2022-07-15 19:40:06][DEBUG] : ConnectOperation: completing without error [2022-07-15 19:40:06][DEBUG] : AutoConnectStage(MQTTSubscribeOperation): connection is complete. Running op that triggered connection. [2022-07-15 19:40:06][DEBUG] : AutoConnectStage(MQTTSubscribeOperation): Connected. Sending down and adding callback to check result [2022-07-15 19:40:06][DEBUG] : OpTimeoutStage(MQTTSubscribeOperation): Creating timer [2022-07-15 19:40:06][DEBUG] : OpTimeoutStage(MQTTSubscribeOperation): Sending down [2022-07-15 19:40:06][DEBUG] : MQTTTransportStage(MQTTSubscribeOperation): subscribing to $iothub/methods/POST/# [2022-07-15 19:40:06][INFO] : subscribing to $iothub/methods/POST/# with qos 1 [2022-07-15 19:40:06][DEBUG] : Sending SUBSCRIBE (d0, m1) [(b'$iothub/methods/POST/#', 1)] [2022-07-15 19:40:06][DEBUG] : _mqtt_client.subscribe returned rc=0 [2022-07-15 19:40:06][DEBUG] : Waiting for response on MID: 1 [2022-07-15 19:40:06][DEBUG] : Received SUBACK [2022-07-15 19:40:06][INFO] : suback received for 1 [2022-07-15 19:40:06][DEBUG] : Response received for recognized MID: 1 - triggering callback [2022-07-15 19:40:06][DEBUG] : Starting on_complete in pipeline thread [2022-07-15 19:40:06][DEBUG] : MQTTTransportStage(MQTTSubscribeOperation): SUBACK received. completing op. [2022-07-15 19:40:06][DEBUG] : MQTTSubscribeOperation: completing without error [2022-07-15 19:40:06][DEBUG] : OpTimeoutStage(MQTTSubscribeOperation): Cancelling timer [2022-07-15 19:40:06][DEBUG] : EnableFeatureOperation: Worker op (MQTTSubscribeOperation) has been completed [2022-07-15 19:40:06][DEBUG] : EnableFeatureOperation: completing without error [2022-07-15 19:40:06][DEBUG] : Starting on_complete in callback thread [2022-07-15 19:40:06][DEBUG] : Callback completed with result None [2022-07-15 19:40:06][INFO] : Successfully enabled feature:methods [2022-07-15 19:40:06][INFO] : Connecting to Hub... [2022-07-15 19:40:06][DEBUG] : Starting ConnectOperation on the pipeline [2022-07-15 19:40:06][DEBUG] : Starting run_op in pipeline thread [2022-07-15 19:40:06][INFO] : ReconnectStage(ConnectOperation): State changes LOGICALLY_CONNECTED->LOGICALLY_CONNECTED. Adding to wait list and sending new connect op down [2022-07-15 19:40:06][DEBUG] : ReconnectStage: sending new connect op down [2022-07-15 19:40:06][INFO] : ConnectionLockStage(ConnectOperation): Transport is already connected. Completing. [2022-07-15 19:40:06][DEBUG] : ConnectOperation: completing without error [2022-07-15 19:40:06][DEBUG] : ReconnectStage(ConnectOperation): on_connect_complete error=None state=LOGICALLY_CONNECTED never_connected=False connected=True [2022-07-15 19:40:06][DEBUG] : ReconnectStage: completing waiting ops with error=None [2022-07-15 19:40:06][DEBUG] : ConnectOperation: completing without error [2022-07-15 19:40:06][DEBUG] : Starting on_complete in callback thread [2022-07-15 19:40:06][DEBUG] : Callback completed with result None [2022-07-15 19:40:06][INFO] : Successfully connected to Hub [2022-07-15 19:40:06][DEBUG] : Sending GET to https://toshibamobileservice.azurewebsites.net/api/AC/GetConsumerACMapping [2022-07-15 19:40:06][DEBUG] : Response code: 200 [2022-07-15 19:40:06][DEBUG] : Found devices: {Couloir: {MeritFeature: 2c00, Model id: 2, Firmware version: 4.0.00, Initial state: 30421941416410101a24fe0b000010ff000000} ,Salon: {MeritFeature: ac00, Model id: 2, Firmware version: 4.0.00, Initial state: 30421a41316400101923fe0b000010ff000000} [2022-07-15 19:40:06][DEBUG] : [Couloir] Supported AC statuses: {On, Off, None}, Supported AC modes: {None, Auto, Cool, Dry, Fan, Heat}, Supported AC fan modes: {Auto, Quiet, Low, Medium Low, Medium, Medium High, High, None}, Supported AC swing modes: {None, Off, Swing Vertical}, Supported AC power selections: {Power 50, Power 75, Power 100, None}, Supported AC merit B: {None, Off, Fireplace 1, Fireplace 2}, Supported AC merit A: {None, Off, Sleep Care, Comfort, High Power, Eco, Cdu Silent 1, Cdu Silent 2, Heating 8C}, Supported AC air pure ion: {None, Off}, Supported AC self cleaning: {On, Off, None}, Supported AC energy report: No [2022-07-15 19:40:06][DEBUG] : Adding device Couloir [2022-07-15 19:40:06][DEBUG] : [Salon] Supported AC statuses: {On, Off, None}, Supported AC modes: {None, Auto, Cool, Dry, Fan, Heat}, Supported AC fan modes: {Auto, Quiet, Low, Medium Low, Medium, Medium High, High, None}, Supported AC swing modes: {None, Off, Swing Vertical}, Supported AC power selections: {Power 50, Power 75, Power 100, None}, Supported AC merit B: {None, Off, Fireplace 1, Fireplace 2}, Supported AC merit A: {None, Off, Sleep Care, Comfort, High Power, Eco, Floor, Cdu Silent 1, Cdu Silent 2, Heating 8C}, Supported AC air pure ion: {None, Off}, Supported AC self cleaning: {On, Off, None}, Supported AC energy report: No [2022-07-15 19:40:06][DEBUG] : Adding device Salon [2022-07-15 19:40:06][DEBUG] : Sending GET to https://toshibamobileservice.azurewebsites.net/api/AC/GetCurrentACState [2022-07-15 19:40:06][DEBUG] : Sending GET to https://toshibamobileservice.azurewebsites.net/api/AC/GetCurrentACState [2022-07-15 19:40:06][DEBUG] : Response code: 200 [2022-07-15 19:40:06][DEBUG] : Response code: 200 [2022-07-15 19:40:06][INFO] : ### get updates for Couloir [2022-07-15 19:40:06][DEBUG] : ### subscribe to update for Couloir [2022-07-15 19:40:06][DEBUG] : ### send the last statut of the device [2022-07-15 19:40:06][INFO] : *** CALL BACK FUNCTION *** will send data updated for ac_unique_id ef9e73c9-a85a-415b-a219-aec9a2fe6b7a [2022-07-15 19:40:06][ERROR] : Fatal error : 1 Traceback (most recent call last): File "/var/www/html/plugins/toshibaac/resources/toshibaacd/toshibaacd.py", line 207, in ToshibaApp.init_connection() File "/var/www/html/plugins/toshibaac/resources/toshibaacd/toshibaconnect/toshibaac.py", line 42, in init_connection return self.exec_async_fx(self.__async__init_connection) File "/var/www/html/plugins/toshibaac/resources/toshibaacd/toshibaconnect/toshibaac.py", line 39, in exec_async_fx return asyncio.run_coroutine_threadsafe(fonction(), self.loop).result() File "/usr/lib/python3.7/concurrent/futures/_base.py", line 432, in result return self.__get_result() File "/usr/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result raise self._exception File "/var/www/html/plugins/toshibaac/resources/toshibaacd/toshibaconnect/toshibaac.py", line 62, in __async__init_connection self.equipmentChanged(device) File "/var/www/html/plugins/toshibaac/resources/toshibaacd/toshibaconnect/toshibaac.py", line 112, in equipmentChanged res["AcFeatureMeritB"] = data.fcu_state.ac_merit_b.name File "/var/www/html/plugins/toshibaac/resources/toshibaacd/toshiba_ac/device/fcu_state.py", line 420, in ac_merit_b return ToshibaAcFcuState.AcMeritB.from_raw(self._ac_merit_b) File "/var/www/html/plugins/toshibaac/resources/toshibaacd/toshiba_ac/device/fcu_state.py", line 182, in from_raw }[raw] KeyError: 1 [2022-07-15 19:40:06][DEBUG] : Shutdown [2022-07-15 19:40:06][DEBUG] : Shutting down ToshibaApp service [2022-07-15 19:40:06][DEBUG] : Removing PID file /tmp/jeedom/toshibaac/deamon.pid [2022-07-15 19:40:06][DEBUG] : Exit 0 [2022-07-15 19:41:34][INFO] : Start daemon [2022-07-15 19:41:34][INFO] : Log level : debug [2022-07-15 19:41:34][DEBUG] : Socket port : 55069 [2022-07-15 19:41:34][DEBUG] : PID file : /tmp/jeedom/toshibaac/deamon.pid [2022-07-15 19:41:34][DEBUG] : Username : pppppppppp [2022-07-15 19:41:34][DEBUG] : Writing PID 4085 to /tmp/jeedom/toshibaac/deamon.pid [2022-07-15 19:41:34][DEBUG] : Init request module v2.27.1 [2022-07-15 19:41:34][DEBUG] : Using selector: EpollSelector [2022-07-15 19:41:34][DEBUG] : Sending POST to https://toshibamobileservice.azurewebsites.net/api/Consumer/Login [2022-07-15 19:41:34][DEBUG] : Response code: 200 [2022-07-15 19:41:34][DEBUG] : Sending POST to https://toshibamobileservice.azurewebsites.net/api/Consumer/RegisterMobileDevice [2022-07-15 19:41:34][DEBUG] : Response code: 200 [2022-07-15 19:41:34][DEBUG] : Starting run_op in pipeline thread [2022-07-15 19:41:34][DEBUG] : Creating pipeline executor [2022-07-15 19:41:34][DEBUG] : Gateway Hostname not present. Setting Hostname to: toshibasmaciothubprod.azure-devices.net [2022-07-15 19:41:34][DEBUG] : HTTPTransportStage(InitializePipelineOperation): got connection args [2022-07-15 19:41:34][DEBUG] : creating a SSL context [2022-07-15 19:41:34][DEBUG] : InitializePipelineOperation: completing without error [2022-07-15 19:41:34][DEBUG] : Starting in callback thread [2022-07-15 19:41:34][DEBUG] : Creating callback executor [2022-07-15 19:41:34][DEBUG] : Callback completed with result None [2022-07-15 19:41:34][DEBUG] : Starting run_op in pipeline thread [2022-07-15 19:41:34][DEBUG] : Gateway Hostname not present. Setting Hostname to: toshibasmaciothubprod.azure-devices.net [2022-07-15 19:41:34][DEBUG] : MQTTTransportStage(InitializePipelineOperation): got connection args [2022-07-15 19:41:34][DEBUG] : creating mqtt client [2022-07-15 19:41:34][INFO] : Creating client for connecting using MQTT over TCP [2022-07-15 19:41:34][DEBUG] : creating a SSL context [2022-07-15 19:41:34][DEBUG] : configuring SSL context with default certs [2022-07-15 19:41:34][DEBUG] : Created MQTT protocol client, assigned callbacks [2022-07-15 19:41:34][DEBUG] : InitializePipelineOperation: completing without error [2022-07-15 19:41:34][DEBUG] : Starting in callback thread [2022-07-15 19:41:34][DEBUG] : Callback completed with result None [2022-07-15 19:41:34][DEBUG] : Creating new event loop - CLIENT_INTERNAL_LOOP [2022-07-15 19:41:34][DEBUG] : Using selector: EpollSelector [2022-07-15 19:41:34][DEBUG] : Creating new handler runner for handler: _on_method_request_received [2022-07-15 19:41:34][DEBUG] : Creating new event loop - CLIENT_HANDLER_RUNNER_LOOP [2022-07-15 19:41:34][DEBUG] : Using selector: EpollSelector [2022-07-15 19:41:34][DEBUG] : HANDLER RUNNER (_on_method_request_received): Starting runner [2022-07-15 19:41:34][INFO] : Enabling feature:methods... [2022-07-15 19:41:34][DEBUG] : enable_feature methods called [2022-07-15 19:41:34][DEBUG] : Starting run_op in pipeline thread [2022-07-15 19:41:34][DEBUG] : EnableFeatureOperation: creating worker op of type MQTTSubscribeOperation [2022-07-15 19:41:34][DEBUG] : AutoConnectStage(MQTTSubscribeOperation): Op needs connection. Queueing this op and starting a ConnectionOperation [2022-07-15 19:41:34][DEBUG] : AutoConnectStage(MQTTSubscribeOperation): calling down with Connect operation [2022-07-15 19:41:34][INFO] : ReconnectStage(ConnectOperation): State changes LOGICALLY_DISCONNECTED->LOGICALLY_CONNECTED. Adding to wait list and sending new connect op down [2022-07-15 19:41:34][DEBUG] : ReconnectStage: sending new connect op down [2022-07-15 19:41:34][DEBUG] : ConnectionLockStage(ConnectOperation): blocking [2022-07-15 19:41:34][DEBUG] : MQTTTransportStage(ConnectOperation): connecting [2022-07-15 19:41:34][DEBUG] : MQTTTransportStage(ConnectOperation): Starting watchdog [2022-07-15 19:41:34][DEBUG] : connecting to mqtt broker [2022-07-15 19:41:34][INFO] : Connect using port 8883 (TCP) [2022-07-15 19:41:35][DEBUG] : Sending CONNECT (u1, p1, wr0, wq0, wf0, c0, k60) client_id=b'pppppppp_3e6e4eb5f0e5aa401657906894' [2022-07-15 19:41:35][DEBUG] : _mqtt_client.connect returned rc=0 [2022-07-15 19:41:35][DEBUG] : Received CONNACK (0, 0) [2022-07-15 19:41:35][INFO] : connected with result code: 0 [2022-07-15 19:41:35][DEBUG] : Starting _on_mqtt_connected in pipeline thread [2022-07-15 19:41:35][INFO] : _on_mqtt_connected called [2022-07-15 19:41:35][DEBUG] : PipelineRootStage: ConnectedEvent received. Calling on_connected_handler [2022-07-15 19:41:35][DEBUG] : Starting _on_connected in callback thread [2022-07-15 19:41:35][DEBUG] : completing connect op [2022-07-15 19:41:35][DEBUG] : MQTTTransportStage(ConnectOperation): cancelling watchdog [2022-07-15 19:41:35][DEBUG] : ConnectOperation: completing without error [2022-07-15 19:41:35][DEBUG] : ConnectionLockStage(ConnectOperation): op succeeded. Unblocking queue [2022-07-15 19:41:35][DEBUG] : ConnectionLockStage(ConnectOperation): unblocking and releasing queued ops. [2022-07-15 19:41:35][DEBUG] : ConnectionLockStage(ConnectOperation): processing 0 items in queue for error=None [2022-07-15 19:41:35][DEBUG] : ReconnectStage(ConnectOperation): on_connect_complete error=None state=LOGICALLY_CONNECTED never_connected=True connected=True [2022-07-15 19:41:35][INFO] : Connection State - Connected [2022-07-15 19:41:35][DEBUG] : ReconnectStage: completing waiting ops with error=None [2022-07-15 19:41:35][DEBUG] : ConnectOperation: completing without error [2022-07-15 19:41:35][DEBUG] : AutoConnectStage(MQTTSubscribeOperation): connection is complete. Running op that triggered connection. [2022-07-15 19:41:35][DEBUG] : AutoConnectStage(MQTTSubscribeOperation): Connected. Sending down and adding callback to check result [2022-07-15 19:41:35][DEBUG] : OpTimeoutStage(MQTTSubscribeOperation): Creating timer [2022-07-15 19:41:35][DEBUG] : OpTimeoutStage(MQTTSubscribeOperation): Sending down [2022-07-15 19:41:35][DEBUG] : MQTTTransportStage(MQTTSubscribeOperation): subscribing to $iothub/methods/POST/# [2022-07-15 19:41:35][INFO] : subscribing to $iothub/methods/POST/# with qos 1 [2022-07-15 19:41:35][DEBUG] : Sending SUBSCRIBE (d0, m1) [(b'$iothub/methods/POST/#', 1)] [2022-07-15 19:41:35][DEBUG] : _mqtt_client.subscribe returned rc=0 [2022-07-15 19:41:35][DEBUG] : Waiting for response on MID: 1 [2022-07-15 19:41:35][DEBUG] : Received SUBACK [2022-07-15 19:41:35][INFO] : suback received for 1 [2022-07-15 19:41:35][DEBUG] : Response received for recognized MID: 1 - triggering callback [2022-07-15 19:41:35][DEBUG] : Starting on_complete in pipeline thread [2022-07-15 19:41:35][DEBUG] : MQTTTransportStage(MQTTSubscribeOperation): SUBACK received. completing op. [2022-07-15 19:41:35][DEBUG] : MQTTSubscribeOperation: completing without error [2022-07-15 19:41:35][DEBUG] : OpTimeoutStage(MQTTSubscribeOperation): Cancelling timer [2022-07-15 19:41:35][DEBUG] : EnableFeatureOperation: Worker op (MQTTSubscribeOperation) has been completed [2022-07-15 19:41:35][DEBUG] : EnableFeatureOperation: completing without error [2022-07-15 19:41:35][DEBUG] : Starting on_complete in callback thread [2022-07-15 19:41:35][DEBUG] : Callback completed with result None [2022-07-15 19:41:35][INFO] : Successfully enabled feature:methods [2022-07-15 19:41:35][INFO] : Connecting to Hub... [2022-07-15 19:41:35][DEBUG] : Starting ConnectOperation on the pipeline [2022-07-15 19:41:35][DEBUG] : Starting run_op in pipeline thread [2022-07-15 19:41:35][INFO] : ReconnectStage(ConnectOperation): State changes LOGICALLY_CONNECTED->LOGICALLY_CONNECTED. Adding to wait list and sending new connect op down [2022-07-15 19:41:35][DEBUG] : ReconnectStage: sending new connect op down [2022-07-15 19:41:35][INFO] : ConnectionLockStage(ConnectOperation): Transport is already connected. Completing. [2022-07-15 19:41:35][DEBUG] : ConnectOperation: completing without error [2022-07-15 19:41:35][DEBUG] : ReconnectStage(ConnectOperation): on_connect_complete error=None state=LOGICALLY_CONNECTED never_connected=False connected=True [2022-07-15 19:41:35][DEBUG] : ReconnectStage: completing waiting ops with error=None [2022-07-15 19:41:35][DEBUG] : ConnectOperation: completing without error [2022-07-15 19:41:35][DEBUG] : Starting on_complete in callback thread [2022-07-15 19:41:35][DEBUG] : Callback completed with result None [2022-07-15 19:41:35][INFO] : Successfully connected to Hub [2022-07-15 19:41:35][DEBUG] : Sending GET to https://toshibamobileservice.azurewebsites.net/api/AC/GetConsumerACMapping [2022-07-15 19:41:35][DEBUG] : Response code: 200 [2022-07-15 19:41:35][DEBUG] : Found devices: {Couloir: {MeritFeature: 2c00, Model id: 2, Firmware version: 4.0.00, Initial state: 30421941416410101a24fe0b000010ff000000} ,Salon: {MeritFeature: ac00, Model id: 2, Firmware version: 4.0.00, Initial state: 30421a41316400101923fe0b000010ff000000} [2022-07-15 19:41:35][DEBUG] : [Couloir] Supported AC statuses: {On, Off, None}, Supported AC modes: {None, Auto, Cool, Dry, Fan, Heat}, Supported AC fan modes: {Auto, Quiet, Low, Medium Low, Medium, Medium High, High, None}, Supported AC swing modes: {None, Off, Swing Vertical}, Supported AC power selections: {Power 50, Power 75, Power 100, None}, Supported AC merit B: {None, Off, Fireplace 1, Fireplace 2}, Supported AC merit A: {None, Off, Sleep Care, Comfort, High Power, Eco, Cdu Silent 1, Cdu Silent 2, Heating 8C}, Supported AC air pure ion: {None, Off}, Supported AC self cleaning: {On, Off, None}, Supported AC energy report: No [2022-07-15 19:41:35][DEBUG] : Adding device Couloir [2022-07-15 19:41:35][DEBUG] : [Salon] Supported AC statuses: {On, Off, None}, Supported AC modes: {None, Auto, Cool, Dry, Fan, Heat}, Supported AC fan modes: {Auto, Quiet, Low, Medium Low, Medium, Medium High, High, None}, Supported AC swing modes: {None, Off, Swing Vertical}, Supported AC power selections: {Power 50, Power 75, Power 100, None}, Supported AC merit B: {None, Off, Fireplace 1, Fireplace 2}, Supported AC merit A: {None, Off, Sleep Care, Comfort, High Power, Eco, Floor, Cdu Silent 1, Cdu Silent 2, Heating 8C}, Supported AC air pure ion: {None, Off}, Supported AC self cleaning: {On, Off, None}, Supported AC energy report: No [2022-07-15 19:41:35][DEBUG] : Adding device Salon [2022-07-15 19:41:35][DEBUG] : Sending GET to https://toshibamobileservice.azurewebsites.net/api/AC/GetCurrentACState [2022-07-15 19:41:35][DEBUG] : Sending GET to https://toshibamobileservice.azurewebsites.net/api/AC/GetCurrentACState [2022-07-15 19:41:35][DEBUG] : Response code: 200 [2022-07-15 19:41:35][DEBUG] : Response code: 200 [2022-07-15 19:41:35][INFO] : ### get updates for Couloir [2022-07-15 19:41:35][DEBUG] : ### subscribe to update for Couloir [2022-07-15 19:41:35][DEBUG] : ### send the last statut of the device [2022-07-15 19:41:35][INFO] : *** CALL BACK FUNCTION *** will send data updated for ac_unique_id ef9e73c9-a85a-415b-a219-aec9a2fe6b7a [2022-07-15 19:41:35][ERROR] : Fatal error : 1 Traceback (most recent call last): File "/var/www/html/plugins/toshibaac/resources/toshibaacd/toshibaacd.py", line 207, in ToshibaApp.init_connection() File "/var/www/html/plugins/toshibaac/resources/toshibaacd/toshibaconnect/toshibaac.py", line 42, in init_connection return self.exec_async_fx(self.__async__init_connection) File "/var/www/html/plugins/toshibaac/resources/toshibaacd/toshibaconnect/toshibaac.py", line 39, in exec_async_fx return asyncio.run_coroutine_threadsafe(fonction(), self.loop).result() File "/usr/lib/python3.7/concurrent/futures/_base.py", line 432, in result return self.__get_result() File "/usr/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result raise self._exception File "/var/www/html/plugins/toshibaac/resources/toshibaacd/toshibaconnect/toshibaac.py", line 62, in __async__init_connection self.equipmentChanged(device) File "/var/www/html/plugins/toshibaac/resources/toshibaacd/toshibaconnect/toshibaac.py", line 112, in equipmentChanged res["AcFeatureMeritB"] = data.fcu_state.ac_merit_b.name File "/var/www/html/plugins/toshibaac/resources/toshibaacd/toshiba_ac/device/fcu_state.py", line 420, in ac_merit_b return ToshibaAcFcuState.AcMeritB.from_raw(self._ac_merit_b) File "/var/www/html/plugins/toshibaac/resources/toshibaacd/toshiba_ac/device/fcu_state.py", line 182, in from_raw }[raw] KeyError: 1 [2022-07-15 19:41:35][DEBUG] : Shutdown [2022-07-15 19:41:35][DEBUG] : Shutting down ToshibaApp service [2022-07-15 19:41:35][DEBUG] : Removing PID file /tmp/jeedom/toshibaac/deamon.pid [2022-07-15 19:41:35][DEBUG] : Exit 0