GithubHelp home page GithubHelp logo

domoticz-python-melcloud's People

Contributors

afer92 avatar gysmo38 avatar miczmc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

domoticz-python-melcloud's Issues

Polling interval settings

Hello,

I mentioned that since the last firmware upgrade, the units are more responsive when changing status. The drawback of this is that there are lots of messages coming from MELCloud (more than 2-3 per second), this fills-up the log and probably charges the CPU of useless messages. Is there a way to reduce the polling interval within the plugin so that the samping interval is changed to once per 30s or once per minute?

Thanks

The “Mode” value of MELCloud is not reflecting the status of the airco units and not responding to changes

A Mitsubishi Electric wall unit that actually is off, shows ”Vent”. When you change it in Domoticz (ie. "Warm") it will change back to “Vent” after a few seconds. The unit is still off.
Another unit is off and shows “Off”. Used the remote controller to switch this unit to “Warm”. The unit is On and heating but Domoticz still shows “Off”.
A unit is off and shows “Off”. Used Domoticz to set the unit to “Warm”. The unit is not switched on and after a few seconds the status it is changed back to “Off”.
What I want to do is make an event, blocky or script to use the CV thermostat (centrally located in the Livingroom) to control the Heat pump function of the Airco unit:
• MELCloud will start the airco at 8 AM heating the room at 21C. It will switch it off at 11 PM. (MELCloud functionality)
• When the Room temperature (CV) is equal to the Airco Set temperature, the “Mode” needs to change from “Warm” to “Vent”.
• When the Room temperature becomes below the Airco Set temperature, the “Mode” needs to change back to “Warm”.
• When the Room temperature (CV) is 1 degree above the Airco Set temperature, the “Mode” needs to change to “Off”.
• When the Room temperature becomes below the Airco Set temperature, the “Mode” need to change back to “Warm” (switch on the airco/heat pump)

Loads of errors with plugin

Hi all,

Have been running melcloud for a while now, without any issues. However, since a while, it seems to hang my whole domoticz setup. Looking at the logs, there's a lot of errors returning:

2020-10-02 13:56:42.171  (Mitsubishi Airco) MELCloud receive unknonw message with error code 404
2020-10-02 13:56:42.171  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:42.359  (Mitsubishi Airco) MELCloud connection OK
2020-10-02 13:56:42.462  Error: (Mitsubishi Airco) 'onMessage' failed 'KeyError'.
2020-10-02 13:56:42.462  Error: (Mitsubishi Airco) ----> Line 450 in '/home/pi/domoticz/plugins/MELCloud/plugin.py', function onMessage
2020-10-02 13:56:42.462  Error: (Mitsubishi Airco) ----> Line 145 in '/home/pi/domoticz/plugins/MELCloud/plugin.py', function onMessage
2020-10-02 13:56:42.462  (Mitsubishi Airco) MELCloud receive unknonw message with error code 404
2020-10-02 13:56:42.463  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:42.645  (Mitsubishi Airco) MELCloud connection OK
2020-10-02 13:56:42.697  (Mitsubishi Airco) MELCloud receive unknonw message with error code 404
2020-10-02 13:56:42.697  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:42.932  (Mitsubishi Airco) MELCloud connection OK
2020-10-02 13:56:42.984  (Mitsubishi Airco) MELCloud receive unknonw message with error code 404
2020-10-02 13:56:42.985  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:43.161  (Mitsubishi Airco) MELCloud connection OK
2020-10-02 13:56:43.213  (Mitsubishi Airco) MELCloud receive unknonw message with error code 404
2020-10-02 13:56:43.213  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:43.395  (Mitsubishi Airco) MELCloud connection OK
2020-10-02 13:56:43.446  (Mitsubishi Airco) MELCloud receive unknonw message with error code 404
2020-10-02 13:56:43.447  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:43.680  (Mitsubishi Airco) MELCloud connection OK
2020-10-02 13:56:43.732  (Mitsubishi Airco) MELCloud receive unknonw message with error code 404
2020-10-02 13:56:43.733  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:43.973  (Mitsubishi Airco) MELCloud connection OK
2020-10-02 13:56:44.025  (Mitsubishi Airco) MELCloud receive unknonw message with error code 404
2020-10-02 13:56:44.025  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:44.261  (Mitsubishi Airco) MELCloud connection OK
2020-10-02 13:56:44.313  (Mitsubishi Airco) MELCloud receive unknonw message with error code 404
2020-10-02 13:56:44.313  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:44.547  (Mitsubishi Airco) MELCloud connection OK
2020-10-02 13:56:44.604  (Mitsubishi Airco) MELCloud receive unknonw message with error code 404
2020-10-02 13:56:44.604  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:44.797  (Mitsubishi Airco) MELCloud connection OK
2020-10-02 13:56:44.849  (Mitsubishi Airco) MELCloud receive unknonw message with error code 404
2020-10-02 13:56:44.849  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:45.038  (Mitsubishi Airco) MELCloud connection OK
2020-10-02 13:56:45.089  (Mitsubishi Airco) MELCloud receive unknonw message with error code 404
2020-10-02 13:56:45.090  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:45.277  (Mitsubishi Airco) MELCloud connection OK
2020-10-02 13:56:45.329  (Mitsubishi Airco) MELCloud receive unknonw message with error code 404
2020-10-02 13:56:45.329  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:45.522  (Mitsubishi Airco) MELCloud connection OK
2020-10-02 13:56:45.574  (Mitsubishi Airco) MELCloud receive unknonw message with error code 404
2020-10-02 13:56:45.574  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:45.776  (Mitsubishi Airco) MELCloud connection OK
2020-10-02 13:56:45.833  (Mitsubishi Airco) MELCloud receive unknonw message with error code 404
2020-10-02 13:56:45.834  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:46.077  (Mitsubishi Airco) MELCloud connection OK
2020-10-02 13:56:46.129  (Mitsubishi Airco) MELCloud receive unknonw message with error code 404
2020-10-02 13:56:46.129  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:46.311  (Mitsubishi Airco) MELCloud connection OK
2020-10-02 13:56:46.363  (Mitsubishi Airco) MELCloud receive unknonw message with error code 404
2020-10-02 13:56:46.363  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:46.607  (Mitsubishi Airco) MELCloud connection OK
2020-10-02 13:56:46.659  (Mitsubishi Airco) MELCloud receive unknonw message with error code 404
2020-10-02 13:56:46.659  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:46.945  (Mitsubishi Airco) MELCloud connection OK
2020-10-02 13:56:46.997  (Mitsubishi Airco) MELCloud receive unknonw message with error code 404
2020-10-02 13:56:46.997  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:47.258  (Mitsubishi Airco) MELCloud connection OK
2020-10-02 13:56:47.310  (Mitsubishi Airco) MELCloud receive unknonw message with error code 404
2020-10-02 13:56:47.310  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:47.553  (Mitsubishi Airco) MELCloud connection OK
2020-10-02 13:56:47.605  (Mitsubishi Airco) MELCloud receive unknonw message with error code 404
2020-10-02 13:56:47.606  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:47.845  (Mitsubishi Airco) MELCloud connection OK
2020-10-02 13:56:47.897  (Mitsubishi Airco) MELCloud receive unknonw message with error code 404
2020-10-02 13:56:47.897  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:48.334  (Mitsubishi Airco) MELCloud connection OK
2020-10-02 13:56:48.386  (Mitsubishi Airco) MELCloud receive unknonw message with error code 404
2020-10-02 13:56:48.386  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:48.630  (Mitsubishi Airco) MELCloud connection OK
2020-10-02 13:56:48.682  (Mitsubishi Airco) MELCloud receive unknonw message with error code 404
2020-10-02 13:56:48.682  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:48.863  (Mitsubishi Airco) MELCloud connection OK
2020-10-02 13:56:48.915  (Mitsubishi Airco) MELCloud receive unknonw message with error code 404
2020-10-02 13:56:48.915  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:49.099  (Mitsubishi Airco) MELCloud connection OK
2020-10-02 13:56:49.151  (Mitsubishi Airco) MELCloud receive unknonw message with error code 404
2020-10-02 13:56:49.151  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:49.385  (Mitsubishi Airco) MELCloud connection OK
2020-10-02 13:56:49.438  (Mitsubishi Airco) MELCloud receive unknonw message with error code 404
2020-10-02 13:56:49.438  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:49.669  (Mitsubishi Airco) MELCloud connection OK
2020-10-02 13:56:49.726  (Mitsubishi Airco) MELCloud receive unknonw message with error code 404
2020-10-02 13:56:49.726  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:49.970  (Mitsubishi Airco) MELCloud connection OK
2020-10-02 13:56:50.021  (Mitsubishi Airco) MELCloud receive unknonw message with error code 404
2020-10-02 13:56:50.172  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:50.492  (Mitsubishi Airco) MELCloud connection OK
2020-10-02 13:56:50.543  (Mitsubishi Airco) MELCloud receive unknonw message with error code 404
2020-10-02 13:56:50.595  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:50.833  (Mitsubishi Airco) MELCloud connection OK
2020-10-02 13:56:50.935  (Mitsubishi Airco) MELCloud receive unknonw message with error code 404
2020-10-02 13:56:50.936  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:51.178  (Mitsubishi Airco) MELCloud connection OK
2020-10-02 13:56:51.230  (Mitsubishi Airco) MELCloud receive unknonw message with error code 404
2020-10-02 13:56:51.230  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:51.467  (Mitsubishi Airco) MELCloud connection OK
2020-10-02 13:56:51.518  (Mitsubishi Airco) MELCloud receive unknonw message with error code 404
2020-10-02 13:56:51.519  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:51.760  (Mitsubishi Airco) MELCloud connection OK
2020-10-02 13:56:51.810  (Mitsubishi Airco) MELCloud receive unknonw message with error code 404
2020-10-02 13:56:51.861  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:52.074  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:52.315  (Mitsubishi Airco) MELCloud connection FAIL: Operation already in progress
2020-10-02 13:56:52.316  (Mitsubishi Airco) MELCloud connection OK
2020-10-02 13:56:52.316  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:52.316  Error: (Mitsubishi Airco) No transport, write directive to 'MELCloud' ignored.
2020-10-02 13:56:52.399  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:52.489  (Mitsubishi Airco) MELCloud connection FAIL: Operation canceled
2020-10-02 13:56:52.490  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:52.593  (Mitsubishi Airco) MELCloud connection FAIL: Operation canceled
2020-10-02 13:56:52.593  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:52.694  (Mitsubishi Airco) MELCloud connection FAIL: Operation canceled
2020-10-02 13:56:52.695  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:52.779  (Mitsubishi Airco) MELCloud connection FAIL: Operation canceled
2020-10-02 13:56:52.780  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:52.869  (Mitsubishi Airco) MELCloud connection FAIL: Operation canceled
2020-10-02 13:56:52.869  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:53.060  (Mitsubishi Airco) MELCloud connection FAIL: Operation already in progress
2020-10-02 13:56:53.061  (Mitsubishi Airco) MELCloud connection OK
2020-10-02 13:56:53.061  Error: Domoticz(pid:14342, tid:14371('Plugin_ASIO')) received fatal signal 11 (Segmentation fault)
2020-10-02 13:56:53.061  Error: siginfo address=0x3806, address=(nil)
2020-10-02 13:56:53.061  (Mitsubishi Airco) MELCloud has disconnected
2020-10-02 13:56:53.062  Error: (Mitsubishi Airco) No transport, write directive to 'MELCloud' ignored.
2020-10-02 13:56:53.182  (Slimme Meter) P1 Smart Meter (Stroom)
2020-10-02 13:56:53.183  (Slimme Meter) General/Voltage (Voltage L1)
2020-10-02 13:56:53.188  (Slimme Meter) General/Voltage (Voltage L2)
2020-10-02 13:56:53.190  (Slimme Meter) General/Voltage (Voltage L3)
2020-10-02 13:56:53.194  (Slimme Meter) Usage (Usage L1)
2020-10-02 13:56:53.198  (Slimme Meter) Usage (Usage L2)
2020-10-02 13:56:53.203  (Slimme Meter) Usage (Usage L3)
2020-10-02 13:56:53.207  (Slimme Meter) Usage (Delivery L1)
2020-10-02 13:56:53.211  (Slimme Meter) Usage (Delivery L2)
2020-10-02 13:56:53.215  (Slimme Meter) Usage (Delivery L3)
2020-10-02 13:56:57.620  Error: Thread 22 (Thread 0x6a9f9220 (LWP 14371)):
2020-10-02 13:56:57.620  Error: #0  __waitpid (options=0, stat_loc=0x6a9f7dc8, pid=28350) at ../sysdeps/unix/sysv/linux/waitpid.c:30
2020-10-02 13:56:57.620  Error: #1  __waitpid (pid=28350, stat_loc=0x6a9f7dc8, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:25
2020-10-02 13:56:57.620  Error: #2  0x002dbcdc in dumpstack_gdb(bool) ()
2020-10-02 13:56:57.620  Error: #3  0x002dc2a8 in signal_handler(int, siginfo_t*, void*) ()
2020-10-02 13:56:57.620  Error: #4  <signal handler called>
2020-10-02 13:56:57.621  Error: #5  raise (sig=11) at ../sysdeps/unix/sysv/linux/raise.c:50
2020-10-02 13:56:57.621  Error: #6  <signal handler called>
2020-10-02 13:56:57.621  Error: #7  0x6ee290d0 in ?? ()
2020-10-02 13:56:57.621  Error: #8  0x76ca3d50 in ?? () from /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.1

Any idea how to fix this?

Plugin crashing after domoticz restart

Hi,

When domoticz is restarting the plugin is crashing or not starting correctly.
When i switch the plugin off and back on again it is working perfectly again.

Here the errors:
2021-12-06_09-10
2021-12-06_09-05

Kind regards,

Tony

Language setting

Thanks for the update of this plugin. (I was still on 0.7.3, having issues to do settings from Domoticz).
Now used the plugin.py from #27
I use it in combination with the temperature from EVOhome plugin,

I found out that using the plugin changed the language from Dutch to English in the MELcloud app.
This can be solved by adding the wanted language=12 (for Dutch) to the login arguments like this:

def melcloud_login(self):
data = "AppVersion=1.9.3.0&Language=12&Email={0}&Password={1}".format(Parameters["Username"], Parameters["Password"])
self.melcloud_send_data(self.melcloud_urls["login"], data, "LOGIN")
return True

May be it can be included?

For completeness here a list with Language codes that I have found earlier.
Language codes:
0 = en English
1 = bg Български
2 = cs Čeština
3 = da Dansk
4 = de Deutsch
5 = et Eesti
6 = es Español
7 = fr Français
8 = hy Հայերեն
9 = lv Latviešu
10 = lt Lietuvių
11 = hu Magyar
12 = nl Nederlands
13 = no Norwegian
14 = pl Polski
15 = pt Português
16 = ru Русский
17 = fi Suomi
18 = sv Svenska
19 = it Italiano
20 = uk Українська
21 = tr Türkçe
22 = el Ελληνικά
23 = hr Hrvatski
24 = ro Română
25 = sl Slovenščina

Best regards
Jan Peppink, https://ict.peppink.nl

Error 'onMessage' failed 'KeyError' with 0.7.8 plugin

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

Error with onMessage function

2018-12-09 23:34:04.899 (MELCloud) Update unit XXXXXXX information.
2018-12-09 23:34:04.899 Error: (MELCloud) 'onMessage' failed 'UnboundLocalError':'local variable 'setModeLevel' referenced before assignment'.
2018-12-09 23:34:04.899 Error: (MELCloud) ----> Line 444 in /root/domoticz/plugins/Melcloud/plugin.py, function onMessage
2018-12-09 23:34:04.899 Error: (MELCloud) ----> Line 194 in /root/domoticz/plugins/Melcloud/plugin.py, function onMessage
2018-12-09 23:34:04.899 Error: (MELCloud) ----> Line 406 in /root/domoticz/plugins/Melcloud/plugin.py, function domoticz_sync_switchs

error code 500

Hello,

Since a couple of days, there is an issue when controlling air conditioner.
Status is correctly uploaded to Domoticz, but when trying to control air conditioner from Domoticz, the following message appears in the log and there is no effect on the aircon system : "MELCloud receive unknonw message with error code 500".

Has anybody got a clue regarding this issue?
Thanks

Unable to group Melcloud devices in Domoticz - feature request

I would like to be able grouping all created devices in Domoticz, mode, temp, fan, H vane and V vane to simplify the use.
Usually Aurora theme allows it but for an unknown reason it is not working with MelCloud plugin.
Would it be possible schrinking the devices and use a temperature setpoint replacing the multilevel switch for temperature selection?
The final goal is to be able setting a timer in a simple way, avoiding having to set-up multiple timers for each device?
Thanks!

Screenshot and plugin adding to Python Plugin Manager

First, thanks for the plugin: I'll try it in the next weeks, as soon as I'll get the WiFi interface for the Mitsubishi airco.
I just want to suggest:

  1. put a screenshot in the README.md
  2. add your plugin to the Python Pluging Managers (installing one of these 2 plugins, it's possible to list your plugin and install it easily)
  1. after the plugin is added to Python Plugin Manager, remember to update the plugin page flagging the last column https://www.domoticz.com/wiki/Plugins
    Thanks.
    Paolo

10° default value when switching on & other issues

Hello,

When switching on the system (from "Off" to "Warm" for example) the default temp value is 10°, this is an issue.
Is the whole configuration sent to MELCloud (ie mode, temp, fan speed, vanes config)?
I tried events but if more than 1 commmand is sent (ie start living room to warm and corridor to warm), everything goes back to "off".

'Auto' mode not included

In the MelCloud app, it is possible to set the mode to 'Auto'. Could this be added to line 95 in the list of modes?
I'll try it when I get a moment and feed back.

Mitsubishi MSZ-LN25 problem(plugin version 0.6)

2018-03-06 22:28:04.775 (Mitsubishi) Sync POWER True OPERATION MODE 1 FAN SPEED 0 VANE HOZ 0 VANE VER 0 UNIT TEMP 24.0
2018-03-06 22:28:04.775 Error: (Mitsubishi) 'onHeartbeat' failed 'AttributeError':''BasePlugin' object has no attribute 'domModeLevels''.
2018-03-06 22:28:04.775 Error: (Mitsubishi) ----> Line 453 in /usr/local/domoticz/var/plugins/Melcloud/plugin.py, function onHeartbeat
2018-03-06 22:28:04.775 Error: (Mitsubishi) ----> Line 209 in /usr/local/domoticz/var/plugins/Melcloud/plugin.py, function onHeartbeat

Log problem

Hello,
Thank you very much for your work with the plugin. I have 4 indoor units and I have a huge problem with the log. If the plugin makes the status query every 25 seconds, the following is written to the log:

2023-10-16 20:17:47.189 MelCloud: Update unit Michael information.
2023-10-16 20:17:50.014 MelCloud: Update unit Valeria information.
2023-10-16 20:17:50.075 MelCloud: Update unit Wohnzimmer information.
2023-10-16 20:17:50.126 MelCloud: Update unit Schlafzimmer information

Everything is going well so far. But every day the text in the log doubles and the next day there are 2 entries for each indoor device. This is what it looks like on the second day:

2023-10-16 20:17:47.189 MelCloud: Update unit Michael information.
2023-10-16 20:17:47.189 MelCloud: Update unit Michael information.
2023-10-16 20:17:50.014 MelCloud: Update unit Valeria information.
2023-10-16 20:17:50.014 MelCloud: Update unit Valeria information.
2023-10-16 20:17:50.075 MelCloud: Update unit Wohnzimmer information.
2023-10-16 20:17:50.075 MelCloud: Update unit Wohnzimmer information.
2023-10-16 20:17:50.126 MelCloud: Update unit Schlafzimmer information
2023-10-16 20:17:50.126 MelCloud: Update unit Schlafzimmer information

And so the messages multiply every day, so that after a week the log becomes so overloaded that the Raspi warms up and eventually crashes.

The problem can be solved temporarily by restarting the plugin. But that's not a good solution if you're not at home for a few days or something like that...

What can cause this? Ask for support. Thanks

Login issue when domoticz used

Hi,

Pulled latest version to latest version of Domoticz and did not get login to MELCloud.

Fixed login data format to :
data = {"Appversion":"1.9.3.0", "Email":Parameters["Username"],"Password": Parameters["Password"] }
to get it working.

Now test works fine, but domoticz gives login error.
JSON reply from domoticz:
JSON REPLY: {'ErrorId': 1, 'ErrorMessage': None, 'LoginStatus': 0, 'UserId': 0, 'RandomKey': None, 'AppVersionAnnouncement': None, 'LoginData': None, 'ListPendingInvite': None, 'ListOwnershipChangeRequest': None, 'ListPendingAnnouncement': None, 'LoginMinutes': 0, 'LoginAttempts': 0}

any ideas what could be problem in domoticz run as test run form commandline works ok ?

MELCloud plugin makes domoticz crash ?

Hi,

I used the MELCloud plugin for months and it was cool to control my AC from the same domoticz interface on my smartphone rather than the proprietary Mitsubishi app.
Suddenly 2 months ago, my domoticz server installed on synology NAS began to crash lets say every 2 days.
I use the last version of the MELCloud plugin : 0.7.6
I tried to upgrade domoticz, downgrade and finally tested to deactivate the MEL Cloud plugin and I see no more crashes.
Here is an extract of the last lines of my domoticz log before crash :

2020-09-22 17:12:36.790  Error: (Climatisation): Async Secure Read Exception: 335544539, short read
2020-09-22 17:12:36.812  (Climatisation) MELCloud receive unknonw message with error code 404
2020-09-22 17:12:36.813  (Climatisation) MELCloud has disconnected
2020-09-22 17:12:37.062  (Climatisation) MELCloud connection OK
2020-09-22 17:12:37.082  Error: (Climatisation) No transport, write directive to 'MELCloud' ignored.
2020-09-22 17:12:37.082  (Climatisation) MELCloud has disconnected
Fatal Python error: Segmentation fault

Thread 0x2cdea440 (most recent call first):
2020-09-22 17:12:37.236  Error: Domoticz(pid:10049, tid:10635('Plugin_ASIO')) received fatal signal 11 (Segmentation fault)
2020-09-22 17:12:37.239  Error: siginfo address=0x2741, address=0x2ae91e70
2020-09-22 17:12:37.458  Error: Failed to start gdb, will use backtrace() for printing stack frame

2020-09-22 17:12:37.509  Error: #0  /usr/local/domoticz/bin/domoticz() [0x15f574]
2020-09-22 17:12:37.509  Error: #1  /usr/local/domoticz/bin/domoticz() [0x16004c]
2020-09-22 17:12:37.509  Error: #2  /lib/libc.so.6 : __default_rt_sa_restorer + 0 [0x2ae91e80]

I do not see clear proof that this is the plugin that makes my domoticz crash but it is related to Python and it crashes 200 ms after an error occurs in MELCloud.

Thanks in advance for any help !
/Gozzima

receive unknonw message with error code 404

HI,

Can you help me ? Thanks in advance.

2021-04-14 16:31:05.522 Status: (PAC Chauffage) Started.
2021-04-14 16:31:05.747 Status: (PAC Chauffage) Entering work loop.
2021-04-14 16:31:05.748 Status: (PAC Chauffage) Initialized version 0.7.8, author 'gysmo'
2021-04-14 16:31:06.086 (PAC Chauffage) MELCloud login successfull
2021-04-14 16:31:06.189 (PAC Chauffage) Find 1 buildings
2021-04-14 16:31:06.189 (PAC Chauffage) Find 0 areas in building Helloy-Noncle
2021-04-14 16:31:06.189 (PAC Chauffage) Find 0 floors in building Helloy-Noncle
2021-04-14 16:31:06.189 (PAC Chauffage) Found 0 devices in building Helloy-Noncle Devices of the Type 0 (Aircondition) CurrentEnergyConsumed 0 kWh
2021-04-14 16:31:06.189 (PAC Chauffage) Found 0 devices in building Helloy-Noncle Areas of the Type 0 (Aircondition) CurrentEnergyConsumed 0 kWh
2021-04-14 16:31:06.189 (PAC Chauffage) Found 0 devices in building Helloy-Noncle Floors of the Type 0 (Aircondition) CurrentEnergyConsumed 0 kWh
2021-04-14 16:31:06.189 (PAC Chauffage) Units infos []
2021-04-14 16:31:06.189 (PAC Chauffage) Find 0 devices in MELCloud

2021-04-14 16:36:15.997 (PAC Chauffage) MELCloud connection OK
2021-04-14 16:36:16.048 (PAC Chauffage) MELCloud receive unknonw message with error code 404
2021-04-14 16:36:16.049 (PAC Chauffage) MELCloud has disconnected

Error 100?

I put a timer on to switch off the AC, but got this error. Never seen error 100 before. ‘Manually’ switching the AC to off works fine through the same domoticz switch.

2023-06-18 07:00:01.031 Status: Schedule item started! Name: MELCloud - Olla - Mode, Type: On Time, DevID: 6219, Time: 2023-06-18 07:00:01
2023-06-18 07:00:01.388 Error: MELCloud: Call to function 'onCommand' failed, exception details:
2023-06-18 07:00:01.417 Error: MELCloud: Traceback (most recent call last):
2023-06-18 07:00:01.417 Error: MELCloud: File "/home/pi/domoticz/plugins/domoticz-python-melcloud/plugin.py", line 586, in onCommand
2023-06-18 07:00:01.417 Error: MELCloud: _plugin.onCommand(Unit, Command, Level, Hue)
2023-06-18 07:00:01.417 Error: MELCloud: File "/home/pi/domoticz/plugins/domoticz-python-melcloud/plugin.py", line 344, in onCommand
2023-06-18 07:00:01.418 Error: MELCloud: current_unit['op_mode'] = self.domoticz_levels['mode'][str(Level)]
2023-06-18 07:00:01.418 Error: MELCloud: KeyError: '100'

setPicID referenced before assignment

Hello,
i'm new user, i use the version 0.7.9
and i can control my air conditionner
but with this error when i choose "auto mode":
Error: Clim: 'onMessage' failed 'UnboundLocalError':'local variable 'setPicID' referenced before assignment'

any idea?
Tx, julien.

half degree

Hello,
The plugin (v0.7.8) has no setting levels for half degree like the MELcloud app.
When testing: e.g. setting the temp to 20.5 degree (in the app) leads to weird results.
In my case setting to warming to 20,5 degree (in the app) results in cooling to 24 degree (which is one of my presets).
I think it gets (very) confused when syncronizing the 20.5 degree.

Is it possible to have levels for half degrees added?

Best regards,
Jan Peppink, https://ict.peppink.nl

Error messages with v0.7.6

Functioning OK for 2 years. Problem for several weeks, appeared suddenly, without my being able to correlate to a modification. I tried to upgrade to Domoticz V2020.2 version but the problem persists.

Configuration:
Domoticz on Synology DS218+
Version: 2020.2 (build 12731)
Build Hash: 7933f659d-modified
Compile Date: 2020-12-06 10:22:02
dzVents Version: 3.0.18
Python Version: 3.8.2 (tags/Contacts-1.0.0-0232-200617:57e5f51, Jun 29 2020, 09:34:04) [GCC 4.9.3 20150311 (prerelease)]

Messages:
2020-12-09 15:11:26.670 (MITSUBISHI) Update unit Chambre 1 information.
2020-12-09 15:11:26.732 (MITSUBISHI) Update unit Chambre 2 information.
2020-12-09 15:11:26.754 (MITSUBISHI) Update unit Chambre 3 information.
2020-12-09 15:11:26.826 (MITSUBISHI) Update unit Salon information.
2020-12-09 15:11:26.681 Error: (MITSUBISHI) 'onMessage' failed 'KeyError'.
2020-12-09 15:11:26.681 Error: (MITSUBISHI) ----> Line 450 in '/usr/local/domoticz/var/plugins/MITSUBISHI/plugin.py'
2020-12-09 15:11:26.681 Error: (MITSUBISHI) ----> Line 195 in '/usr/local/domoticz/var/plugins/MITSUBISHI/plugin.py'
2020-12-09 15:11:26.681 Error: (MITSUBISHI) ----> Line 426 in '/usr/local/domoticz/var/plugins/MITSUBISHI/plugin.py'
2020-12-09 15:11:45.139 (RFXCOM) General/kWh (Conso électrique GNTHouse)
2020-12-09 15:11:51.679 (MITSUBISHI) Update unit Chambre 1 information.
2020-12-09 15:11:51.742 (MITSUBISHI) Update unit Chambre 2 information.
2020-12-09 15:11:51.765 (MITSUBISHI) Update unit Chambre 3 information.
2020-12-09 15:11:51.788 (MITSUBISHI) Update unit Salon information.
2020-12-09 15:11:51.691 Error: (MITSUBISHI) 'onMessage' failed 'KeyError'.
2020-12-09 15:11:51.691 Error: (MITSUBISHI) ----> Line 450 in '/usr/local/domoticz/var/plugins/MITSUBISHI/plugin.py'
2020-12-09 15:11:51.691 Error: (MITSUBISHI) ----> Line 195 in '/usr/local/domoticz/var/plugins/MITSUBISHI/plugin.py'
2020-12-09 15:11:51.691 Error: (MITSUBISHI) ----> Line 426 in '/usr/local/domoticz/var/plugins/MITSUBISHI/plugin.py'
2020-12-09 15:12:16.751 (MITSUBISHI) Update unit Chambre 1 information.
2020-12-09 15:12:16.763 (MITSUBISHI) Update unit Chambre 2 information.
2020-12-09 15:12:16.836 (MITSUBISHI) Update unit Chambre 3 information.
2020-12-09 15:12:16.857 (MITSUBISHI) Update unit Salon information.
2020-12-09 15:12:16.763 Error: (MITSUBISHI) 'onMessage' failed 'KeyError'.
2020-12-09 15:12:16.763 Error: (MITSUBISHI) ----> Line 450 in '/usr/local/domoticz/var/plugins/MITSUBISHI/plugin.py'
2020-12-09 15:12:16.763 Error: (MITSUBISHI) ----> Line 195 in '/usr/local/domoticz/var/plugins/MITSUBISHI/plugin.py'
2020-12-09 15:12:16.763 Error: (MITSUBISHI) ----> Line 426 in '/usr/local/domoticz/var/plugins/MITSUBISHI/plugin.py'
2020-12-09 15:12:41.761 (MITSUBISHI) Update unit Chambre 1 information.
2020-12-09 15:12:41.774 (MITSUBISHI) Update unit Chambre 2 information.
2020-12-09 15:12:41.799 (MITSUBISHI) Update unit Chambre 3 information.
2020-12-09 15:12:41.822 (MITSUBISHI) Update unit Salon information.
2020-12-09 15:12:41.774 Error: (MITSUBISHI) 'onMessage' failed 'KeyError'.
2020-12-09 15:12:41.774 Error: (MITSUBISHI) ----> Line 450 in '/usr/local/domoticz/var/plugins/MITSUBISHI/plugin.py'
2020-12-09 15:12:41.774 Error: (MITSUBISHI) ----> Line 195 in '/usr/local/domoticz/var/plugins/MITSUBISHI/plugin.py'
2020-12-09 15:12:41.774 Error: (MITSUBISHI) ----> Line 426 in '/usr/local/domoticz/var/plugins/MITSUBISHI/plugin.py'
.......

Thanks for your help

error code 404

Why?

2021-06-26 11:45:58.476 (MITSUBISHI Clim) MELCloud connection OK
2021-06-26 11:45:58.527 (MITSUBISHI Clim) MELCloud receive unknonw message with error code 404
2021-06-26 11:45:58.527 (MITSUBISHI Clim) MELCloud has disconnected
...
2021-06-26 11:46:23.468 (MITSUBISHI Clim) MELCloud connection OK
2021-06-26 11:46:23.519 (MITSUBISHI Clim) MELCloud receive unknonw message with error code 404
2021-06-26 11:46:23.519 (MITSUBISHI Clim) MELCloud has disconnected
...
2021-06-26 11:46:48.471 (MITSUBISHI Clim) MELCloud connection OK
2021-06-26 11:46:48.522 (MITSUBISHI Clim) MELCloud receive unknonw message with error code 404
2021-06-26 11:46:48.522 (MITSUBISHI Clim) MELCloud has disconnected
...
2021-06-26 11:47:13.468 (MITSUBISHI Clim) MELCloud connection OK
2021-06-26 11:47:13.519 (MITSUBISHI Clim) MELCloud receive unknonw message with error code 404
2021-06-26 11:47:13.519 (MITSUBISHI Clim) MELCloud has disconnected
... etc, etc, ....

Error 401

Sometimes (possibly when the IP address changes when Domoticz is still runing), the cloud rejects any further messages with HTTP code 401 (Unauthorized). Note that this is a different response than the one in the LOGIN sequence. I suppose melcloud locks the key to the IP address and thus invalidates the key if it is used by another IP address. This could be a problem for users with dynamic IP addresses or (as in my case) dual-homed with more than one internet connection.

Note that the key gets invalidated and doesn't work anymore, even if the IP address is returned back to the previous one.

Suggestion:

add elif (Status == 401): and a proper handling of this situation (may be the same as on disconnect)

Errors after adding plugin

Just tried adding the MelCloud plugin.

Domoticz log shows:

2021-06-29 13:18:55.702 Mitsubishi Airco hardware started.
2021-06-29 13:18:55.702 Status: Mitsubishi Airco: (Mitsubishi Airco) Entering work loop.
2021-06-29 13:18:55.702 Status: Mitsubishi Airco: (Mitsubishi Airco) Started.
2021-06-29 13:18:55.940 Status: Mitsubishi Airco: (Mitsubishi Airco) Initialized version 0.7.8, author 'gysmo'
2021-06-29 13:18:56.136 Mitsubishi Airco: (Mitsubishi Airco) MELCloud connection OK
2021-06-29 13:18:56.288 Mitsubishi Airco: (Mitsubishi Airco) MELCloud login successfull
2021-06-29 13:18:56.391 Mitsubishi Airco: (Mitsubishi Airco) Find 1 buildings
2021-06-29 13:18:56.391 Mitsubishi Airco: (Mitsubishi Airco) Find 0 areas in building Huis
2021-06-29 13:18:56.391 Mitsubishi Airco: (Mitsubishi Airco) Find 3 floors in building Huis
2021-06-29 13:18:56.391 Mitsubishi Airco: (Mitsubishi Airco) Found 0 devices in building Huis Devices of the Type 0 (Aircondition) CurrentEnergyConsumed 0 kWh
2021-06-29 13:18:56.391 Mitsubishi Airco: (Mitsubishi Airco) Found 0 devices in building Huis Areas of the Type 0 (Aircondition) CurrentEnergyConsumed 0 kWh
2021-06-29 13:18:56.391 Error: Mitsubishi Airco: (Mitsubishi Airco) 'onMessage' failed 'KeyError':'('DeviceName',)'.
2021-06-29 13:18:56.391 Error: Mitsubishi Airco: (Mitsubishi Airco) ----> Line 544 in '/home/pi/domoticz/plugins/MELCloud/plugin.py', function onMessage
2021-06-29 13:18:56.391 Error: Mitsubishi Airco: (Mitsubishi Airco) ----> Line 238 in '/home/pi/domoticz/plugins/MELCloud/plugin.py', function onMessage
2021-06-29 13:18:56.391 Error: Mitsubishi Airco: (Mitsubishi Airco) ----> Line 199 in '/home/pi/domoticz/plugins/MELCloud/plugin.py', function searchUnits
2021-06-29 13:18:56.391 Error: Mitsubishi Airco: (Mitsubishi Airco) ----> Line 171 in '/home/pi/domoticz/plugins/MELCloud/plugin.py', function oneUnit
2021-06-29 13:18:56.391 Error: Mitsubishi Airco: (Mitsubishi Airco) ----> Line 442 in '/home/pi/domoticz/plugins/MELCloud/plugin.py', function melcloud_add_unit

Any thoughts?

MelCloud plugin makes Domoticz crash if database auto save is enabled

Using Domoticz troubleshooting guide https://www.domoticz.com/wiki/Troubleshooting#Crash_log I finally figured out that plugin makes Domoticz crash hourly.

Does anybody experience the same issue, and how could it be solved?

Thread 8 (Thread 0x690f6200 (LWP 22760)):
#0 __waitpid (options=0, stat_loc=0x690f4f98, pid=24403) at ../sysdeps/unix/sys v/linux/waitpid.c:30
#1 __waitpid (pid=24403, stat_loc=0x690f4f98, options=0) at ../sysdeps/unix/sys v/linux/waitpid.c:25
#2 0x0029121c in dumpstack_gdb(bool) ()
#3 0x002917e8 in signal_handler(int, siginfo_t*, void*) ()
#4
#5 raise (sig=11) at ../sysdeps/unix/sysv/linux/raise.c:50
#6
#7 0x75d3d724 in ?? () from /usr/lib/arm-linux-gnueabihf/libpython3.7m.so
#8 0x75d3d714 in ?? () from /usr/lib/arm-linux-gnueabihf/libpython3.7m.so
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Authentication does not work anymore

Hello,

Since yesterday, authentication to melcloud does not work anymore.
On the melcloud website it is now required to agrea conditions on each signing request.
Plugin give back a 401 code.

Many thanks if you are able to fix this problem.

Best regards

Error in the code

Hello,

I just saw that there is an error on the following line :

domoticz_levels["fan"] = {"0": 1, "10": 2, "20": 3, "30": 4, "40": 255, "50": 0, "60": 1}

For speed 5, replace "40": 255 => "40": 5

Good day to you and thank you for your great plugin

Loosnay Energy Recovery Ventilation device available in the plugin

MELCloud supports more devices than just Aircondition. Would it be possible to add support for Loosnay Energy Recovery Ventilation device?

Current domoticz log shows as it only search for Aircondition devices:
Find 1 buildings
Find 0 areas in building Dom
Find 0 floors in building Dom
Found 0 devices in building Dom Devices of the Type 0 (Aircondition) CurrentEnergyConsumed 0 kWh
Found 0 devices in building Dom Areas of the Type 0 (Aircondition) CurrentEnergyConsumed 0 kWh
Found 0 devices in building Dom Floors of the Type 0 (Aircondition) CurrentEnergyConsumed 0 kWh

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.