Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

io:OperatingModeCapabilitiesState energy_demand not reported in binary_sensor #692

Closed
1 task done
jncanches opened this issue Dec 22, 2021 · 17 comments
Closed
1 task done
Labels
bug Something isn't working

Comments

@jncanches
Copy link

Did you read the instructions?

The problem

The binary sensor based on energy_demand data is not updating anymore (still off)
It's the same probleme as a previous issue opened on september 568
It was fixed in 2.9.3

What version of this integration (ha-tahoma) has the issue?

2.10.2

What version of Home Assistant Core has the issue?

2021.12.4

Which gateway / hub do you use?

CozyTouch

Device model

E722804

Home Assistant log

No response

Additional information

No response

@jncanches jncanches added the bug Something isn't working label Dec 22, 2021
@jncanches
Copy link
Author

I have explored the history of the state and the binary_sensor has been "on" during the day but since I updated to the latest version, it is off (but my water heater is running and is seen as heating on cozytouch app)

@jncanches
Copy link
Author

jncanches commented Dec 22, 2021

I reverted back to version 2.9.3 and it is still not working. I think cozytouch has been updated of something and data has changed...

@jncanches
Copy link
Author

FYI information, using cozytouch integration, the energy_demand attribute is working properly

@iMicknl
Copy link
Owner

iMicknl commented Dec 28, 2021

Could you turn on debug mode, reboot HA and attach your log here?

@jncanches
Copy link
Author

jncanches commented Dec 28, 2021

Ok, I have enabled debug mode and make the water heater to turn on (heating water).
The relevant log is

2021-12-28 13:56:57 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1640696209785, name=<EventName.DEVICE_STATE_CHANGED: 'DeviceStateChangedEvent'>, setupoid=_CountingAttr(counter=334, _default=None, repr=<function obfuscate_id at 0x14d5940af280>, eq=True, order=True, hash=None, init=True, on_setattr=None, metadata={}), owner_key=None, type=None, sub_type=None, time_to_next_state=None, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, place_oid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id=None, device_url=io://****-****-9786/5482352#1, device_states=[State(name='io:PriorityLockOriginatorState', type=<DataType.NONE: 0>, value=None), State(name='io:PriorityLockLevelState', type=<DataType.NONE: 0>, value=None), State(name='io:OperatingModeCapabilitiesState', type=<DataType.JSON_OBJECT: 11>, value='{"relaunch": 1,"absence": 1,"rateManagement": 0,"energyDemandStatus": 1}'), State(name='core:OperatingModeState', type=<DataType.JSON_OBJECT: 11>, value='{"relaunch": "off","absence": "off"}')], old_state=None, new_state=None)
2021-12-28 13:56:57 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1640696209794, name=<EventName.EXECUTION_STATE_CHANGED: 'ExecutionStateChangedEvent'>, setupoid=_CountingAttr(counter=334, _default=None, repr=<function obfuscate_id at 0x14d5940af280>, eq=True, order=True, hash=None, init=True, on_setattr=None, metadata={}), owner_key=25ea667a-****-4a7a-b****-0920a2035811, type=1, sub_type=1, time_to_next_state=0, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, place_oid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id='011d5c8b-d9b6-8679-0f87-558f60cfc998', device_url=None, device_states=[], old_state=<ExecutionState.TRANSMITTED: 'TRANSMITTED'>, new_state=<ExecutionState.IN_PROGRESS: 'IN_PROGRESS'>)
2021-12-28 13:56:57 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1640696209798, name=<EventName.EXECUTION_STATE_CHANGED: 'ExecutionStateChangedEvent'>, setupoid=_CountingAttr(counter=334, _default=None, repr=<function obfuscate_id at 0x14d5940af280>, eq=True, order=True, hash=None, init=True, on_setattr=None, metadata={}), owner_key=25ea667a-****-4a7a-b****-0920a2035811, type=1, sub_type=1, time_to_next_state=-1, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, place_oid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id='011d5c8b-d9b6-8679-0f87-558f60cfc998', device_url=None, device_states=[], old_state=<ExecutionState.IN_PROGRESS: 'IN_PROGRESS'>, new_state=<ExecutionState.COMPLETED: 'COMPLETED'>)
2021-12-28 13:56:57 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1640696210248, name=<EventName.EXECUTION_STATE_CHANGED: 'ExecutionStateChangedEvent'>, setupoid=_CountingAttr(counter=334, _default=None, repr=<function obfuscate_id at 0x14d5940af280>, eq=True, order=True, hash=None, init=True, on_setattr=None, metadata={}), owner_key=25ea667a-****-4a7a-b****-0920a2035811, type=1, sub_type=1, time_to_next_state=0, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, place_oid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id='011d6075-d9b6-8679-0f87-558ff0b1db84', device_url=None, device_states=[], old_state=<ExecutionState.TRANSMITTED: 'TRANSMITTED'>, new_state=<ExecutionState.IN_PROGRESS: 'IN_PROGRESS'>)
2021-12-28 13:56:57 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1640696210473, name=<EventName.EXECUTION_STATE_CHANGED: 'ExecutionStateChangedEvent'>, setupoid=_CountingAttr(counter=334, _default=None, repr=<function obfuscate_id at 0x14d5940af280>, eq=True, order=True, hash=None, init=True, on_setattr=None, metadata={}), owner_key=25ea667a-****-4a7a-b****-0920a2035811, type=1, sub_type=1, time_to_next_state=-1, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, place_oid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id='011d6075-d9b6-8679-0f87-558ff0b1db84', device_url=None, device_states=[], old_state=<ExecutionState.IN_PROGRESS: 'IN_PROGRESS'>, new_state=<ExecutionState.COMPLETED: 'COMPLETED'>)
2021-12-28 13:56:57 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1640696213546, name=<EventName.EXECUTION_REGISTERED: 'ExecutionRegisteredEvent'>, setupoid=_CountingAttr(counter=334, _default=None, repr=<function obfuscate_id at 0x14d5940af280>, eq=True, order=True, hash=None, init=True, on_setattr=None, metadata={}), owner_key=None, type=1, sub_type=1, time_to_next_state=None, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, place_oid=None, label='Android 3.1.0#310 null', metadata='', camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id='011d7026-d9b6-8679-0f87-558f4618b2fc', device_url=None, device_states=[], old_state=None, new_state=None)
2021-12-28 13:56:57 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1640696213546, name=<EventName.EXECUTION_STATE_CHANGED: 'ExecutionStateChangedEvent'>, setupoid=_CountingAttr(counter=334, _default=None, repr=<function obfuscate_id at 0x14d5940af280>, eq=True, order=True, hash=None, init=True, on_setattr=None, metadata={}), owner_key=25ea667a-****-4a7a-b****-0920a2035811, type=1, sub_type=1, time_to_next_state=0, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, place_oid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id='011d7026-d9b6-8679-0f87-558f4618b2fc', device_url=None, device_states=[], old_state=<ExecutionState.INITIALIZED: 'INITIALIZED'>, new_state=<ExecutionState.NOT_TRANSMITTED: 'NOT_TRANSMITTED'>)
2021-12-28 13:56:57 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1640696213546, name=<EventName.GATEWAY_SYNCHRONIZATION_STARTED: 'GatewaySynchronizationStartedEvent'>, setupoid=_CountingAttr(counter=334, _default=None, repr=<function obfuscate_id at 0x14d5940af280>, eq=True, order=True, hash=None, init=True, on_setattr=None, metadata={}), owner_key=None, type=None, sub_type=None, time_to_next_state=None, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, place_oid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=****-****-9786, exec_id=None, device_url=None, device_states=[], old_state=None, new_state=None)
2021-12-28 13:56:57 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1640696213557, name=<EventName.EXECUTION_STATE_CHANGED: 'ExecutionStateChangedEvent'>, setupoid=_CountingAttr(counter=334, _default=None, repr=<function obfuscate_id at 0x14d5940af280>, eq=True, order=True, hash=None, init=True, on_setattr=None, metadata={}), owner_key=25ea667a-****-4a7a-b****-0920a2035811, type=1, sub_type=1, time_to_next_state=0, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, place_oid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id='011d7026-d9b6-8679-0f87-558f4618b2fc', device_url=None, device_states=[], old_state=<ExecutionState.NOT_TRANSMITTED: 'NOT_TRANSMITTED'>, new_state=<ExecutionState.TRANSMITTED: 'TRANSMITTED'>)
2021-12-28 13:56:57 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1640696213559, name=<EventName.GATEWAY_SYNCHRONIZATION_ENDED: 'GatewaySynchronizationEndedEvent'>, setupoid=_CountingAttr(counter=334, _default=None, repr=<function obfuscate_id at 0x14d5940af280>, eq=True, order=True, hash=None, init=True, on_setattr=None, metadata={}), owner_key=None, type=None, sub_type=None, time_to_next_state=None, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, place_oid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=****-****-9786, exec_id=None, device_url=None, device_states=[], old_state=None, new_state=None)
2021-12-28 13:56:57 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1640696214236, name=<EventName.DEVICE_STATE_CHANGED: 'DeviceStateChangedEvent'>, setupoid=_CountingAttr(counter=334, _default=None, repr=<function obfuscate_id at 0x14d5940af280>, eq=True, order=True, hash=None, init=True, on_setattr=None, metadata={}), owner_key=None, type=None, sub_type=None, time_to_next_state=None, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, place_oid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id=None, device_url=io://****-****-9786/5482352#1, device_states=[State(name='core:BoostModeDurationState', type=<DataType.INTEGER: 1>, value='0')], old_state=None, new_state=None)
2021-12-28 13:56:57 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1640696214241, name=<EventName.EXECUTION_STATE_CHANGED: 'ExecutionStateChangedEvent'>, setupoid=_CountingAttr(counter=334, _default=None, repr=<function obfuscate_id at 0x14d5940af280>, eq=True, order=True, hash=None, init=True, on_setattr=None, metadata={}), owner_key=25ea667a-****-4a7a-b****-0920a2035811, type=1, sub_type=1, time_to_next_state=0, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, place_oid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id='011d7026-d9b6-8679-0f87-558f4618b2fc', device_url=None, device_states=[], old_state=<ExecutionState.TRANSMITTED: 'TRANSMITTED'>, new_state=<ExecutionState.IN_PROGRESS: 'IN_PROGRESS'>)
2021-12-28 13:56:57 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1640696214246, name=<EventName.EXECUTION_STATE_CHANGED: 'ExecutionStateChangedEvent'>, setupoid=_CountingAttr(counter=334, _default=None, repr=<function obfuscate_id at 0x14d5940af280>, eq=True, order=True, hash=None, init=True, on_setattr=None, metadata={}), owner_key=25ea667a-****-4a7a-b****-0920a2035811, type=1, sub_type=1, time_to_next_state=-1, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, place_oid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id='011d7026-d9b6-8679-0f87-558f4618b2fc', device_url=None, device_states=[], old_state=<ExecutionState.IN_PROGRESS: 'IN_PROGRESS'>, new_state=<ExecutionState.COMPLETED: 'COMPLETED'>)
2021-12-28 13:56:57 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.236 seconds (success: True)
2021-12-28 13:57:27 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.183 seconds (success: True)
2021-12-28 13:57:57 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.159 seconds (success: True)
2021-12-28 13:58:27 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.174 seconds (success: True)

On first line, we can see that
State(name='io:OperatingModeCapabilitiesState', type=<DataType.JSON_OBJECT: 11>, value='{"relaunch": 1,"absence": 1,"rateManagement": 0,"energyDemandStatus": 1}')
energyDemandStatus is on but the associated binary_sensor stays off

I'm not sure, but I think the previous on state was "true" instead of 1. Maybe this is the problem

Hope this helps

EDIT: sorry for the bad formatting (Thanks iMicknl)

@iMicknl
Copy link
Owner

iMicknl commented Jan 7, 2022

@jncanches did this work before? Or has this never worked? I don't see why this could be broken, besides that it has never worked via our update coordinator. Could it be that it only worked after a reboot?

@jncanches
Copy link
Author

Hi,

It definitively worked after this issue was fixed ( #568 ).
I don't know exactly when it became broken. Maybe my cozytouch box has been updated, or maybe it was this integration (or maybe both !)

By the way, with all in last version, it is not working anymore.

Don't hesitate if I can help resolving this

Thank you

@jncanches
Copy link
Author

Any news on this ?

@github-actions
Copy link

'There hasn't been any activity on this issue recently. Is this issue still present?
Please make sure to update to the latest Home Assistant version and version of this integration to see if that solves the issue. Let us know if that works for you by adding a comment 👍.
This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.'

@jncanches
Copy link
Author

To answer GitHub actions : Still not working here

@iMicknl
Copy link
Owner

iMicknl commented Feb 20, 2022

@jncanches can you try the Overkiz integration in core. Is it fixed there? We are still in the phase to backport all changes from there.

@jncanches
Copy link
Author

@iMicknl I have tried integrated Overkiz integration, but, sadly, my water_heater entity is not created anymore using it.
Are water_heaters available in official integration ?

@iMicknl
Copy link
Owner

iMicknl commented Feb 22, 2022

@jncanches see #697. However, I was wondering if the core integration fixes the issue around io:OperatingModeCapabilitiesState.

If you use the latest master of ha-tahoma, you should have most of our core implementation and still your water heaters. We are working on merging everything back.

@jncanches
Copy link
Author

The binary sensor based on energy_demand was not updating neither.
Very interesting link. I can see water heater will be available in 2022.4. Since it is the only device I need, I will have to wait.
Thanks for your help

@iMicknl
Copy link
Owner

iMicknl commented Feb 22, 2022

@jncanches so if I understand you correctly, your binary sensor is still not updating? Can you add a screenshot of your state in the official app, and add your diagnostics info here. (click on the dots next to your entry on the integrations page and download diagnostics).

@jncanches
Copy link
Author

Ok, my bad. I have now history changes in the binary sensor demand_status ! (Don't know since when).
I think this issue can be closed. Sorry for that and thank you !

Last thing I saw: I think there is a misleading between two sensors.
The sensor V40WaterVolumeEstimationState contains the total of water since the begining of the water heater instead of the remaining estimation of 40°C water.
The sensor WaterConsumptionState is always unknown instead of the total of water since the begining of the water heater.

May I open a new issue for that ?

@iMicknl
Copy link
Owner

iMicknl commented Feb 23, 2022

May I open a new issue for that ?

Yes, that's fine! 👍🏻

@iMicknl iMicknl closed this as completed Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants