Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 'onMessage' failed 'KeyError' with 0.7.8 plugin #19

Open
erux14 opened this issue Apr 16, 2021 · 5 comments
Open

Error 'onMessage' failed 'KeyError' with 0.7.8 plugin #19

erux14 opened this issue Apr 16, 2021 · 5 comments

Comments

@erux14
Copy link

erux14 commented Apr 16, 2021

Hello,
I have configured on MELcloud app my home "MAISON", with to floors "ETAGE" and "RDC", "ETAGE" and "RDC" have, each one juste one split, "Bureau" and " Salon".
I have follow indictations for plugin installation, step 1 to 4 but it seem doesn't work porpelly.
on LOG I have lot of error message.
2021-04-16 17:20:57.940 Status: (MITSUBISHI) Started.
2021-04-16 17:20:58.388 (MITSUBISHI) MELCloud connection OK
2021-04-16 17:20:58.542 (MITSUBISHI) MELCloud login successfull
2021-04-16 17:20:58.646 (MITSUBISHI) Find 1 buildings
2021-04-16 17:20:58.646 (MITSUBISHI) Find 0 areas in building Maison
2021-04-16 17:20:58.647 (MITSUBISHI) Find 2 floors in building Maison
2021-04-16 17:20:58.647 (MITSUBISHI) Found 0 devices in building Maison Devices of the Type 0 (Aircondition) CurrentEnergyConsumed 0 kWh
2021-04-16 17:20:58.647 (MITSUBISHI) Found 0 devices in building Maison Areas of the Type 0 (Aircondition) CurrentEnergyConsumed 0 kWh
2021-04-16 17:20:58.647 (MITSUBISHI) Found Etage in building Maison Floors CurrentEnergyConsumed 0.0 kWh
2021-04-16 17:20:58.216 Status: (MITSUBISHI) Entering work loop.
2021-04-16 17:20:58.217 Status: (MITSUBISHI) Initialized version 0.7.8, author 'gysmo'
2021-04-16 17:20:58.647 Error: (MITSUBISHI) 'onMessage' failed 'KeyError'.
2021-04-16 17:20:58.647 Error: (MITSUBISHI) ----> Line 544 in '/home/pi/domoticz/plugins/domoticz-python-melcloud/plugin.py', function onMessage
2021-04-16 17:20:58.647 Error: (MITSUBISHI) ----> Line 238 in '/home/pi/domoticz/plugins/domoticz-python-melcloud/plugin.py', function onMessage
2021-04-16 17:20:58.647 Error: (MITSUBISHI) ----> Line 199 in '/home/pi/domoticz/plugins/domoticz-python-melcloud/plugin.py', function searchUnits
2021-04-16 17:20:58.647 Error: (MITSUBISHI) ----> Line 171 in '/home/pi/domoticz/plugins/domoticz-python-melcloud/plugin.py', function oneUnit
2021-04-16 17:20:58.647 Error: (MITSUBISHI) ----> Line 442 in '/home/pi/domoticz/plugins/domoticz-python-melcloud/plugin.py', function melcloud_add_unit
2021-04-16 17:21:08.369 (MITSUBISHI) Update unit Etage information.
2021-04-16 17:21:08.369 Error: (MITSUBISHI) 'onMessage' failed 'KeyError'.
2021-04-16 17:21:08.369 Error: (MITSUBISHI) ----> Line 544 in '/home/pi/domoticz/plugins/domoticz-python-melcloud/plugin.py', function onMessage
2021-04-16 17:21:08.369 Error: (MITSUBISHI) ----> Line 253 in '/home/pi/domoticz/plugins/domoticz-python-melcloud/plugin.py', function onMessage
2021-04-16 17:21:08.369 Error: (MITSUBISHI) ----> Line 492 in '/home/pi/domoticz/plugins/domoticz-python-melcloud/plugin.py', function domoticz_sync_switchs.

did you have any idea for helping me ?

regards

@erux14
Copy link
Author

erux14 commented Apr 16, 2021

HI,
I have supress area and floor and move unit under building and now all works.

@JPGNT
Copy link

JPGNT commented Apr 20, 2021

Same problem but i have not floor define in my configuration.
2021-04-20 13:56:12.331 (MITSUBISHI) Found Salon in building GNT House Devices CurrentEnergyConsumed 0.0 kWh
2021-04-20 13:56:12.331 (MITSUBISHI) Found 4 devices in building GNT House Devices of the Type 0 (Aircondition) CurrentEnergyConsumed 0 kWh
2021-04-20 13:56:12.331 (MITSUBISHI) Found 0 devices in building GNT House Areas of the Type 0 (Aircondition) CurrentEnergyConsumed 0 kWh
2021-04-20 13:56:12.331 (MITSUBISHI) Found 0 devices in building GNT House Floors of the Type 0 (Aircondition) CurrentEnergyConsumed 0 kWh
2021-04-20 13:56:12.331 (MITSUBISHI) Units infos [{'name': 'Chambre Frédéric', 'id': 148048, 'macaddr': 'cc:c0:79:0d:07:fd', 'sn': '1810088204', 'building_id': 88585, 'power': '', 'op_mode': '', 'room_temp': '', 'set_temp': '', 'set_fan': '', 'vaneH': '', 'vaneV': '', 'next_comm': False, 'idoffset': 0}, {'name': 'Chambre JP & H', 'id': 148019, 'macaddr': 'cc:c0:79:12:06:3e', 'sn': '1810088106', 'building_id': 88585, 'power': '', 'op_mode': '', 'room_temp': '', 'set_temp': '', 'set_fan': '', 'vaneH': '', 'vaneV': '', 'next_comm': False, 'idoffset': 7}, {'name': 'Chambre Mathieu', 'id': 148042, 'macaddr': 'cc:c0:79:09:de:76', 'sn': '1810088205', 'building_id': 88585, 'power': '', 'op_mode': '', 'room_temp': '', 'set_temp': '', 'set_fan': '', 'vaneH': '', 'vaneV': '', 'next_comm': False, 'idoffset': 14}, {'name': 'Salon', 'id': 148056, 'macaddr': 'cc:c0:79:08:36:04', 'sn': '1810088152', 'building_id': 88585, 'power': '', 'op_mode': '', 'room_temp': '', 'set_temp': '', 'set_fan': '', 'vaneH': '', 'vaneV': '', 'next_comm': False, 'idoffset': 21}]
2021-04-20 13:56:21.899 (MITSUBISHI) Update unit Chambre Frédéric information.
2021-04-20 13:56:21.964 (MITSUBISHI) Update unit Chambre JP & H information.
2021-04-20 13:56:21.964 Error: (MITSUBISHI) 'onMessage' failed 'KeyError'.
2021-04-20 13:56:21.964 Error: (MITSUBISHI) ----> Line 544 in '/usr/local/domoticz/var/plugins/domoticz-python-melcloud/plugin.py'
2021-04-20 13:56:21.964 Error: (MITSUBISHI) ----> Line 253 in '/usr/local/domoticz/var/plugins/domoticz-python-melcloud/plugin.py'
2021-04-20 13:56:21.964 Error: (MITSUBISHI) ----> Line 508 in '/usr/local/domoticz/var/plugins/domoticz-python-melcloud/plugin.py'

@JPGNT
Copy link

JPGNT commented May 10, 2021

Software discontinuation for melcloud plugin?

@To0wnn
Copy link

To0wnn commented Jun 21, 2021

I have the same issue I think. Is there a way to bypass this issue already?

2021-06-21 13:31:06.657 MELCloud: (MELCloud) MELCloud has disconnected
2021-06-21 13:31:06.657 MELCloud: (MELCloud) Goobye from MELCloud plugin.
2021-06-21 13:31:06.757 MELCloud hardware started.
2021-06-21 13:31:06.656 Status: MELCloud: (MELCloud) Stop directive received.
2021-06-21 13:31:06.666 Status: MELCloud: (MELCloud) Exiting work loop.
2021-06-21 13:31:06.757 Status: MELCloud: (MELCloud) Stopping threads.
2021-06-21 13:31:06.757 Status: MELCloud: (MELCloud) Stopped.
2021-06-21 13:31:06.757 Status: MELCloud: (MELCloud) Started.
2021-06-21 13:31:06.758 Status: MELCloud: (MELCloud) Entering work loop.
2021-06-21 13:31:06.840 Status: MELCloud: (MELCloud) Initialized version 0.7.8, author 'gysmo'
2021-06-21 13:31:07.031 MELCloud: (MELCloud) MELCloud connection OK
2021-06-21 13:31:07.233 MELCloud: (MELCloud) MELCloud login successfull
2021-06-21 13:31:07.334 MELCloud: (MELCloud) Find 1 buildings
2021-06-21 13:31:07.334 MELCloud: (MELCloud) Find 0 areas in building Thuis
2021-06-21 13:31:07.334 MELCloud: (MELCloud) Find 1 floors in building Thuis
2021-06-21 13:31:07.334 MELCloud: (MELCloud) Found 0 devices in building Thuis Devices of the Type 0 (Aircondition) CurrentEnergyConsumed 0 kWh
2021-06-21 13:31:07.334 MELCloud: (MELCloud) Found 0 devices in building Thuis Areas of the Type 0 (Aircondition) CurrentEnergyConsumed 0 kWh
2021-06-21 13:31:07.334 Error: MELCloud: (MELCloud) 'onMessage' failed 'KeyError':'('DeviceName',)'.
2021-06-21 13:31:07.334 Error: MELCloud: (MELCloud) ----> Line 544 in '/opt/domoticz/userdata/plugins/domoticz-python-melcloud/plugin.py', function onMessage
2021-06-21 13:31:07.334 Error: MELCloud: (MELCloud) ----> Line 238 in '/opt/domoticz/userdata/plugins/domoticz-python-melcloud/plugin.py', function onMessage
2021-06-21 13:31:07.334 Error: MELCloud: (MELCloud) ----> Line 199 in '/opt/domoticz/userdata/plugins/domoticz-python-melcloud/plugin.py', function searchUnits
2021-06-21 13:31:07.334 Error: MELCloud: (MELCloud) ----> Line 171 in '/opt/domoticz/userdata/plugins/domoticz-python-melcloud/plugin.py', function oneUnit
2021-06-21 13:31:07.334 Error: MELCloud: (MELCloud) ----> Line 442 in '/opt/domoticz/userdata/plugins/domoticz-python-melcloud/plugin.py', function melcloud_add_unit

Later on it gives:
2021-06-21 13:37:21.261 MELCloud: (MELCloud) MELCloud connection OK
2021-06-21 13:37:21.312 MELCloud: (MELCloud) MELCloud receive unknonw message with error code 404
2021-06-21 13:37:21.312 MELCloud: (MELCloud) MELCloud has disconnected

@MikeyMan83
Copy link

Same here. Any update?

2022-01-31 14:32:12.445 Error: Mitsubishi MelCloud: 'onMessage' failed 'KeyError':'('DeviceName',)'.
2022-01-31 14:32:12.445 Error: Mitsubishi MelCloud: Exception traceback:
2022-01-31 14:32:12.445 Error: Mitsubishi MelCloud: ----> Line 544 in '/home/pi/domoticz/plugins/domoticz-python-melcloud/plugin.py', function onMessage
2022-01-31 14:32:12.445 Error: Mitsubishi MelCloud: ----> Line 238 in '/home/pi/domoticz/plugins/domoticz-python-melcloud/plugin.py', function onMessage
2022-01-31 14:32:12.445 Error: Mitsubishi MelCloud: ----> Line 199 in '/home/pi/domoticz/plugins/domoticz-python-melcloud/plugin.py', function searchUnits
2022-01-31 14:32:12.445 Error: Mitsubishi MelCloud: ----> Line 171 in '/home/pi/domoticz/plugins/domoticz-python-melcloud/plugin.py', function oneUnit
2022-01-31 14:32:12.445 Error: Mitsubishi MelCloud: ----> Line 442 in '/home/pi/domoticz/plugins/domoticz-python-melcloud/plugin.py', function melcloud_add_unit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants