三个实体都是显示不可用!
下面是运行日:
2025-01-10 02:48:37.590 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2025-01-10 02:48:37.593 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration gree which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2025-01-10 02:48:37.596 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration webrtc which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2025-01-10 02:48:37.599 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration candy which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2025-01-10 02:48:37.602 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration ezviz which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2025-01-10 02:48:37.605 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration deebot which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2025-01-10 02:48:37.608 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration nodered which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2025-01-10 02:48:37.611 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration ds_air which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2025-01-10 02:48:37.614 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration haier which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2025-01-10 02:48:37.617 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration midea_ac_lan which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2025-01-10 02:48:37.619 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration colorfulclouds which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2025-01-10 02:48:41.721 INFO (MainThread) [custom_components.gree.climate] Setting up Gree climate platform
2025-01-10 02:48:41.722 INFO (MainThread) [custom_components.gree.climate] Adding Gree climate device to hass
2025-01-10 02:48:41.722 INFO (MainThread) [custom_components.gree.climate] Initialize the GREE climate device
2025-01-10 02:48:41.723 INFO (MainThread) [custom_components.gree.climate] name(): 客厅空调
2025-01-10 02:48:41.723 INFO (MainThread) [custom_components.gree.climate] name(): 客厅空调
2025-01-10 02:48:41.723 INFO (MainThread) [custom_components.gree.climate] supported_features(): 425
2025-01-10 02:48:41.723 INFO (MainThread) [custom_components.gree.climate] temperature_unit(): °C
2025-01-10 02:48:41.723 INFO (MainThread) [custom_components.gree.climate] hvac_modes(): [<HVACMode.AUTO: 'auto'>, <HVACMode.COOL: 'cool'>, <HVACMode.DRY: 'dry'>, <HVACMode.FAN_ONLY: 'fan_only'>, <HVACMode.HEAT: 'heat'>, <HVACMode.OFF: 'off'>]
2025-01-10 02:48:41.724 INFO (MainThread) [custom_components.gree.climate] min_temp(): 16
2025-01-10 02:48:41.724 INFO (MainThread) [custom_components.gree.climate] max_temp(): 30
2025-01-10 02:48:41.724 INFO (MainThread) [custom_components.gree.climate] target_temperature_step(): 1.0
2025-01-10 02:48:41.724 INFO (MainThread) [custom_components.gree.climate] fan_list(): ['Auto', 'Low', 'Medium-Low', 'Medium', 'Medium-High', 'High', 'Turbo', 'Quiet']
2025-01-10 02:48:41.724 INFO (MainThread) [custom_components.gree.climate] swing_modes(): ['Default', 'Swing in full range', 'Fixed in the upmost position', 'Fixed in the middle-up position', 'Fixed in the middle position', 'Fixed in the middle-low position', 'Fixed in the lowest position', 'Swing in the downmost region', 'Swing in the middle-low region', 'Swing in the middle region', 'Swing in the middle-up region', 'Swing in the upmost region']
2025-01-10 02:48:41.725 INFO (MainThread) [custom_components.gree.climate] supported_features(): 425
2025-01-10 02:48:41.725 INFO (MainThread) [custom_components.gree.climate] Gree climate device added to hass()
2025-01-10 02:48:41.726 INFO (MainThread) [custom_components.gree.climate] update()
2025-01-10 02:48:41.727 INFO (MainThread) [custom_components.gree.climate] Retrieving HVAC encryption key
2025-01-10 02:48:41.751 INFO (MainThread) [custom_components.gree.climate] Fetching(192.168.0.7, 7000, 10, {"cid": "app","i": 1,"pack": "Jtod3XIt89Lqss6DOHEWBZp1vYcAzgfkbQU3H+DJn/zDIm9XjlNrft3x9aCGHseEwf35XMKtIPQDq97Iev6J","t":"pack","tcid":"9424b8c2545d","uid": 0, "tag" : "Sou3N51DfdQbAyf3RGcrMQ=="})
2025-01-10 02:48:51.770 INFO (MainThread) [custom_components.gree.climate] Error getting device encryption key!
2025-01-10 02:48:51.772 INFO (MainThread) [custom_components.gree.climate] supported_features(): 425
2025-01-10 02:48:51.773 INFO (MainThread) [custom_components.gree.climate] temperature_unit(): °C
2025-01-10 02:48:51.774 INFO (MainThread) [custom_components.gree.climate] hvac_modes(): [<HVACMode.AUTO: 'auto'>, <HVACMode.COOL: 'cool'>, <HVACMode.DRY: 'dry'>, <HVACMode.FAN_ONLY: 'fan_only'>, <HVACMode.HEAT: 'heat'>, <HVACMode.OFF: 'off'>]
2025-01-10 02:48:51.774 INFO (MainThread) [custom_components.gree.climate] min_temp(): 16
2025-01-10 02:48:51.774 INFO (MainThread) [custom_components.gree.climate] max_temp(): 30
2025-01-10 02:48:51.775 INFO (MainThread) [custom_components.gree.climate] target_temperature_step(): 1.0
2025-01-10 02:48:51.775 INFO (MainThread) [custom_components.gree.climate] fan_list(): ['Auto', 'Low', 'Medium-Low', 'Medium', 'Medium-High', 'High', 'Turbo', 'Quiet']
2025-01-10 02:48:51.775 INFO (MainThread) [custom_components.gree.climate] swing_modes(): ['Default', 'Swing in full range', 'Fixed in the upmost position', 'Fixed in the middle-up position', 'Fixed in the middle position', 'Fixed in the middle-low position', 'Fixed in the lowest position', 'Swing in the downmost region', 'Swing in the middle-low region', 'Swing in the middle region', 'Swing in the middle-up region', 'Swing in the upmost region']
2025-01-10 02:48:51.775 INFO (MainThread) [custom_components.gree.climate] available(): Device is offline
2025-01-10 02:48:51.776 INFO (MainThread) [custom_components.gree.climate] name(): 客厅空调
2025-01-10 02:48:51.776 INFO (MainThread) [custom_components.gree.climate] supported_features(): 425
2025-01-10 02:48:51.778 INFO (MainThread) [custom_components.gree.climate] should_poll()
2025-01-10 02:48:51.780 INFO (MainThread) [custom_components.gree.climate] Setting up Gree climate platform
2025-01-10 02:48:51.781 INFO (MainThread) [custom_components.gree.climate] Adding Gree climate device to hass
2025-01-10 02:48:51.781 INFO (MainThread) [custom_components.gree.climate] Initialize the GREE climate device
2025-01-10 02:48:51.781 INFO (MainThread) [custom_components.gree.climate] name(): 主卧空调
2025-01-10 02:48:51.782 INFO (MainThread) [custom_components.gree.climate] name(): 主卧空调
2025-01-10 02:48:51.782 INFO (MainThread) [custom_components.gree.climate] supported_features(): 425
2025-01-10 02:48:51.782 INFO (MainThread) [custom_components.gree.climate] temperature_unit(): °C
2025-01-10 02:48:51.782 INFO (MainThread) [custom_components.gree.climate] hvac_modes(): [<HVACMode.AUTO: 'auto'>, <HVACMode.COOL: 'cool'>, <HVACMode.DRY: 'dry'>, <HVACMode.FAN_ONLY: 'fan_only'>, <HVACMode.HEAT: 'heat'>, <HVACMode.OFF: 'off'>]
2025-01-10 02:48:51.782 INFO (MainThread) [custom_components.gree.climate] min_temp(): 16
2025-01-10 02:48:51.782 INFO (MainThread) [custom_components.gree.climate] max_temp(): 30
2025-01-10 02:48:51.783 INFO (MainThread) [custom_components.gree.climate] target_temperature_step(): 1.0
2025-01-10 02:48:51.783 INFO (MainThread) [custom_components.gree.climate] fan_list(): ['Auto', 'Low', 'Medium-Low', 'Medium', 'Medium-High', 'High', 'Turbo', 'Quiet']
2025-01-10 02:48:51.783 INFO (MainThread) [custom_components.gree.climate] swing_modes(): ['Default', 'Swing in full range', 'Fixed in the upmost position', 'Fixed in the middle-up position', 'Fixed in the middle position', 'Fixed in the middle-low position', 'Fixed in the lowest position', 'Swing in the downmost region', 'Swing in the middle-low region', 'Swing in the middle region', 'Swing in the middle-up region', 'Swing in the upmost region']
2025-01-10 02:48:51.783 INFO (MainThread) [custom_components.gree.climate] supported_features(): 425
2025-01-10 02:48:51.784 INFO (MainThread) [custom_components.gree.climate] Gree climate device added to hass()
2025-01-10 02:48:51.784 INFO (MainThread) [custom_components.gree.climate] update()
2025-01-10 02:48:51.784 INFO (MainThread) [custom_components.gree.climate] Retrieving HVAC encryption key
2025-01-10 02:48:51.791 INFO (MainThread) [custom_components.gree.climate] Fetching(192.168.0.5, 7000, 10, {"cid": "app","i": 1,"pack": "Jtod3XIt89Lqss6DOHEWBZp37dIAzgfkbQU3H+DJn/zDIm9XjlNrfI2k9aCGHseEwf35XMKtIPQDq97Iev6J","t":"pack","tcid":"9424b8c256e1","uid": 0, "tag" : "37SN26TCSrVzi7SbxD9SbA=="})
2025-01-10 02:49:01.803 INFO (MainThread) [custom_components.gree.climate] Error getting device encryption key!
2025-01-10 02:49:01.806 INFO (MainThread) [custom_components.gree.climate] supported_features(): 425
2025-01-10 02:49:01.806 INFO (MainThread) [custom_components.gree.climate] temperature_unit(): °C
2025-01-10 02:49:01.807 INFO (MainThread) [custom_components.gree.climate] hvac_modes(): [<HVACMode.AUTO: 'auto'>, <HVACMode.COOL: 'cool'>, <HVACMode.DRY: 'dry'>, <HVACMode.FAN_ONLY: 'fan_only'>, <HVACMode.HEAT: 'heat'>, <HVACMode.OFF: 'off'>]
2025-01-10 02:49:01.807 INFO (MainThread) [custom_components.gree.climate] min_temp(): 16
2025-01-10 02:49:01.807 INFO (MainThread) [custom_components.gree.climate] max_temp(): 30
2025-01-10 02:49:01.807 INFO (MainThread) [custom_components.gree.climate] target_temperature_step(): 1.0
2025-01-10 02:49:01.808 INFO (MainThread) [custom_components.gree.climate] fan_list(): ['Auto', 'Low', 'Medium-Low', 'Medium', 'Medium-High', 'High', 'Turbo', 'Quiet']
2025-01-10 02:49:01.808 INFO (MainThread) [custom_components.gree.climate] swing_modes(): ['Default', 'Swing in full range', 'Fixed in the upmost position', 'Fixed in the middle-up position', 'Fixed in the middle position', 'Fixed in the middle-low position', 'Fixed in the lowest position', 'Swing in the downmost region', 'Swing in the middle-low region', 'Swing in the middle region', 'Swing in the middle-up region', 'Swing in the upmost region']
2025-01-10 02:49:01.808 INFO (MainThread) [custom_components.gree.climate] available(): Device is offline
2025-01-10 02:49:01.809 INFO (MainThread) [custom_components.gree.climate] name(): 主卧空调
2025-01-10 02:49:01.809 INFO (MainThread) [custom_components.gree.climate] supported_features(): 425
2025-01-10 02:49:01.823 INFO (MainThread) [custom_components.gree.climate] Setting up Gree climate platform
2025-01-10 02:49:01.824 INFO (MainThread) [custom_components.gree.climate] Adding Gree climate device to hass
2025-01-10 02:49:01.824 INFO (MainThread) [custom_components.gree.climate] Initialize the GREE climate device
2025-01-10 02:49:01.824 INFO (MainThread) [custom_components.gree.climate] name(): 次卧空调
2025-01-10 02:49:01.825 INFO (MainThread) [custom_components.gree.climate] name(): 次卧空调
2025-01-10 02:49:01.825 INFO (MainThread) [custom_components.gree.climate] supported_features(): 425
2025-01-10 02:49:01.825 INFO (MainThread) [custom_components.gree.climate] temperature_unit(): °C
2025-01-10 02:49:01.826 INFO (MainThread) [custom_components.gree.climate] hvac_modes(): [<HVACMode.AUTO: 'auto'>, <HVACMode.COOL: 'cool'>, <HVACMode.DRY: 'dry'>, <HVACMode.FAN_ONLY: 'fan_only'>, <HVACMode.HEAT: 'heat'>, <HVACMode.OFF: 'off'>]
2025-01-10 02:49:01.826 INFO (MainThread) [custom_components.gree.climate] min_temp(): 16
2025-01-10 02:49:01.826 INFO (MainThread) [custom_components.gree.climate] max_temp(): 30
2025-01-10 02:49:01.826 INFO (MainThread) [custom_components.gree.climate] target_temperature_step(): 1.0
2025-01-10 02:49:01.826 INFO (MainThread) [custom_components.gree.climate] fan_list(): ['Auto', 'Low', 'Medium-Low', 'Medium', 'Medium-High', 'High', 'Turbo', 'Quiet']
2025-01-10 02:49:01.826 INFO (MainThread) [custom_components.gree.climate] swing_modes(): ['Default', 'Swing in full range', 'Fixed in the upmost position', 'Fixed in the middle-up position', 'Fixed in the middle position', 'Fixed in the middle-low position', 'Fixed in the lowest position', 'Swing in the downmost region', 'Swing in the middle-low region', 'Swing in the middle region', 'Swing in the middle-up region', 'Swing in the upmost region']
2025-01-10 02:49:01.827 INFO (MainThread) [custom_components.gree.climate] supported_features(): 425
2025-01-10 02:49:01.827 INFO (MainThread) [custom_components.gree.climate] Gree climate device added to hass()
2025-01-10 02:49:01.827 INFO (MainThread) [custom_components.gree.climate] update()
2025-01-10 02:49:01.827 INFO (MainThread) [custom_components.gree.climate] Retrieving HVAC encryption key
2025-01-10 02:49:01.833 INFO (MainThread) [custom_components.gree.climate] Fetching(192.168.0.6, 7000, 10, {"cid": "app","i": 1,"pack": "Jtod3XIt89Lqss6DOHEUVp4gu9sAzgfkbQU3H+DJn/zDIm9XjABvK9ut9aCGHseEwf35XMKtIPQDq97Iev6J","t":"pack","tcid":"9424b8aa1a38","uid": 0, "tag" : "Ig+O04Cjn1qxAFjUINsBrg=="})
2025-01-10 02:49:11.844 INFO (MainThread) [custom_components.gree.climate] Error getting device encryption key!
2025-01-10 02:49:11.847 INFO (MainThread) [custom_components.gree.climate] supported_features(): 425
2025-01-10 02:49:11.847 INFO (MainThread) [custom_components.gree.climate] temperature_unit(): °C
2025-01-10 02:49:11.848 INFO (MainThread) [custom_components.gree.climate] hvac_modes(): [<HVACMode.AUTO: 'auto'>, <HVACMode.COOL: 'cool'>, <HVACMode.DRY: 'dry'>, <HVACMode.FAN_ONLY: 'fan_only'>, <HVACMode.HEAT: 'heat'>, <HVACMode.OFF: 'off'>]
2025-01-10 02:49:11.848 INFO (MainThread) [custom_components.gree.climate] min_temp(): 16
2025-01-10 02:49:11.848 INFO (MainThread) [custom_components.gree.climate] max_temp(): 30
2025-01-10 02:49:11.849 INFO (MainThread) [custom_components.gree.climate] target_temperature_step(): 1.0
2025-01-10 02:49:11.849 INFO (MainThread) [custom_components.gree.climate] fan_list(): ['Auto', 'Low', 'Medium-Low', 'Medium', 'Medium-High', 'High', 'Turbo', 'Quiet']
2025-01-10 02:49:11.849 INFO (MainThread) [custom_components.gree.climate] swing_modes(): ['Default', 'Swing in full range', 'Fixed in the upmost position', 'Fixed in the middle-up position', 'Fixed in the middle position', 'Fixed in the middle-low position', 'Fixed in the lowest position', 'Swing in the downmost region', 'Swing in the middle-low region', 'Swing in the middle region', 'Swing in the middle-up region', 'Swing in the upmost region']
2025-01-10 02:49:11.850 INFO (MainThread) [custom_components.gree.climate] available(): Device is offline
2025-01-10 02:49:11.850 INFO (MainThread) [custom_components.gree.climate] name(): 次卧空调
2025-01-10 02:49:11.850 INFO (MainThread) [custom_components.gree.climate] supported_features(): 425
2025-01-10 02:49:51.781 INFO (MainThread) [custom_components.gree.climate] should_poll()
2025-01-10 02:49:51.783 INFO (SyncWorker_3) [custom_components.gree.climate] update()
2025-01-10 02:49:51.784 INFO (SyncWorker_3) [custom_components.gree.climate] Retrieving HVAC encryption key
2025-01-10 02:49:51.792 INFO (SyncWorker_3) [custom_components.gree.climate] Fetching(192.168.0.7, 7000, 10, {"cid": "app","i": 1,"pack": "Jtod3XIt89Lqss6DOHEWBZp1vYcAzgfkbQU3H+DJn/zDIm9XjlNrft3x9aCGHseEwf35XMKtIPQDq97Iev6J","t":"pack","tcid":"9424b8c2545d","uid": 0, "tag" : "Sou3N51DfdQbAyf3RGcrMQ=="})
2025-01-10 02:50:01.802 INFO (SyncWorker_3) [custom_components.gree.climate] Error getting device encryption key!
2025-01-10 02:50:01.805 INFO (MainThread) [custom_components.gree.climate] supported_features(): 425
2025-01-10 02:50:01.806 INFO (MainThread) [custom_components.gree.climate] temperature_unit(): °C
2025-01-10 02:50:01.806 INFO (MainThread) [custom_components.gree.climate] hvac_modes(): [<HVACMode.AUTO: 'auto'>, <HVACMode.COOL: 'cool'>, <HVACMode.DRY: 'dry'>, <HVACMode.FAN_ONLY: 'fan_only'>, <HVACMode.HEAT: 'heat'>, <HVACMode.OFF: 'off'>]
2025-01-10 02:50:01.807 INFO (MainThread) [custom_components.gree.climate] min_temp(): 16
2025-01-10 02:50:01.807 INFO (MainThread) [custom_components.gree.climate] max_temp(): 30
2025-01-10 02:50:01.807 INFO (MainThread) [custom_components.gree.climate] target_temperature_step(): 1.0
2025-01-10 02:50:01.807 INFO (MainThread) [custom_components.gree.climate] fan_list(): ['Auto', 'Low', 'Medium-Low', 'Medium', 'Medium-High', 'High', 'Turbo', 'Quiet']
2025-01-10 02:50:01.808 INFO (MainThread) [custom_components.gree.climate] swing_modes(): ['Default', 'Swing in full range', 'Fixed in the upmost position', 'Fixed in the middle-up position', 'Fixed in the middle position', 'Fixed in the middle-low position', 'Fixed in the lowest position', 'Swing in the downmost region', 'Swing in the middle-low region', 'Swing in the middle region', 'Swing in the middle-up region', 'Swing in the upmost region']
2025-01-10 02:50:01.808 INFO (MainThread) [custom_components.gree.climate] available(): Device is offline
2025-01-10 02:50:01.808 INFO (MainThread) [custom_components.gree.climate] name(): 客厅空调
2025-01-10 02:50:01.808 INFO (MainThread) [custom_components.gree.climate] supported_features(): 425
2025-01-10 02:50:01.809 INFO (MainThread) [custom_components.gree.climate] should_poll()
2025-01-10 02:50:01.810 INFO (SyncWorker_2) [custom_components.gree.climate] update()
2025-01-10 02:50:01.810 INFO (SyncWorker_2) [custom_components.gree.climate] Retrieving HVAC encryption key
2025-01-10 02:50:01.817 INFO (SyncWorker_2) [custom_components.gree.climate] Fetching(192.168.0.5, 7000, 10, {"cid": "app","i": 1,"pack": "Jtod3XIt89Lqss6DOHEWBZp37dIAzgfkbQU3H+DJn/zDIm9XjlNrfI2k9aCGHseEwf35XMKtIPQDq97Iev6J","t":"pack","tcid":"9424b8c256e1","uid": 0, "tag" : "37SN26TCSrVzi7SbxD9SbA=="})
2025-01-10 02:50:11.829 INFO (SyncWorker_2) [custom_components.gree.climate] Error getting device encryption key!
2025-01-10 02:50:11.833 INFO (MainThread) [custom_components.gree.climate] supported_features(): 425
2025-01-10 02:50:11.833 INFO (MainThread) [custom_components.gree.climate] temperature_unit(): °C
2025-01-10 02:50:11.834 INFO (MainThread) [custom_components.gree.climate] hvac_modes(): [<HVACMode.AUTO: 'auto'>, <HVACMode.COOL: 'cool'>, <HVACMode.DRY: 'dry'>, <HVACMode.FAN_ONLY: 'fan_only'>, <HVACMode.HEAT: 'heat'>, <HVACMode.OFF: 'off'>]
2025-01-10 02:50:11.834 INFO (MainThread) [custom_components.gree.climate] min_temp(): 16
2025-01-10 02:50:11.834 INFO (MainThread) [custom_components.gree.climate] max_temp(): 30
2025-01-10 02:50:11.834 INFO (MainThread) [custom_components.gree.climate] target_temperature_step(): 1.0
2025-01-10 02:50:11.835 INFO (MainThread) [custom_components.gree.climate] fan_list(): ['Auto', 'Low', 'Medium-Low', 'Medium', 'Medium-High', 'High', 'Turbo', 'Quiet']
2025-01-10 02:50:11.835 INFO (MainThread) [custom_components.gree.climate] swing_modes(): ['Default', 'Swing in full range', 'Fixed in the upmost position', 'Fixed in the middle-up position', 'Fixed in the middle position', 'Fixed in the middle-low position', 'Fixed in the lowest position', 'Swing in the downmost region', 'Swing in the middle-low region', 'Swing in the middle region', 'Swing in the middle-up region', 'Swing in the upmost region']
2025-01-10 02:50:11.835 INFO (MainThread) [custom_components.gree.climate] available(): Device is offline
2025-01-10 02:50:11.835 INFO (MainThread) [custom_components.gree.climate] name(): 主卧空调
2025-01-10 02:50:11.836 INFO (MainThread) [custom_components.gree.climate] supported_features(): 425
2025-01-10 02:50:11.836 INFO (MainThread) [custom_components.gree.climate] should_poll()
2025-01-10 02:50:11.838 INFO (SyncWorker_5) [custom_components.gree.climate] update()
2025-01-10 02:50:11.839 INFO (SyncWorker_5) [custom_components.gree.climate] Retrieving HVAC encryption key
2025-01-10 02:50:11.846 INFO (SyncWorker_5) [custom_components.gree.climate] Fetching(192.168.0.6, 7000, 10, {"cid": "app","i": 1,"pack": "Jtod3XIt89Lqss6DOHEUVp4gu9sAzgfkbQU3H+DJn/zDIm9XjABvK9ut9aCGHseEwf35XMKtIPQDq97Iev6J","t":"pack","tcid":"9424b8aa1a38","uid": 0, "tag" : "Ig+O04Cjn1qxAFjUINsBrg=="})
2025-01-10 02:50:21.859 INFO (SyncWorker_5) [custom_components.gree.climate] Error getting device encryption key!
2025-01-10 02:50:21.862 INFO (MainThread) [custom_components.gree.climate] supported_features(): 425
2025-01-10 02:50:21.863 INFO (MainThread) [custom_components.gree.climate] temperature_unit(): °C
2025-01-10 02:50:21.863 INFO (MainThread) [custom_components.gree.climate] hvac_modes(): [<HVACMode.AUTO: 'auto'>, <HVACMode.COOL: 'cool'>, <HVACMode.DRY: 'dry'>, <HVACMode.FAN_ONLY: 'fan_only'>, <HVACMode.HEAT: 'heat'>, <HVACMode.OFF: 'off'>]
2025-01-10 02:50:21.863 INFO (MainThread) [custom_components.gree.climate] min_temp(): 16
2025-01-10 02:50:21.864 INFO (MainThread) [custom_components.gree.climate] max_temp(): 30
2025-01-10 02:50:21.864 INFO (MainThread) [custom_components.gree.climate] target_temperature_step(): 1.0
2025-01-10 02:50:21.864 INFO (MainThread) [custom_components.gree.climate] fan_list(): ['Auto', 'Low', 'Medium-Low', 'Medium', 'Medium-High', 'High', 'Turbo', 'Quiet']
2025-01-10 02:50:21.865 INFO (MainThread) [custom_components.gree.climate] swing_modes(): ['Default', 'Swing in full range', 'Fixed in the upmost position', 'Fixed in the middle-up position', 'Fixed in the middle position', 'Fixed in the middle-low position', 'Fixed in the lowest position', 'Swing in the downmost region', 'Swing in the middle-low region', 'Swing in the middle region', 'Swing in the middle-up region', 'Swing in the upmost region']
2025-01-10 02:50:21.865 INFO (MainThread) [custom_components.gree.climate] available(): Device is offline
2025-01-10 02:50:21.865 INFO (MainThread) [custom_components.gree.climate] name(): 次卧空调
2025-01-10 02:50:21.865 INFO (MainThread) [custom_components.gree.climate] supported_features(): 425
2025-01-10 02:50:51.782 INFO (MainThread) [custom_components.gree.climate] should_poll()
2025-01-10 02:50:51.784 INFO (SyncWorker_2) [custom_components.gree.climate] update()
2025-01-10 02:50:51.785 INFO (SyncWorker_2) [custom_components.gree.climate] Retrieving HVAC encryption key
2025-01-10 02:50:51.792 INFO (SyncWorker_2) [custom_components.gree.climate] Fetching(192.168.0.7, 7000, 10, {"cid": "app","i": 1,"pack": "Jtod3XIt89Lqss6DOHEWBZp1vYcAzgfkbQU3H+DJn/zDIm9XjlNrft3x9aCGHseEwf35XMKtIPQDq97Iev6J","t":"pack","tcid":"9424b8c2545d","uid": 0, "tag" : "Sou3N51DfdQbAyf3RGcrMQ=="})
2025-01-10 02:51:01.803 INFO (SyncWorker_2) [custom_components.gree.climate] Error getting device encryption key!
2025-01-10 02:51:01.807 INFO (MainThread) [custom_components.gree.climate] supported_features(): 425
2025-01-10 02:51:01.807 INFO (MainThread) [custom_components.gree.climate] temperature_unit(): °C
2025-01-10 02:51:01.807 INFO (MainThread) [custom_components.gree.climate] hvac_modes(): [<HVACMode.AUTO: 'auto'>, <HVACMode.COOL: 'cool'>, <HVACMode.DRY: 'dry'>, <HVACMode.FAN_ONLY: 'fan_only'>, <HVACMode.HEAT: 'heat'>, <HVACMode.OFF: 'off'>]
2025-01-10 02:51:01.808 INFO (MainThread) [custom_components.gree.climate] min_temp(): 16
2025-01-10 02:51:01.808 INFO (MainThread) [custom_components.gree.climate] max_temp(): 30
2025-01-10 02:51:01.808 INFO (MainThread) [custom_components.gree.climate] target_temperature_step(): 1.0
2025-01-10 02:51:01.808 INFO (MainThread) [custom_components.gree.climate] fan_list(): ['Auto', 'Low', 'Medium-Low', 'Medium', 'Medium-High', 'High', 'Turbo', 'Quiet']
2025-01-10 02:51:01.809 INFO (MainThread) [custom_components.gree.climate] swing_modes(): ['Default', 'Swing in full range', 'Fixed in the upmost position', 'Fixed in the middle-up position', 'Fixed in the middle position', 'Fixed in the middle-low position', 'Fixed in the lowest position', 'Swing in the downmost region', 'Swing in the middle-low region', 'Swing in the middle region', 'Swing in the middle-up region', 'Swing in the upmost region']
2025-01-10 02:51:01.809 INFO (MainThread) [custom_components.gree.climate] available(): Device is offline
2025-01-10 02:51:01.809 INFO (MainThread) [custom_components.gree.climate] name(): 客厅空调
2025-01-10 02:51:01.810 INFO (MainThread) [custom_components.gree.climate] supported_features(): 425
2025-01-10 02:51:01.810 INFO (MainThread) [custom_components.gree.climate] should_poll()
2025-01-10 02:51:01.812 INFO (SyncWorker_1) [custom_components.gree.climate] update()
2025-01-10 02:51:01.812 INFO (SyncWorker_1) [custom_components.gree.climate] Retrieving HVAC encryption key
2025-01-10 02:51:01.819 INFO (SyncWorker_1) [custom_components.gree.climate] Fetching(192.168.0.5, 7000, 10, {"cid": "app","i": 1,"pack": "Jtod3XIt89Lqss6DOHEWBZp37dIAzgfkbQU3H+DJn/zDIm9XjlNrfI2k9aCGHseEwf35XMKtIPQDq97Iev6J","t":"pack","tcid":"9424b8c256e1","uid": 0, "tag" : "37SN26TCSrVzi7SbxD9SbA=="})
2025-01-10 02:51:11.822 INFO (SyncWorker_1) [custom_components.gree.climate] Error getting device encryption key!
2025-01-10 02:51:11.825 INFO (MainThread) [custom_components.gree.climate] supported_features(): 425
2025-01-10 02:51:11.826 INFO (MainThread) [custom_components.gree.climate] temperature_unit(): °C
2025-01-10 02:51:11.826 INFO (MainThread) [custom_components.gree.climate] hvac_modes(): [<HVACMode.AUTO: 'auto'>, <HVACMode.COOL: 'cool'>, <HVACMode.DRY: 'dry'>, <HVACMode.FAN_ONLY: 'fan_only'>, <HVACMode.HEAT: 'heat'>, <HVACMode.OFF: 'off'>]
2025-01-10 02:51:11.826 INFO (MainThread) [custom_components.gree.climate] min_temp(): 16
2025-01-10 02:51:11.827 INFO (MainThread) [custom_components.gree.climate] max_temp(): 30
2025-01-10 02:51:11.827 INFO (MainThread) [custom_components.gree.climate] target_temperature_step(): 1.0
2025-01-10 02:51:11.827 INFO (MainThread) [custom_components.gree.climate] fan_list(): ['Auto', 'Low', 'Medium-Low', 'Medium', 'Medium-High', 'High', 'Turbo', 'Quiet']
2025-01-10 02:51:11.827 INFO (MainThread) [custom_components.gree.climate] swing_modes(): ['Default', 'Swing in full range', 'Fixed in the upmost position', 'Fixed in the middle-up position', 'Fixed in the middle position', 'Fixed in the middle-low position', 'Fixed in the lowest position', 'Swing in the downmost region', 'Swing in the middle-low region', 'Swing in the middle region', 'Swing in the middle-up region', 'Swing in the upmost region']
2025-01-10 02:51:11.828 INFO (MainThread) [custom_components.gree.climate] available(): Device is offline
2025-01-10 02:51:11.828 INFO (MainThread) [custom_components.gree.climate] name(): 主卧空调
2025-01-10 02:51:11.828 INFO (MainThread) [custom_components.gree.climate] supported_features(): 425
2025-01-10 02:51:11.828 INFO (MainThread) [custom_components.gree.climate] should_poll()
2025-01-10 02:51:11.830 INFO (SyncWorker_5) [custom_components.gree.climate] update()
2025-01-10 02:51:11.831 INFO (SyncWorker_5) [custom_components.gree.climate] Retrieving HVAC encryption key
2025-01-10 02:51:11.835 INFO (SyncWorker_5) [custom_components.gree.climate] Fetching(192.168.0.6, 7000, 10, {"cid": "app","i": 1,"pack": "Jtod3XIt89Lqss6DOHEUVp4gu9sAzgfkbQU3H+DJn/zDIm9XjABvK9ut9aCGHseEwf35XMKtIPQDq97Iev6J","t":"pack","tcid":"9424b8aa1a38","uid": 0, "tag" : "Ig+O04Cjn1qxAFjUINsBrg=="})
2025-01-10 02:51:21.848 INFO (SyncWorker_5) [custom_components.gree.climate] Error getting device encryption key!
2025-01-10 02:51:21.852 INFO (MainThread) [custom_components.gree.climate] supported_features(): 425
2025-01-10 02:51:21.852 INFO (MainThread) [custom_components.gree.climate] temperature_unit(): °C
2025-01-10 02:51:21.853 INFO (MainThread) [custom_components.gree.climate] hvac_modes(): [<HVACMode.AUTO: 'auto'>, <HVACMode.COOL: 'cool'>, <HVACMode.DRY: 'dry'>, <HVACMode.FAN_ONLY: 'fan_only'>, <HVACMode.HEAT: 'heat'>, <HVACMode.OFF: 'off'>]
2025-01-10 02:51:21.853 INFO (MainThread) [custom_components.gree.climate] min_temp(): 16
2025-01-10 02:51:21.853 INFO (MainThread) [custom_components.gree.climate] max_temp(): 30
2025-01-10 02:51:21.854 INFO (MainThread) [custom_components.gree.climate] target_temperature_step(): 1.0
2025-01-10 02:51:21.854 INFO (MainThread) [custom_components.gree.climate] fan_list(): ['Auto', 'Low', 'Medium-Low', 'Medium', 'Medium-High', 'High', 'Turbo', 'Quiet']
2025-01-10 02:51:21.854 INFO (MainThread) [custom_components.gree.climate] swing_modes(): ['Default', 'Swing in full range', 'Fixed in the upmost position', 'Fixed in the middle-up position', 'Fixed in the middle position', 'Fixed in the middle-low position', 'Fixed in the lowest position', 'Swing in the downmost region', 'Swing in the middle-low region', 'Swing in the middle region', 'Swing in the middle-up region', 'Swing in the upmost region']
2025-01-10 02:51:21.854 INFO (MainThread) [custom_components.gree.climate] available(): Device is offline
2025-01-10 02:51:21.855 INFO (MainThread) [custom_components.gree.climate] name(): 次卧空调
2025-01-10 02:51:21.855 INFO (MainThread) [custom_components.gree.climate] supported_features(): 425
2025-01-10 02:51:51.785 INFO (MainThread) [custom_components.gree.climate] should_poll()
2025-01-10 02:51:51.787 INFO (SyncWorker_2) [custom_components.gree.climate] update()
2025-01-10 02:51:51.787 INFO (SyncWorker_2) [custom_components.gree.climate] Retrieving HVAC encryption key
2025-01-10 02:51:51.794 INFO (SyncWorker_2) [custom_components.gree.climate] Fetching(192.168.0.7, 7000, 10, {"cid": "app","i": 1,"pack": "Jtod3XIt89Lqss6DOHEWBZp1vYcAzgfkbQU3H+DJn/zDIm9XjlNrft3x9aCGHseEwf35XMKtIPQDq97Iev6J","t":"pack","tcid":"9424b8c2545d","uid": 0, "tag" : "Sou3N51DfdQbAyf3RGcrMQ=="})
2025-01-10 02:52:01.806 INFO (SyncWorker_2) [custom_components.gree.climate] Error getting device encryption key!
2025-01-10 02:52:01.809 INFO (MainThread) [custom_components.gree.climate] supported_features(): 425
2025-01-10 02:52:01.810 INFO (MainThread) [custom_components.gree.climate] temperature_unit(): °C
2025-01-10 02:52:01.811 INFO (MainThread) [custom_components.gree.climate] hvac_modes(): [<HVACMode.AUTO: 'auto'>, <HVACMode.COOL: 'cool'>, <HVACMode.DRY: 'dry'>, <HVACMode.FAN_ONLY: 'fan_only'>, <HVACMode.HEAT: 'heat'>, <HVACMode.OFF: 'off'>]
2025-01-10 02:52:01.811 INFO (MainThread) [custom_components.gree.climate] min_temp(): 16
2025-01-10 02:52:01.811 INFO (MainThread) [custom_components.gree.climate] max_temp(): 30
2025-01-10 02:52:01.811 INFO (MainThread) [custom_components.gree.climate] target_temperature_step(): 1.0
2025-01-10 02:52:01.812 INFO (MainThread) [custom_components.gree.climate] fan_list(): ['Auto', 'Low', 'Medium-Low', 'Medium', 'Medium-High', 'High', 'Turbo', 'Quiet']
2025-01-10 02:52:01.812 INFO (MainThread) [custom_components.gree.climate] swing_modes(): ['Default', 'Swing in full range', 'Fixed in the upmost position', 'Fixed in the middle-up position', 'Fixed in the middle position', 'Fixed in the middle-low position', 'Fixed in the lowest position', 'Swing in the downmost region', 'Swing in the middle-low region', 'Swing in the middle region', 'Swing in the middle-up region', 'Swing in the upmost region']
2025-01-10 02:52:01.812 INFO (MainThread) [custom_components.gree.climate] available(): Device is offline
2025-01-10 02:52:01.812 INFO (MainThread) [custom_components.gree.climate] name(): 客厅空调
2025-01-10 02:52:01.813 INFO (MainThread) [custom_components.gree.climate] supported_features(): 425
2025-01-10 02:52:01.813 INFO (MainThread) [custom_components.gree.climate] should_poll()
2025-01-10 02:52:01.815 INFO (SyncWorker_1) [custom_components.gree.climate] update()
2025-01-10 02:52:01.815 INFO (SyncWorker_1) [custom_components.gree.climate] Retrieving HVAC encryption key
2025-01-10 02:52:01.822 INFO (SyncWorker_1) [custom_components.gree.climate] Fetching(192.168.0.5, 7000, 10, {"cid": "app","i": 1,"pack": "Jtod3XIt89Lqss6DOHEWBZp37dIAzgfkbQU3H+DJn/zDIm9XjlNrfI2k9aCGHseEwf35XMKtIPQDq97Iev6J","t":"pack","tcid":"9424b8c256e1","uid": 0, "tag" : "37SN26TCSrVzi7SbxD9SbA=="})
from homeassistant.core import Event, EventStateChangedData, callback
from homeassistant.components.climate import ClimateEntity
from homeassistant.helpers.event import async_track_state_change_event
@property
def hvac_modes(self):
# Return the list of available operation modes.
return self._hvac_modes
@property
def fan_mode(self):
# Return the fan mode.
return self._fan_mode
@property
def fan_modes(self):
# Return the list of available fan modes.
return self._fan_modes
@property
def preset_mode(self):
# Return the preset mode.
if self._acOptions['SwhSlp'] != 0:
return PRESET_SLEEP
return PRESET_NONE
@property
def preset_modes(self):
# Return the list of available preset modes.
return self._preset_modes
@property
def supported_features(self):
# Return the list of supported features.
return SUPPORT_FLAGS
def turn_on(self):
_LOGGER.info('turn_on(): ')
# Turn on.
self.syncState({'Pow': 1})
def turn_off(self):
_LOGGER.info('turn_off(): ')
# Turn on.
self.syncState({'Pow': 0})
def set_temperature(self, **kwargs):
_LOGGER.info('set_temperature(): ' + str(kwargs.get(ATTR_TEMPERATURE)))
# Set new target temperatures.
if kwargs.get(ATTR_TEMPERATURE) is not None:
# do nothing if temperature is none
if not (self._acOptions['Pow'] == 0):
# do nothing if HVAC is switched off
_LOGGER.info('syncState with SetTem=' +
str(kwargs.get(ATTR_TEMPERATURE)))
tem, decimal = str(kwargs.get(ATTR_TEMPERATURE)).split('.')
self.syncState({'SetTem': int(tem), 'Add0.1': int(decimal)})
def set_fan_mode(self, fan):
_LOGGER.info('set_fan_mode(): ' + str(fan))
# Set the fan mode.
if not (self._acOptions['Pow'] == 0):
_LOGGER.info('Setting normal fan mode to ' +
str(self._fan_modes.index(fan)))
self.syncState({'WdSpd': str(self._fan_modes.index(fan))})
def set_hvac_mode(self, hvac_mode):
_LOGGER.info('set_hvac_mode(): ' + str(hvac_mode))
# Set new operation mode.
if (hvac_mode == HVACMode.OFF):
self.syncState({'Pow': 0})
else:
self.syncState(
{'Mod': self._hvac_modes.index(hvac_mode), 'Pow': 1})
def set_preset_mode(self, preset_mode):
_LOGGER.info('set_preset_mode(): ' + str(preset_mode))
# Set the fan mode.
if self._acOptions['Pow'] == 0:
return
if preset_mode == PRESET_SLEEP:
_LOGGER.info('Setting SwhSlp mode to 1')
self.syncState({'SwhSlp': 1, 'Quiet': 1})
return
def dealStatusPack(self, statusPack):
if statusPack is not None:
self._available = True
for i, val in enumerate(statusPack['cols']):
self._acOptions[val] = statusPack['dat']
_LOGGER.info('Climate {} status: {}'.format(
self._name, self._acOptions))
self.UpdateHAStateToCurrentACState()
self.schedule_update_ha_state()
def dealResPack(self, resPack):
if resPack is not None:
for i, val in enumerate(resPack['opt']):
self._acOptions[val] = resPack['val']
self.UpdateHAStateToCurrentACState()
self.schedule_update_ha_state()
def UpdateHATargetTemperature(self):
# Sync set temperature to HA
tem = int(self._acOptions['SetTem'])
if 'Add0.1' in self._acOptions:
decimal = self._acOptions['Add0.1']
if decimal:
tem = tem + int(decimal) * 0.1
self._target_temperature = tem
_LOGGER.info('{} HA target temp set according to HVAC state to: {}'.format(
self._name, str(tem)))
def UpdateHAHvacMode(self):
# Sync current HVAC operation mode to HA
if (self._acOptions['Pow'] == 0):
self._hvac_mode = HVACMode.OFF
else:
self._hvac_mode = self._hvac_modes[self._acOptions['Mod']]
_LOGGER.info('{} HA operation mode set according to HVAC state to: {}'.format(
self._name, str(self._hvac_mode)))
def UpdateHAFanMode(self):
# Sync current HVAC Fan mode state to HA
index = int(self._acOptions['WdSpd'])
if index < len(self._fan_modes):
self._fan_mode = self._fan_modes[int(self._acOptions['WdSpd'])]
_LOGGER.info('{} HA fan mode set according to HVAC state to: {}'.format(
self._name, str(self._fan_mode)))
else:
_LOGGER.info('{} HA fan mode set WdSpd to: {}'.format(
self._name, str(self._acOptions['WdSpd'])))
for device in devices:
name = device.get(CONF_NAME)
mac = device.get(CONF_MAC)
temp_sensor = device.get("temp_sensor")
temp_step = device.get("temp_step", 1)