max13fr / Airzonecloud-HomeAssistant

Airzone Cloud plugin for Home Assistant
MIT License
28 stars 15 forks source link

Global command entity not fully working #9

Open marcgarciamarti opened 3 years ago

marcgarciamarti commented 3 years ago

Hello there,

awesome integration. I bow to you!! Thanks!

I've decided to create this issue because it feels to me as if one entity was missing in my system, or the main entity is not fully capable of commanding my environment. I have an Airzone system with 5 zones, and the zones are correctly recognized by this integration:

2020-12-12 16:53:25 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new climate.airzonecloud entity: climate.sistema_1_comedor
2020-12-12 16:53:25 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new climate.airzonecloud entity: climate.sistema_1_h_despacho
2020-12-12 16:53:25 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new climate.airzonecloud entity: climate.sistema_1_h_juegos
2020-12-12 16:53:25 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new climate.airzonecloud entity: climate.sistema_1_h_ninos
2020-12-12 16:53:25 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new climate.airzonecloud entity: climate.sistema_1_h_suite
2020-12-12 16:53:25 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new climate.airzonecloud entity: climate.sistema_1

I can command the individual zones just fine. However, when I attempt to command the whole system, I'm unable to turn it on or off globally; I can however modify the Operating mode just fine (which is a global setting as well), and I can modify individual zones just fine too, but I simply can't turn the whole system on or off.

This is what I did. Starting with a system in standby 2020-12-12 18 44 04

Screen Shot 2020-12-12 at 18 34 14

I changed the Operating mode by switching Cool on the global widget in the frontend

Screen Shot 2020-12-12 at 18 35 37

I could see how the mode changed on my phone

2020-12-12 18 44 09

I then tried to change the temperature, hoping that it would also modify the global temperature selector on the unit Screen Shot 2020-12-12 at 18 36 09

but I did not see a temperature change on my phone

2020-12-12 18 44 09

Screen Shot 2020-12-12 at 18 36 53

I then clicked on the switch on/off button on the widget in the frontend Screen Shot 2020-12-12 at 18 52 38

nothing changed in the system

I then grabbed my phone and toggled the global switch to on and changed the global temperature setting

2020-12-12 18 42 38

2020-12-12 18 42 38

The system of course started working but global entity did not react, while the individual zones did.

The log file contains this:

config $ tail home-assistant.log -f | grep 'Sistema 1'
2020-12-12 17:33:45 INFO (SyncWorker_1) [AirzoneCloud.System] Data refreshed for System(name=Sistema 1, mode=stop, eco=eco-off, velocity=None, airflow=None, id= xxxxxxxxxx, system_number=1, device_id= xxxxxxxxxx)
2020-12-12 17:33:55 INFO (SyncWorker_53) [AirzoneCloud.System] Data refreshed for System(name=Sistema 1, mode=stop, eco=eco-off, velocity=None, airflow=None, id= xxxxxxxxxx, system_number=1, device_id= xxxxxxxxxx)
2020-12-12 17:34:05 INFO (SyncWorker_32) [AirzoneCloud.System] Data refreshed for System(name=Sistema 1, mode=stop, eco=eco-off, velocity=None, airflow=None, id= xxxxxxxxxx, system_number=1, device_id= xxxxxxxxxx)
2020-12-12 17:34:09 INFO (SyncWorker_51) [AirzoneCloud.System] call set_mode(stop) on System(name=Sistema 1, mode=stop, eco=eco-off, velocity=None, airflow=None)
2020-12-12 17:34:13 INFO (SyncWorker_25) [AirzoneCloud.System] Data refreshed for System(name=Sistema 1, mode=stop, eco=eco-off, velocity=None, airflow=None, id= xxxxxxxxxx, system_number=1, device_id= xxxxxxxxxx)
2020-12-12 17:34:17 INFO (SyncWorker_54) [AirzoneCloud.System] Data refreshed for System(name=Sistema 1, mode=stop, eco=eco-off, velocity=None, airflow=None, id= xxxxxxxxxx, system_number=1, device_id= xxxxxxxxxx)
2020-12-12 17:34:25 INFO (SyncWorker_31) [AirzoneCloud.System] call set_mode(cool-both) on System(name=Sistema 1, mode=stop, eco=eco-off, velocity=None, airflow=None)
2020-12-12 17:34:25 INFO (SyncWorker_40) [AirzoneCloud.System] Data refreshed for System(name=Sistema 1, mode=stop, eco=eco-off, velocity=None, airflow=None, id= xxxxxxxxxx, system_number=1, device_id= xxxxxxxxxx)
2020-12-12 17:34:35 INFO (SyncWorker_1) [AirzoneCloud.System] Data refreshed for System(name=Sistema 1, mode=cool-air, eco=eco-off, velocity=None, airflow=None, id= xxxxxxxxxx, system_number=1, device_id= xxxxxxxxxx)
2020-12-12 17:34:46 INFO (SyncWorker_13) [AirzoneCloud.System] Data refreshed for System(name=Sistema 1, mode=cool-air, eco=eco-off, velocity=None, airflow=None, id= xxxxxxxxxx, system_number=1, device_id= xxxxxxxxxx)
2020-12-12 17:34:55 INFO (SyncWorker_43) [AirzoneCloud.System] Data refreshed for System(name=Sistema 1, mode=cool-air, eco=eco-off, velocity=None, airflow=None, id= xxxxxxxxxx, system_number=1, device_id= xxxxxxxxxx)
2020-12-12 17:35:01 INFO (SyncWorker_0) [AirzoneCloud.System] call set_mode(stop) on System(name=Sistema 1, mode=cool-air, eco=eco-off, velocity=None, airflow=None)
2020-12-12 17:35:01 INFO (SyncWorker_58) [AirzoneCloud.System] Data refreshed for System(name=Sistema 1, mode=cool-air, eco=eco-off, velocity=None, airflow=None, id= xxxxxxxxxx, system_number=1, device_id= xxxxxxxxxx)
2020-12-12 17:35:05 INFO (SyncWorker_16) [AirzoneCloud.System] Data refreshed for System(name=Sistema 1, mode=stop, eco=eco-off, velocity=None, airflow=None, id= xxxxxxxxxx, system_number=1, device_id= xxxxxxxxxx)
2020-12-12 17:35:11 INFO (SyncWorker_12) [AirzoneCloud.System] call set_mode(cool-both) on System(name=Sistema 1, mode=stop, eco=eco-off, velocity=None, airflow=None)
2020-12-12 17:35:14 INFO (SyncWorker_33) [AirzoneCloud.System] Data refreshed for System(name=Sistema 1, mode=stop, eco=eco-off, velocity=None, airflow=None, id= xxxxxxxxxx, system_number=1, device_id= xxxxxxxxxx)
2020-12-12 17:35:15 INFO (SyncWorker_8) [AirzoneCloud.System] Data refreshed for System(name=Sistema 1, mode=cool-air, eco=eco-off, velocity=None, airflow=None, id= xxxxxxxxxx, system_number=1, device_id= xxxxxxxxxx)
2020-12-12 17:35:25 INFO (SyncWorker_35) [AirzoneCloud.System] Data refreshed for System(name=Sistema 1, mode=cool-air, eco=eco-off, velocity=None, airflow=None, id= xxxxxxxxxx, system_number=1, device_id= xxxxxxxxxx)
2020-12-12 17:35:35 INFO (SyncWorker_50) [AirzoneCloud.System] Data refreshed for System(name=Sistema 1, mode=cool-air, eco=eco-off, velocity=None, airflow=None, id= xxxxxxxxxx, system_number=1, device_id= xxxxxxxxxx)
2020-12-12 17:35:46 INFO (SyncWorker_28) [AirzoneCloud.System] Data refreshed for System(name=Sistema 1, mode=cool-air, eco=eco-off, velocity=None, airflow=None, id= xxxxxxxxxx, system_number=1, device_id= xxxxxxxxxx)
2020-12-12 17:35:55 INFO (SyncWorker_42) [AirzoneCloud.System] Data refreshed for System(name=Sistema 1, mode=cool-air, eco=eco-off, velocity=None, airflow=None, id= xxxxxxxxxx, system_number=1, device_id= xxxxxxxxxx)
2020-12-12 17:36:05 INFO (SyncWorker_46) [AirzoneCloud.System] Data refreshed for System(name=Sistema 1, mode=cool-air, eco=eco-off, velocity=None, airflow=None, id= xxxxxxxxxx, system_number=1, device_id= xxxxxxxxxx)
2020-12-12 17:36:18 INFO (SyncWorker_47) [AirzoneCloud.System] Data refreshed for System(name=Sistema 1, mode=cool-air, eco=eco-off, velocity=None, airflow=None, id= xxxxxxxxxx, system_number=1, device_id= xxxxxxxxxx)
2020-12-12 17:36:25 INFO (SyncWorker_52) [AirzoneCloud.System] Data refreshed for System(name=Sistema 1, mode=cool-air, eco=eco-off, velocity=None, airflow=None, id= xxxxxxxxxx, system_number=1, device_id= xxxxxxxxxx)

2020-12-12 17:36:35 INFO (SyncWorker_25) [AirzoneCloud.System] Data refreshed for System(name=Sistema 1, mode=cool-air, eco=eco-off, velocity=None, airflow=None, id= xxxxxxxxxx, system_number=1, device_id= xxxxxxxxxx)
2020-12-12 17:36:46 INFO (SyncWorker_54) [AirzoneCloud.System] Data refreshed for System(name=Sistema 1, mode=cool-air, eco=eco-off, velocity=None, airflow=None, id= xxxxxxxxxx, system_number=1, device_id= xxxxxxxxxx)
2020-12-12 17:36:55 INFO (SyncWorker_55) [AirzoneCloud.System] Data refreshed for System(name=Sistema 1, mode=cool-air, eco=eco-off, velocity=None, airflow=None, id= xxxxxxxxxx, system_number=1, device_id= xxxxxxxxxx)
2020-12-12 17:37:05 INFO (SyncWorker_23) [AirzoneCloud.System] Data refreshed for System(name=Sistema 1, mode=cool-air, eco=eco-off, velocity=None, airflow=None, id= xxxxxxxxxx, system_number=1, device_id= xxxxxxxxxx)
2020-12-12 17:37:17 INFO (SyncWorker_57) [AirzoneCloud.System] Data refreshed for System(name=Sistema 1, mode=cool-air, eco=eco-off, velocity=None, airflow=None, id=xxxxxxxxxx, system_number=1, device_id= xxxxxxxxxx)

any idea about what may be happening? The line breaks above indicate when I commanded the system on my phone. If you check the logs, you will see that no attribute changes...

Am I doing something wrong?

thanks again!

marcgarciamarti commented 3 years ago

Hi @max13fr , did you happen to get around to reviewing my case above? Is there any additional information I could provide?

thank you!!!

marcgarciamarti commented 3 years ago

Please let me know if I can be of any help!

marcgarciamarti commented 3 years ago

Hi @max13fr I'm sorry they programming skills are pretty poor. I would love to contribute but I just don't feel I can tamper with the code.

May I provide any additional information?

Thanks a million for such a great integration!!

marcgarciamarti commented 3 years ago

Update: with the current version, global on/off and Mode does seem to work. Changing the temperature using the global entity still doesn't.