Closed nathanvdh closed 8 months ago
I'm getting an error importing At2PlusClient, but I'll remove it entirely and try again.
Hey, i'm excited for this one. I did the update via HACS but didn't check the sha. Got the same error as @ctrl-freak
Same for me unfortunately. Looking forward to steps toward zone control - that would be amazing.
This is what I get for not writing an emulator to test against myself...
Ok fixed this recursive import problem. Try again :)
Reloaded. Cannot see any new entities.
I think I know what's going on. I'll try to sort it out tomorrow. In the meantime can you try the test_programs/at2plus_test.py
script from the library repo. Let me know if it prints the zone statuses correctly.
Edit: Just realised I never actually request the zones - doh!
Ok pushed another release that actually requests the zone info xD.
Still no new entities or zone details unfortunately.
Final dumb mistake fixed for tonight - try 0.2.3. Will pick this up again tomorrow night.
I can now see 8 fan group entities corresponding to the 8 zones of my house. They update correctly if I turn a zone on and off. No dampler settings or anything else. It's a pretty good start though!
Confirming the later update is good.
All zones accounted for, no dampening, but that's still awesome!
Agreed!
Works, fans are correct (on/off) but no dampening %. Very exciting!
Just confirming what everyone else is seeing. Very exciting indeed!.
Have a go with the latest release :)
Group names are still missing, will do that next.
So far it looks to be operating correctly. I can control each individual zone damper %; and turn zones off and on.
This will be very helpful to control the zones for the kids overnight when asleep and cold or the opposite during the day when warm. Awesome.
EDIT: minor weird behaviour. The service call fails when trying to set at 100% damper. 99% is fine. Error states that the number should be between 0 and 100, but 100 doesn't work.
Logger: homeassistant.components.websocket_api.http.connection Source: components/websocket_api/commands.py:230 Integration: Home Assistant WebSocket API (documentation, issues) First occurred: 8:20:57 PM (6 occurrences) Last logged: 8:22:56 PM
[140134670933952] Damper percentage must be from 0 to 100 Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 230, in handle_call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 2035, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2072, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 235, in handle_service return await service.entity_service_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 876, in entity_service_call response_data = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 948, in _handle_entity_call result = await task ^^^^^^^^^^ File "/config/custom_components/airtouch2plus/Airtouch2PlusGroupEntity.py", line 87, in async_set_percentage await self._group.set_damp(percentage) File "/usr/local/lib/python3.11/site-packages/airtouch2/at2plus/At2PlusGroup.py", line 38, in set_damp settings = GroupSettings(self.status.id, GroupSetDamper.SET, GroupSetPower.UNCHANGED, new_damp) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/airtouch2/protocol/at2plus/messages/GroupControl.py", line 24, in init raise ValueError(f"Damper percentage must be from 0 to 100") ValueError: Damper percentage must be from 0 to 100
100% setting works now with the newest version. Sometimes the updated values are not reflected immediately on the air touch app, but that may be more to do with the app itself.
Sorry I'm not sure about that. Group names should be working in new version now.
Group names there, percent control accurate and changing it reflects in the app.
Fantastic work 👌👌
@Chris112 @Selmaks @bigjezza @phardy @ozhound @ctrl-freak @mcoops
Ping :)
Can somebody see if the latest beta release works at all. If so: Do you get fan entities for the zones? Does on/off show correctly? Does damper% show correctly?