ilcato / homebridge-melcloud

Homebridge plugin for Mitsubishi Melcloud automation
GNU General Public License v2.0
24 stars 21 forks source link

Some protocol questions #8

Open gdude2002 opened 6 years ago

gdude2002 commented 6 years ago

I realize this isn't really a repository for protocol documentation, but I had a couple questions for you, if you wouldn't mind helping me out.

I'm currently working on a Python library for interacting with MELCloud, and I've been using your project as a guide. Still in the very early stages, things are working well so far, but I've been reading over your code and noticed a few hangups.

At present, I'm working on implementing an API for settings changes. Looking at your code for the heating/cooling state, I note that you have some values for operation mode and effective flags. However, my system is an air-to-water building heat unit and hot water tank, and I notice that my combination of effective flags and operation mode don't appear in your file. I'm unsure how to proceed with my implementation as a result.

My system is currently "Heating" according to the MELCloud Android app, and my hot water is "Idle". Below I've included my "device info" JSON for this device - albeit, with the keys reformatted to a more python-friendly spec.

I note that you appear to only have one device - I, too, have only one device, but mine isn't an air conditioning unit. Perhaps pooling our knowledge could be helpful to both projects?

{
    "device_id": 95656,
    "device_type": 1,
    "eco_hot_water": false,
    "effective_flags": 0,
    "error_code": 8000,
    "error_message": null,
    "forced_hot_water_mode": false,
    "has_pending_command": false,
    "hc_control_type": 1,
    "holiday_mode": false,
    "idle_zone1": false,
    "idle_zone2": false,
    "last_communication": "2018-01-06T13:51:28.817",
    "local_ip_address": null,
    "next_communication": "2018-01-06T13:52:28.817",
    "offline": false,
    "operation_mode": 2,
    "operation_mode_zone1": 0,
    "operation_mode_zone2": 0,
    "outdoor_temperature": 8,
    "power": true,
    "prohibit_hot_water": false,
    "prohibit_zone1": false,
    "prohibit_zone2": false,
    "room_temperature_zone1": 20.5,
    "room_temperature_zone2": 20.5,
    "scene": null,
    "scene_owner": null,
    "set_cool_flow_temperature_zone1": 20,
    "set_cool_flow_temperature_zone2": 20,
    "set_heat_flow_temperature_zone1": 25,
    "set_heat_flow_temperature_zone2": 25,
    "set_tank_water_temperature": 53,
    "set_temperature_zone1": 20,
    "set_temperature_zone2": 20,
    "tank_water_temperature": 52.5,
    "temperature_increment_override": 0,
    "unit_status": 0,
    "weather_observations": [
        {
            "condition": 119,
            "condition_name": "Cloudy",
            "date": "2018-01-06T15:00:00",
            "day": 6,
            "humidity": 81,
            "icon": "wsymbol_0003_white_cloud",
            "id": 83808308,
            "sunrise": "2018-01-06T08:45:00",
            "sunset": "2018-01-06T16:43:00",
            "temperature": 5,
            "weather_type": 0
        }
    ],
    "zone1_name": null,
    "zone2_name": null
}
rinoronie commented 6 years ago

News? I have a air to water guilding heat with hot water tank