vekexasia / comfoair-esp32

Interact with Zehnder Comfoair with esp32
Other
124 stars 40 forks source link

Unknown entity state after restart. #55

Closed SzymaneKwr closed 3 months ago

SzymaneKwr commented 1 year ago

Hello, I have a question about the entity state after ESP reset. All entities are in an unknown state until they are replaced or updated. Is there any way to make entities show their current state after a reset/update? 2023-09-06_13h47_31

xhess commented 1 year ago

Thank you for asking this question. I have got the same problem. I think I know what the problem is and that currently there is no solution in this code. As I understand that comfoair-esp32 just listens for messages on the can-bus. The ventilation unit only sends the values when they change. A quick "fix" would be to restart the ventilation unit or you wait until the value changes...

While writing this comment there is currently the possibility to send raw hex commands like described below.

But a real solution would be that the esp32 could ask the ventilation unit for some/all sensor values like described here: https://github.com/michaelarnauts/comfoconnect/blob/master/PROTOCOL-RMI.md#general-commands

This command reads a single property identified by the Unit, SubUnit and Property Id. Each writable property may have a definitionrange & recommended step size which are also accesible The syntax is: 01 UnitId SubUnitId GetType PropertyId The answer is depended on the type of the property and the GetType. If the value, range and step (everything) is requested, the answer is: Value, lower boundry of range, upper boundry of range, step size.

The ESP could know that there are unknown values and ask specific for these or it could ask for all values.

sfleuren commented 11 months ago

Same here; + 1 on this issue.

albertofralbe commented 3 months ago

Hi, I was wondering if this issue has already been addressed by someone? If so, would you mind to share? Thanks

vekexasia commented 3 months ago

Hey all,

as far as I know nobody addressed this. tbh i still struggle to understand the usecase of this. I've mine up and running for weeks and apart from esphome updates my esp32 never reboots... maybe some of you cuts power to their VMC unit?

vekexasia commented 3 months ago

Can u guys let me know if this is working for u?

albertofralbe commented 3 months ago

Where is the PDOID list?

vekexasia commented 3 months ago

Where is the PDOID list?

https://github.com/vekexasia/comfoair-esp32/blob/master/components/comfoair/__init__.py#L26

Also can u please take a look @ https://github.com/vekexasia/comfoair-esp32/issues/74 I am trying to build a compatibility list