From 35370cbcaed72a5cbd67b709562da1f52dbac664 Mon Sep 17 00:00:00 2001 From: Brian Orpin Date: Fri, 8 Apr 2022 14:46:42 +0100 Subject: [PATCH] Add Warm Mist attributes (#13) * Add Warm Mist attributes These could possibly be added as sensor entities in their own right. I cannot test them but there was a comment by someone on the original PR about this. Ideally, I suggest, these should be number and binary entities as well but I was going to check the attributes appeared first. * fix style Co-authored-by: Vincent Le Bourlot --- custom_components/vesync/humidifier.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/custom_components/vesync/humidifier.py b/custom_components/vesync/humidifier.py index ba063e6..ab55a49 100644 --- a/custom_components/vesync/humidifier.py +++ b/custom_components/vesync/humidifier.py @@ -134,6 +134,14 @@ class VeSyncHumidifierHA(VeSyncDevice, HumidifierEntity): if "mist_level" in self.smarthumidifier.details: attr["mist_level"] = self.smarthumidifier.details["mist_level"] + if "warm_mist_level" in self.smarthumidifier.details: + attr["warm_mist_level"] = self.smarthumidifier.details["warm_mist_level"] + + if "warm_mist_enabled" in self.smarthumidifier.details: + attr["warm_mist_enabled"] = self.smarthumidifier.details[ + "warm_mist_enabled" + ] + return attr def set_humidity(self, humidity):