diff --git a/custom_components/robovac/vacuum.py b/custom_components/robovac/vacuum.py index 9ecc2e1..2816976 100644 --- a/custom_components/robovac/vacuum.py +++ b/custom_components/robovac/vacuum.py @@ -399,6 +399,7 @@ class RoboVacEntity(StateVacuumEntity): await self.vacuum.async_set({code: False}) else: await self.vacuum.async_set({code: True}) + asyncio.create_task(self.async_forced_update()) async def async_return_to_base(self, **kwargs): """Set the vacuum cleaner to return to the dock.""" @@ -406,20 +407,23 @@ class RoboVacEntity(StateVacuumEntity): await self.vacuum.async_set( {self._tuya_command_codes[RobovacCommand.RETURN_HOME]: True} ) + asyncio.create_task(self.async_forced_update()) async def async_start(self, **kwargs): - self._attr_mode = "auto" await self.vacuum.async_set( - {self._tuya_command_codes[RobovacCommand.MODE]: self.mode} + {self._tuya_command_codes[RobovacCommand.START_PAUSE]: True} ) + asyncio.create_task(self.async_forced_update()) async def async_pause(self, **kwargs): await self.vacuum.async_set( - {self._tuya_command_codes[RobovacCommand.PAUSE]: False} + {self._tuya_command_codes[RobovacCommand.START_PAUSE]: False} ) + asyncio.create_task(self.async_forced_update()) async def async_stop(self, **kwargs): await self.async_return_to_base() + asyncio.create_task(self.async_forced_update()) async def async_clean_spot(self, **kwargs): """Perform a spot clean-up.""" @@ -427,6 +431,7 @@ class RoboVacEntity(StateVacuumEntity): await self.vacuum.async_set( {self._tuya_command_codes[RobovacCommand.MODE]: "Spot"} ) + asyncio.create_task(self.async_forced_update()) async def async_set_fan_speed(self, fan_speed, **kwargs): """Set fan speed.""" @@ -438,6 +443,7 @@ class RoboVacEntity(StateVacuumEntity): ] } ) + asyncio.create_task(self.async_forced_update()) async def async_send_command( self, command: str, params: dict | list | None = None, **kwargs @@ -480,6 +486,7 @@ class RoboVacEntity(StateVacuumEntity): base64_str = base64.b64encode(json_str.encode("utf8")).decode("utf8") _LOGGER.info("roomClean call %s", json_str) await self.vacuum.async_set({"124": base64_str}) + asyncio.create_task(self.async_forced_update()) async def async_will_remove_from_hass(self): await self.vacuum.async_disable() diff --git a/custom_components/robovac/vacuums/T1250.py b/custom_components/robovac/vacuums/T1250.py index f864041..794a5b7 100644 --- a/custom_components/robovac/vacuums/T1250.py +++ b/custom_components/robovac/vacuums/T1250.py @@ -17,7 +17,7 @@ class T1250: ) robovac_features = RoboVacEntityFeature.CLEANING_TIME | RoboVacEntityFeature.CLEANING_AREA | RoboVacEntityFeature.DO_NOT_DISTURB | RoboVacEntityFeature.AUTO_RETURN | RoboVacEntityFeature.CONSUMABLES commands = { - RobovacCommand.PAUSE: 2, + RobovacCommand.START_PAUSE: 2, RobovacCommand.DIRECTION: { "code": 3, "values": ["forward", "back", "left", "right"], diff --git a/custom_components/robovac/vacuums/T2103.py b/custom_components/robovac/vacuums/T2103.py index 5d4afb3..6940438 100644 --- a/custom_components/robovac/vacuums/T2103.py +++ b/custom_components/robovac/vacuums/T2103.py @@ -17,7 +17,7 @@ class T2103: ) robovac_features = RoboVacEntityFeature.EDGE | RoboVacEntityFeature.SMALL_ROOM commands = { - RobovacCommand.PAUSE: 2, + RobovacCommand.START_PAUSE: 2, RobovacCommand.DIRECTION: { "code": 3, "values": ["forward", "back", "left", "right"], @@ -30,7 +30,7 @@ class T2103: RobovacCommand.RETURN_HOME: 101, RobovacCommand.FAN_SPEED: { "code": 102, - "values": ["No_Suction","Standard","Boost_IQ","Max"], + "values": ["No_suction","Standard","Boost_IQ","Max"], }, RobovacCommand.LOCATE: 103, RobovacCommand.BATTERY: 104, diff --git a/custom_components/robovac/vacuums/T2117.py b/custom_components/robovac/vacuums/T2117.py index 8e73b28..aae4db6 100644 --- a/custom_components/robovac/vacuums/T2117.py +++ b/custom_components/robovac/vacuums/T2117.py @@ -17,7 +17,7 @@ class T2117: ) robovac_features = RoboVacEntityFeature.EDGE | RoboVacEntityFeature.SMALL_ROOM commands = { - RobovacCommand.PAUSE: 2, + RobovacCommand.START_PAUSE: 2, RobovacCommand.DIRECTION: { "code": 3, "values": ["forward", "back", "left", "right"], @@ -30,7 +30,7 @@ class T2117: RobovacCommand.RETURN_HOME: 101, RobovacCommand.FAN_SPEED: { "code": 102, - "values": ["No_Suction","Standard","Boost_IQ","Max"], + "values": ["No_suction","Standard","Boost_IQ","Max"], }, RobovacCommand.LOCATE: 103, RobovacCommand.BATTERY: 104, diff --git a/custom_components/robovac/vacuums/T2118.py b/custom_components/robovac/vacuums/T2118.py index a7e7955..cc927ce 100644 --- a/custom_components/robovac/vacuums/T2118.py +++ b/custom_components/robovac/vacuums/T2118.py @@ -17,7 +17,7 @@ class T2118: ) robovac_features = RoboVacEntityFeature.EDGE | RoboVacEntityFeature.SMALL_ROOM commands = { - RobovacCommand.PAUSE: 2, + RobovacCommand.START_PAUSE: 2, RobovacCommand.DIRECTION: { "code": 3, "values": ["forward", "back", "left", "right"], @@ -30,7 +30,7 @@ class T2118: RobovacCommand.RETURN_HOME: 101, RobovacCommand.FAN_SPEED: { "code": 102, - "values": ["No_Suction","Standard","Boost_IQ","Max"], + "values": ["No_suction","Standard","Boost_IQ","Max"], }, RobovacCommand.LOCATE: 103, RobovacCommand.BATTERY: 104, diff --git a/custom_components/robovac/vacuums/T2119.py b/custom_components/robovac/vacuums/T2119.py index 7c5f738..420a5f5 100644 --- a/custom_components/robovac/vacuums/T2119.py +++ b/custom_components/robovac/vacuums/T2119.py @@ -17,7 +17,7 @@ class T2119: ) robovac_features = RoboVacEntityFeature.EDGE | RoboVacEntityFeature.SMALL_ROOM commands = { - RobovacCommand.PAUSE: 2, + RobovacCommand.START_PAUSE: 2, RobovacCommand.DIRECTION: { "code": 3, "values": ["forward", "back", "left", "right"], @@ -30,7 +30,7 @@ class T2119: RobovacCommand.RETURN_HOME: 101, RobovacCommand.FAN_SPEED: { "code": 102, - "values": ["No_Suction","Standard","Boost_IQ","Max"], + "values": ["No_suction","Standard","Boost_IQ","Max"], }, RobovacCommand.LOCATE: 103, RobovacCommand.BATTERY: 104, diff --git a/custom_components/robovac/vacuums/T2120.py b/custom_components/robovac/vacuums/T2120.py index cdf0995..ab28eb8 100644 --- a/custom_components/robovac/vacuums/T2120.py +++ b/custom_components/robovac/vacuums/T2120.py @@ -17,7 +17,7 @@ class T2120: ) robovac_features = RoboVacEntityFeature.EDGE | RoboVacEntityFeature.SMALL_ROOM commands = { - RobovacCommand.PAUSE: 2, + RobovacCommand.START_PAUSE: 2, RobovacCommand.DIRECTION: { "code": 3, "values": ["forward", "back", "left", "right"], @@ -30,7 +30,7 @@ class T2120: RobovacCommand.RETURN_HOME: 101, RobovacCommand.FAN_SPEED: { "code": 102, - "values": ["No_Suction","Standard","Boost_IQ","Max"], + "values": ["No_suction","Standard","Boost_IQ","Max"], }, RobovacCommand.LOCATE: 103, RobovacCommand.BATTERY: 104, diff --git a/custom_components/robovac/vacuums/T2123.py b/custom_components/robovac/vacuums/T2123.py index f0c9683..d1817d7 100644 --- a/custom_components/robovac/vacuums/T2123.py +++ b/custom_components/robovac/vacuums/T2123.py @@ -17,7 +17,7 @@ class T2123: ) robovac_features = RoboVacEntityFeature.EDGE | RoboVacEntityFeature.SMALL_ROOM commands = { - RobovacCommand.PAUSE: 2, + RobovacCommand.START_PAUSE: 2, RobovacCommand.DIRECTION: { "code": 3, "values": ["forward", "back", "left", "right"], @@ -30,7 +30,7 @@ class T2123: RobovacCommand.RETURN_HOME: 101, RobovacCommand.FAN_SPEED: { "code": 102, - "values": ["No_Suction","Standard","Boost_IQ","Max"], + "values": ["No_suction","Standard","Boost_IQ","Max"], }, RobovacCommand.LOCATE: 103, RobovacCommand.BATTERY: 104, diff --git a/custom_components/robovac/vacuums/T2128.py b/custom_components/robovac/vacuums/T2128.py index e97e406..8fbdef1 100644 --- a/custom_components/robovac/vacuums/T2128.py +++ b/custom_components/robovac/vacuums/T2128.py @@ -17,7 +17,7 @@ class T2128: ) robovac_features = RoboVacEntityFeature.EDGE | RoboVacEntityFeature.SMALL_ROOM commands = { - RobovacCommand.PAUSE: 2, + RobovacCommand.START_PAUSE: 2, RobovacCommand.DIRECTION: { "code": 3, "values": ["forward", "back", "left", "right"], @@ -30,7 +30,7 @@ class T2128: RobovacCommand.RETURN_HOME: 101, RobovacCommand.FAN_SPEED: { "code": 102, - "values": ["No_Suction","Standard","Boost_IQ","Max"], + "values": ["No_suction","Standard","Boost_IQ","Max"], }, RobovacCommand.LOCATE: 103, RobovacCommand.BATTERY: 104, diff --git a/custom_components/robovac/vacuums/T2130.py b/custom_components/robovac/vacuums/T2130.py index a482f94..1446665 100644 --- a/custom_components/robovac/vacuums/T2130.py +++ b/custom_components/robovac/vacuums/T2130.py @@ -17,7 +17,7 @@ class T2130: ) robovac_features = RoboVacEntityFeature.EDGE | RoboVacEntityFeature.SMALL_ROOM commands = { - RobovacCommand.PAUSE: 2, + RobovacCommand.START_PAUSE: 2, RobovacCommand.DIRECTION: { "code": 3, "values": ["forward", "back", "left", "right"], @@ -30,7 +30,7 @@ class T2130: RobovacCommand.RETURN_HOME: 101, RobovacCommand.FAN_SPEED: { "code": 102, - "values": ["No_Suction","Standard","Boost_IQ","Max"], + "values": ["No_suction","Standard","Boost_IQ","Max"], }, RobovacCommand.LOCATE: 103, RobovacCommand.BATTERY: 104, diff --git a/custom_components/robovac/vacuums/T2132.py b/custom_components/robovac/vacuums/T2132.py index 56ba2d2..63101d6 100644 --- a/custom_components/robovac/vacuums/T2132.py +++ b/custom_components/robovac/vacuums/T2132.py @@ -17,7 +17,7 @@ class T2132: ) robovac_features = RoboVacEntityFeature.EDGE | RoboVacEntityFeature.SMALL_ROOM commands = { - RobovacCommand.PAUSE: 2, + RobovacCommand.START_PAUSE: 2, RobovacCommand.DIRECTION: { "code": 3, "values": ["forward", "back", "left", "right"], @@ -30,7 +30,7 @@ class T2132: RobovacCommand.RETURN_HOME: 101, RobovacCommand.FAN_SPEED: { "code": 102, - "values": ["No_Suction","Standard","Boost_IQ","Max"], + "values": ["No_suction","Standard","Boost_IQ","Max"], }, RobovacCommand.LOCATE: 103, RobovacCommand.BATTERY: 104, diff --git a/custom_components/robovac/vacuums/T2150.py b/custom_components/robovac/vacuums/T2150.py index 1ac4f5e..480a758 100644 --- a/custom_components/robovac/vacuums/T2150.py +++ b/custom_components/robovac/vacuums/T2150.py @@ -17,7 +17,7 @@ class T2150: ) robovac_features = RoboVacEntityFeature.CLEANING_TIME | RoboVacEntityFeature.CLEANING_AREA | RoboVacEntityFeature.DO_NOT_DISTURB | RoboVacEntityFeature.AUTO_RETURN commands = { - RobovacCommand.PAUSE: 2, + RobovacCommand.START_PAUSE: 2, RobovacCommand.DIRECTION: { "code": 3, "values": ["forward", "back", "left", "right"], diff --git a/custom_components/robovac/vacuums/T2181.py b/custom_components/robovac/vacuums/T2181.py index 5b322cf..04ce1e8 100644 --- a/custom_components/robovac/vacuums/T2181.py +++ b/custom_components/robovac/vacuums/T2181.py @@ -18,7 +18,7 @@ class T2181: ) robovac_features = RoboVacEntityFeature.CLEANING_TIME | RoboVacEntityFeature.CLEANING_AREA | RoboVacEntityFeature.DO_NOT_DISTURB | RoboVacEntityFeature.AUTO_RETURN | RoboVacEntityFeature.ROOM | RoboVacEntityFeature.ZONE | RoboVacEntityFeature.BOOST_IQ | RoboVacEntityFeature.MAP | RoboVacEntityFeature.CONSUMABLES commands = { - RobovacCommand.PAUSE: 2, + RobovacCommand.START_PAUSE: 2, RobovacCommand.DIRECTION: { "code": 3, "values": ["forward", "back", "left", "right"], diff --git a/custom_components/robovac/vacuums/T2182.py b/custom_components/robovac/vacuums/T2182.py index 3cde0ad..414ee46 100644 --- a/custom_components/robovac/vacuums/T2182.py +++ b/custom_components/robovac/vacuums/T2182.py @@ -18,7 +18,7 @@ class T2182: ) robovac_features = RoboVacEntityFeature.CLEANING_TIME | RoboVacEntityFeature.CLEANING_AREA | RoboVacEntityFeature.DO_NOT_DISTURB | RoboVacEntityFeature.AUTO_RETURN | RoboVacEntityFeature.ROOM | RoboVacEntityFeature.ZONE | RoboVacEntityFeature.BOOST_IQ | RoboVacEntityFeature.MAP | RoboVacEntityFeature.CONSUMABLES commands = { - RobovacCommand.PAUSE: 2, + RobovacCommand.START_PAUSE: 2, RobovacCommand.DIRECTION: { "code": 3, "values": ["forward", "back", "left", "right"], diff --git a/custom_components/robovac/vacuums/T2190.py b/custom_components/robovac/vacuums/T2190.py index 8ab2496..f906d2b 100644 --- a/custom_components/robovac/vacuums/T2190.py +++ b/custom_components/robovac/vacuums/T2190.py @@ -18,7 +18,7 @@ class T2190: ) robovac_features = RoboVacEntityFeature.CLEANING_TIME | RoboVacEntityFeature.CLEANING_AREA | RoboVacEntityFeature.DO_NOT_DISTURB | RoboVacEntityFeature.AUTO_RETURN | RoboVacEntityFeature.ROOM | RoboVacEntityFeature.ZONE | RoboVacEntityFeature.BOOST_IQ | RoboVacEntityFeature.MAP | RoboVacEntityFeature.CONSUMABLES commands = { - RobovacCommand.PAUSE: 2, + RobovacCommand.START_PAUSE: 2, RobovacCommand.DIRECTION: { "code": 3, "values": ["forward", "back", "left", "right"], diff --git a/custom_components/robovac/vacuums/T2192.py b/custom_components/robovac/vacuums/T2192.py index 19ae1cf..e56aee1 100644 --- a/custom_components/robovac/vacuums/T2192.py +++ b/custom_components/robovac/vacuums/T2192.py @@ -18,7 +18,7 @@ class T2192: ) robovac_features = RoboVacEntityFeature.CLEANING_TIME | RoboVacEntityFeature.CLEANING_AREA | RoboVacEntityFeature.DO_NOT_DISTURB | RoboVacEntityFeature.AUTO_RETURN | RoboVacEntityFeature.ROOM | RoboVacEntityFeature.ZONE | RoboVacEntityFeature.BOOST_IQ | RoboVacEntityFeature.MAP commands = { - RobovacCommand.PAUSE: 2, + RobovacCommand.START_PAUSE: 2, RobovacCommand.DIRECTION: { "code": 3, "values": ["forward", "back", "left", "right"], diff --git a/custom_components/robovac/vacuums/T2193.py b/custom_components/robovac/vacuums/T2193.py index baaba5b..3996f3b 100644 --- a/custom_components/robovac/vacuums/T2193.py +++ b/custom_components/robovac/vacuums/T2193.py @@ -18,7 +18,7 @@ class T2193: ) robovac_features = RoboVacEntityFeature.CLEANING_TIME | RoboVacEntityFeature.CLEANING_AREA | RoboVacEntityFeature.DO_NOT_DISTURB | RoboVacEntityFeature.AUTO_RETURN | RoboVacEntityFeature.ROOM | RoboVacEntityFeature.ZONE | RoboVacEntityFeature.BOOST_IQ | RoboVacEntityFeature.MAP | RoboVacEntityFeature.CONSUMABLES commands = { - RobovacCommand.PAUSE: 2, + RobovacCommand.START_PAUSE: 2, RobovacCommand.DIRECTION: { "code": 3, "values": ["forward", "back", "left", "right"], diff --git a/custom_components/robovac/vacuums/T2194.py b/custom_components/robovac/vacuums/T2194.py index cb0757b..362bfa4 100644 --- a/custom_components/robovac/vacuums/T2194.py +++ b/custom_components/robovac/vacuums/T2194.py @@ -18,7 +18,7 @@ class T2194: ) robovac_features = RoboVacEntityFeature.CLEANING_TIME | RoboVacEntityFeature.CLEANING_AREA | RoboVacEntityFeature.DO_NOT_DISTURB | RoboVacEntityFeature.AUTO_RETURN | RoboVacEntityFeature.ROOM | RoboVacEntityFeature.ZONE | RoboVacEntityFeature.BOOST_IQ | RoboVacEntityFeature.MAP | RoboVacEntityFeature.CONSUMABLES commands = { - RobovacCommand.PAUSE: 2, + RobovacCommand.START_PAUSE: 2, RobovacCommand.DIRECTION: { "code": 3, "values": ["forward", "back", "left", "right"], diff --git a/custom_components/robovac/vacuums/T2250.py b/custom_components/robovac/vacuums/T2250.py index 82adc0c..e551d91 100644 --- a/custom_components/robovac/vacuums/T2250.py +++ b/custom_components/robovac/vacuums/T2250.py @@ -17,7 +17,7 @@ class T2250: ) robovac_features = RoboVacEntityFeature.CLEANING_TIME | RoboVacEntityFeature.CLEANING_AREA | RoboVacEntityFeature.DO_NOT_DISTURB | RoboVacEntityFeature.AUTO_RETURN commands = { - RobovacCommand.PAUSE: 2, + RobovacCommand.START_PAUSE: 2, RobovacCommand.DIRECTION: { "code": 3, "values": ["forward", "back", "left", "right"], diff --git a/custom_components/robovac/vacuums/T2251.py b/custom_components/robovac/vacuums/T2251.py index e98c74d..058cfd4 100644 --- a/custom_components/robovac/vacuums/T2251.py +++ b/custom_components/robovac/vacuums/T2251.py @@ -17,7 +17,7 @@ class T2251: ) robovac_features = RoboVacEntityFeature.CLEANING_TIME | RoboVacEntityFeature.CLEANING_AREA | RoboVacEntityFeature.DO_NOT_DISTURB | RoboVacEntityFeature.AUTO_RETURN commands = { - RobovacCommand.PAUSE: 2, + RobovacCommand.START_PAUSE: 2, RobovacCommand.DIRECTION: { "code": 3, "values": ["forward", "back", "left", "right"], diff --git a/custom_components/robovac/vacuums/T2252.py b/custom_components/robovac/vacuums/T2252.py index 6b6abb6..86fea2a 100644 --- a/custom_components/robovac/vacuums/T2252.py +++ b/custom_components/robovac/vacuums/T2252.py @@ -17,7 +17,7 @@ class T2252: ) robovac_features = RoboVacEntityFeature.CLEANING_TIME | RoboVacEntityFeature.CLEANING_AREA | RoboVacEntityFeature.DO_NOT_DISTURB | RoboVacEntityFeature.AUTO_RETURN commands = { - RobovacCommand.PAUSE: 2, + RobovacCommand.START_PAUSE: 2, RobovacCommand.DIRECTION: { "code": 3, "values": ["forward", "back", "left", "right"], diff --git a/custom_components/robovac/vacuums/T2253.py b/custom_components/robovac/vacuums/T2253.py index 8c54c4a..7bc100d 100644 --- a/custom_components/robovac/vacuums/T2253.py +++ b/custom_components/robovac/vacuums/T2253.py @@ -18,7 +18,7 @@ class T2253: ) robovac_features = RoboVacEntityFeature.CLEANING_TIME | RoboVacEntityFeature.CLEANING_AREA | RoboVacEntityFeature.DO_NOT_DISTURB | RoboVacEntityFeature.AUTO_RETURN | RoboVacEntityFeature.MAP | RoboVacEntityFeature.CONSUMABLES commands = { - RobovacCommand.PAUSE: 2, + RobovacCommand.START_PAUSE: 2, RobovacCommand.DIRECTION: { "code": 3, "values": ["forward", "back", "left", "right"], diff --git a/custom_components/robovac/vacuums/T2254.py b/custom_components/robovac/vacuums/T2254.py index 25d380b..f0d5f51 100644 --- a/custom_components/robovac/vacuums/T2254.py +++ b/custom_components/robovac/vacuums/T2254.py @@ -17,7 +17,7 @@ class T2254: ) robovac_features = RoboVacEntityFeature.CLEANING_TIME | RoboVacEntityFeature.CLEANING_AREA | RoboVacEntityFeature.DO_NOT_DISTURB | RoboVacEntityFeature.AUTO_RETURN commands = { - RobovacCommand.PAUSE: 2, + RobovacCommand.START_PAUSE: 2, RobovacCommand.DIRECTION: { "code": 3, "values": ["forward", "back", "left", "right"], diff --git a/custom_components/robovac/vacuums/T2255.py b/custom_components/robovac/vacuums/T2255.py index 11f2a1d..b7444f8 100644 --- a/custom_components/robovac/vacuums/T2255.py +++ b/custom_components/robovac/vacuums/T2255.py @@ -17,7 +17,7 @@ class T2255: ) robovac_features = RoboVacEntityFeature.CLEANING_TIME | RoboVacEntityFeature.CLEANING_AREA | RoboVacEntityFeature.DO_NOT_DISTURB | RoboVacEntityFeature.AUTO_RETURN commands = { - RobovacCommand.PAUSE: 2, + RobovacCommand.START_PAUSE: 2, RobovacCommand.DIRECTION: { "code": 3, "values": ["forward", "back", "left", "right"], diff --git a/custom_components/robovac/vacuums/T2256.py b/custom_components/robovac/vacuums/T2256.py index a49792c..96a44d6 100644 --- a/custom_components/robovac/vacuums/T2256.py +++ b/custom_components/robovac/vacuums/T2256.py @@ -17,7 +17,7 @@ class T2256: ) robovac_features = RoboVacEntityFeature.CLEANING_TIME | RoboVacEntityFeature.CLEANING_AREA | RoboVacEntityFeature.DO_NOT_DISTURB | RoboVacEntityFeature.AUTO_RETURN | RoboVacEntityFeature.CONSUMABLES commands = { - RobovacCommand.PAUSE: 2, + RobovacCommand.START_PAUSE: 2, RobovacCommand.DIRECTION: { "code": 3, "values": ["forward", "back", "left", "right"], diff --git a/custom_components/robovac/vacuums/T2257.py b/custom_components/robovac/vacuums/T2257.py index ec9c1ca..f641a21 100644 --- a/custom_components/robovac/vacuums/T2257.py +++ b/custom_components/robovac/vacuums/T2257.py @@ -17,7 +17,7 @@ class T2257: ) robovac_features = RoboVacEntityFeature.CLEANING_TIME | RoboVacEntityFeature.CLEANING_AREA | RoboVacEntityFeature.DO_NOT_DISTURB | RoboVacEntityFeature.AUTO_RETURN commands = { - RobovacCommand.PAUSE: 2, + RobovacCommand.START_PAUSE: 2, RobovacCommand.DIRECTION: { "code": 3, "values": ["forward", "back", "left", "right"], diff --git a/custom_components/robovac/vacuums/T2258.py b/custom_components/robovac/vacuums/T2258.py index bfaf722..bb755a5 100644 --- a/custom_components/robovac/vacuums/T2258.py +++ b/custom_components/robovac/vacuums/T2258.py @@ -17,7 +17,7 @@ class T2258: ) robovac_features = RoboVacEntityFeature.CLEANING_TIME | RoboVacEntityFeature.CLEANING_AREA | RoboVacEntityFeature.DO_NOT_DISTURB | RoboVacEntityFeature.AUTO_RETURN | RoboVacEntityFeature.CONSUMABLES commands = { - RobovacCommand.PAUSE: 2, + RobovacCommand.START_PAUSE: 2, RobovacCommand.DIRECTION: { "code": 3, "values": ["forward", "back", "left", "right"], diff --git a/custom_components/robovac/vacuums/T2259.py b/custom_components/robovac/vacuums/T2259.py index 08cf881..58482ab 100644 --- a/custom_components/robovac/vacuums/T2259.py +++ b/custom_components/robovac/vacuums/T2259.py @@ -17,7 +17,7 @@ class T2259: ) robovac_features = RoboVacEntityFeature.CLEANING_TIME | RoboVacEntityFeature.CLEANING_AREA | RoboVacEntityFeature.DO_NOT_DISTURB | RoboVacEntityFeature.AUTO_RETURN commands = { - RobovacCommand.PAUSE: 2, + RobovacCommand.START_PAUSE: 2, RobovacCommand.DIRECTION: { "code": 3, "values": ["forward", "back", "left", "right"], diff --git a/custom_components/robovac/vacuums/T2261.py b/custom_components/robovac/vacuums/T2261.py index cb41e12..1a23743 100644 --- a/custom_components/robovac/vacuums/T2261.py +++ b/custom_components/robovac/vacuums/T2261.py @@ -18,7 +18,7 @@ class T2261: ) robovac_features = RoboVacEntityFeature.CLEANING_TIME | RoboVacEntityFeature.CLEANING_AREA | RoboVacEntityFeature.DO_NOT_DISTURB | RoboVacEntityFeature.AUTO_RETURN | RoboVacEntityFeature.ROOM | RoboVacEntityFeature.ZONE | RoboVacEntityFeature.BOOST_IQ | RoboVacEntityFeature.MAP | RoboVacEntityFeature.CONSUMABLES commands = { - RobovacCommand.PAUSE: 2, + RobovacCommand.START_PAUSE: 2, RobovacCommand.DIRECTION: { "code": 3, "values": ["forward", "back", "left", "right"], diff --git a/custom_components/robovac/vacuums/T2262.py b/custom_components/robovac/vacuums/T2262.py index aecc8c5..2b5f879 100644 --- a/custom_components/robovac/vacuums/T2262.py +++ b/custom_components/robovac/vacuums/T2262.py @@ -18,7 +18,7 @@ class T2262: ) robovac_features = RoboVacEntityFeature.CLEANING_TIME | RoboVacEntityFeature.CLEANING_AREA | RoboVacEntityFeature.DO_NOT_DISTURB | RoboVacEntityFeature.AUTO_RETURN | RoboVacEntityFeature.ROOM | RoboVacEntityFeature.ZONE | RoboVacEntityFeature.BOOST_IQ | RoboVacEntityFeature.MAP commands = { - RobovacCommand.PAUSE: 2, + RobovacCommand.START_PAUSE: 2, RobovacCommand.DIRECTION: { "code": 3, "values": ["forward", "back", "left", "right"], diff --git a/custom_components/robovac/vacuums/T2270.py b/custom_components/robovac/vacuums/T2270.py index e9dbf3d..9ed8a9c 100644 --- a/custom_components/robovac/vacuums/T2270.py +++ b/custom_components/robovac/vacuums/T2270.py @@ -17,7 +17,7 @@ class T2270: ) robovac_features = RoboVacEntityFeature.CLEANING_TIME | RoboVacEntityFeature.CLEANING_AREA | RoboVacEntityFeature.DO_NOT_DISTURB | RoboVacEntityFeature.AUTO_RETURN commands = { - RobovacCommand.PAUSE: 2, + RobovacCommand.START_PAUSE: 2, RobovacCommand.DIRECTION: { "code": 3, "values": ["forward", "back", "left", "right"], diff --git a/custom_components/robovac/vacuums/T2272.py b/custom_components/robovac/vacuums/T2272.py index c810bfc..09529d4 100644 --- a/custom_components/robovac/vacuums/T2272.py +++ b/custom_components/robovac/vacuums/T2272.py @@ -17,7 +17,7 @@ class T2272: ) robovac_features = RoboVacEntityFeature.CLEANING_TIME | RoboVacEntityFeature.CLEANING_AREA | RoboVacEntityFeature.DO_NOT_DISTURB | RoboVacEntityFeature.AUTO_RETURN commands = { - RobovacCommand.PAUSE: 2, + RobovacCommand.START_PAUSE: 2, RobovacCommand.DIRECTION: { "code": 3, "values": ["forward", "back", "left", "right"], diff --git a/custom_components/robovac/vacuums/T2273.py b/custom_components/robovac/vacuums/T2273.py index 05a1bd4..1261ff0 100644 --- a/custom_components/robovac/vacuums/T2273.py +++ b/custom_components/robovac/vacuums/T2273.py @@ -17,7 +17,7 @@ class T2273: ) robovac_features = RoboVacEntityFeature.CLEANING_TIME | RoboVacEntityFeature.CLEANING_AREA | RoboVacEntityFeature.DO_NOT_DISTURB | RoboVacEntityFeature.AUTO_RETURN | RoboVacEntityFeature.CONSUMABLES commands = { - RobovacCommand.PAUSE: 2, + RobovacCommand.START_PAUSE: 2, RobovacCommand.DIRECTION: { "code": 3, "values": ["forward", "back", "left", "right"], diff --git a/custom_components/robovac/vacuums/T2320.py b/custom_components/robovac/vacuums/T2320.py index 2e7670b..ef4b690 100644 --- a/custom_components/robovac/vacuums/T2320.py +++ b/custom_components/robovac/vacuums/T2320.py @@ -18,7 +18,7 @@ class T2320: ) robovac_features = RoboVacEntityFeature.CLEANING_TIME | RoboVacEntityFeature.CLEANING_AREA | RoboVacEntityFeature.DO_NOT_DISTURB | RoboVacEntityFeature.AUTO_RETURN | RoboVacEntityFeature.ROOM | RoboVacEntityFeature.ZONE | RoboVacEntityFeature.BOOST_IQ | RoboVacEntityFeature.MAP | RoboVacEntityFeature.CONSUMABLES commands = { - RobovacCommand.PAUSE: 2, + RobovacCommand.START_PAUSE: 2, RobovacCommand.DIRECTION: { "code": 3, "values": ["forward", "back", "left", "right"], diff --git a/custom_components/robovac/vacuums/__init__.py b/custom_components/robovac/vacuums/__init__.py index ea6de56..979a5cb 100644 --- a/custom_components/robovac/vacuums/__init__.py +++ b/custom_components/robovac/vacuums/__init__.py @@ -32,6 +32,7 @@ from .T2261 import T2261 from .T2262 import T2262 from .T2320 import T2320 + ROBOVAC_MODELS = { "T2103": T2103, "T2117": T2117, @@ -65,5 +66,5 @@ ROBOVAC_MODELS = { "T2194": T2194, "T2261": T2261, "T2262": T2262, - "T2320": T2320, -} + "T2320": T2320 +} \ No newline at end of file diff --git a/custom_components/robovac/vacuums/base.py b/custom_components/robovac/vacuums/base.py index 6fb012f..90f4bec 100644 --- a/custom_components/robovac/vacuums/base.py +++ b/custom_components/robovac/vacuums/base.py @@ -18,7 +18,7 @@ class RoboVacEntityFeature(IntEnum): class RobovacCommand(StrEnum): - PAUSE = "pause" + START_PAUSE = "start_pause" DIRECTION = "direction" MODE = "mode" STATUS = "status" diff --git a/generate.js b/generate.js index fa82b39..ad0ea2e 100644 --- a/generate.js +++ b/generate.js @@ -84,7 +84,7 @@ const ROBOVAC_SERIES_FEATURES = { }; const ROBOVAC_SERIES_FAN_SPEEDS = { - C: ["No_Suction", "Standard", "Boost_IQ", "Max"], + C: ["No_suction", "Standard", "Boost_IQ", "Max"], G: ["Standard", "Turbo", "Max", "Boost_IQ"], L: ["Quiet", "Standard", "Turbo", "Max"], X: ["Pure", "Standard", "Turbo", "Max"], @@ -148,7 +148,7 @@ class ${model}: ) robovac_features = ${robovac_features.join(" | ")} commands = { - RobovacCommand.PAUSE: 2, + RobovacCommand.START_PAUSE: 2, RobovacCommand.DIRECTION: { "code": 3, "values": ["forward", "back", "left", "right"],