tonesto7 / homebridge-hubitat-tonesto7

Hubitat Homebridge Plugin
109 stars 34 forks source link

add info about dehumidifier #191

Closed hardlock75 closed 8 months ago

hardlock75 commented 1 year ago

first thank for this

is it possible, to add the Water Level info on Homekit? there is device Data { "name": "D\u00e9shumidificateur", "basename": "Midea Dehumidifier", "deviceid": "7", "status": "ACTIVE", "manufacturer": "Unknown", "model": "Midea Dehumidifier", "deviceNetworkId": "e8de8f7a-957f-41a7-a757-d15ec60795de", "lastActivity": "2023-06-29T15:16:34+0000", "capabilities": [ "Initialize", "Refresh", "RelativeHumidityMeasurement", "Switch" ], "capabilities_processed": { "Refresh": 1, "RelativeHumidityMeasurement": 1, "Switch": 1 }, "capabilities_filtered": [

],
"commands": [
    "initialize",
    "off",
    "on",
    "refresh",
    "setFanSpeed",
    "setMode",
    "setTargetHumidity"
],
"commands_processed": {
    "initialize": 1,
    "off": 1,
    "on": 1,
    "setFanSpeed": 1,
    "setMode": 1,
    "setTargetHumidity": 1
},
"customflags": {

},
"attributes": {
    "FanSpeed": "High",
    "Mode": "Set",
    "TargetHumidity": 45,
    "humidity": 49,
    "switch": "on"
},
"attributes_processed": {
    "FanSpeed": "High",
    "Mode": "Set",
    "TargetHumidity": 45,
    "humidity": 49,
    "switch": "on"
},
"eventHistory": [
    "2023-06-29 11:16:34.687 | [WaterLevel] | (75)",
    "2023-06-29 11:15:34.688 | [WaterLevel] | (75)",
    "2023-06-29 11:14:34.682 | [WaterLevel] | (75)",
    "2023-06-29 11:13:34.684 | [WaterLevel] | (75)",
    "2023-06-29 11:12:34.693 | [humidity] | (49 %)",
    "2023-06-29 11:12:34.691 | [WaterLevel] | (75)",
    "2023-06-29 11:11:34.703 | [WaterLevel] | (75)",
    "2023-06-29 11:10:34.695 | [WaterLevel] | (75)",
    "2023-06-29 11:09:34.686 | [WaterLevel] | (75)",
    "2023-06-29 11:08:34.858 | [WaterLevel] | (75)",
    "2023-06-29 11:07:34.902 | [humidity] | (50 %)",
    "2023-06-29 11:07:34.9 | [WaterLevel] | (75)",
    "2023-06-29 11:06:34.701 | [WaterLevel] | (75)",
    "2023-06-29 11:05:54.593 | [WaterLevel] | (75)",
    "2023-06-29 11:05:34.69 | [WaterLevel] | (75)",

the screenshot come to other plugin, but not working well for me.

Capture d’écran, le 2023-06-29 à 11 24 34

now i had my dehumidifer on hubitat, and with Homebridge hubitat-Tonesto7 I pushit on homekit.

thank you very much

tonesto7 commented 1 year ago

I spent some time trying to add support for the water level. HomeKit has characteristics for Humidifiers and Dehumidifiers which include the water level. I can't just add that characteristic without adding the Service.HumidifierDehumidifier. The issue is that I don't see any attributes in the Hubitat device that state when the device is actively running or is idle There are requirements to adding a service and the driver currently is missing an attribute to use to complete the last service requirement.

hardlock75 commented 1 year ago

I found drivers in the hubitat community. With the help of old link I was able to add the waterLevel attribute. In Hubitat is working great. when is empty 0% and full 100%. it works as follows 0%-25%-50%-75%-100%

image

{ "name": "D\u00e9shumidificateur", "basename": "Midea Dehumidifier", "deviceid": "7", "status": "ACTIVE", "manufacturer": "Unknown", "model": "Midea Dehumidifier", "deviceNetworkId": "e8de8f7a-957f-41a7-a757-d15ec60795de", "lastActivity": "2023-09-21T05:33:34+0000", "capabilities": [ "Initialize", "Refresh", "RelativeHumidityMeasurement", "Switch" ], "capabilities_processed": { "RelativeHumidityMeasurement": 1, "Switch": 1 }, "capabilities_filtered": [ "Refresh", "Initialize" ], "commands": [ "initialize", "off", "on", "refresh", "setFanSpeed", "setMode", "setTargetHumidity" ], "commands_processed": { "off": 1, "on": 1, "setFanSpeed": 1, "setTargetHumidity": 1 }, "commands_filtered": [ "initialize", "refresh", "setMode" ], "customflags": {

},
"attributes": {
    "FanSpeed": "High",
    "FilterIndicator": 16,
    "Mode": "Set",
    "TargetHumidity": 40,
    "WaterLevel": 0,
    "humidity": 40,
    "switch": "on"
},
"attributes_processed": {
    "humidity": 40,
    "switch": "on"
},
"attributes_filtered": [
    "FanSpeed",
    "TargetHumidity",
    "FilterIndicator",
    "Mode"
],
"eventHistory": [
    "2023-09-21 01:33:34.673 | [humidity] | (40 %)",
    "2023-09-21 01:32:34.67 | [humidity] | (41 %)",
    "2023-09-21 01:31:34.673 | [humidity] | (40 %)",
    "2023-09-21 00:48:34.67 | [humidity] | (41 %)",
    "2023-09-21 00:22:34.546 | [humidity] | (42 %)",
    "2023-09-21 00:11:34.679 | [humidity] | (43 %)",
    "2023-09-20 23:59:34.667 | [humidity] | (44 %)",
    "2023-09-20 23:52:34.671 | [humidity] | (45 %)",
    "2023-09-20 23:47:34.666 | [humidity] | (46 %)",
    "2023-09-20 23:40:34.678 | [humidity] | (47 %)",
    "2023-09-20 23:39:34.671 | [humidity] | (48 %)",
tonesto7 commented 1 year ago

Please read my reply again

hardlock75 commented 1 year ago

ok i read it, i understand de problem.. sorry my english is not my first language

github-actions[bot] commented 8 months ago

This issue has been marked stale automatically after no activity for the last 180 days.