hassio-addons / addon-appdaemon

AppDaemon4 - Home Assistant Community Add-ons
https://addons.community
MIT License
151 stars 47 forks source link

No light transition since december #238

Closed PolestarWx closed 1 year ago

PolestarWx commented 1 year ago

Problem/Motivation

HA transition from web UI works well, but no transition from appdemaon, trying to reverting back to appdeamon 9.3 does not help, maybe a change in the HA API ?

The problem is present in 9.3, 10.1 and 11 version from my test

Expected behavior

Transition to work

Actual behavior

I use deconz and zigbee light, HA transition from UI works as expected but from appdemon, the parameter "transition" in turn_on command is not taken into account. Worked well back in november 2022.

Steps to reproduce

(How can someone else make/see it happen)

Proposed changes

(If you have a proposed change, workaround or fix, describe the rationale behind it)

Debug log

2023-03-12 14:41:30.772915 DEBUG living_room: call_service: homeassistant/turn_on, {'transition': 30, 'entity_id': 'light.light_13_hue_e27_filament'}
2023-03-12 14:41:30.773054 DEBUG AppDaemon: call_service: namespace=default domain=homeassistant service=turn_on data={'transition': 30, 'entity_id': 'light.light_13_hue_e27_filament', '__name': 'living_room'}
2023-03-12 14:41:30.773171 DEBUG AppDaemon: thread_async loop, args={'function': <bound method Events.process_event of <appdaemon.events.Events object at 0x7f073baa35e0>>, 'args': ('admin', {'event_type': '__AD_LOG_EVENT', 'data': {'level': 'INFO', 'app_name': 'living_room', 'message': 'Previous message repeated 47 times', 'type': 'log', 'log_type': 'main_log', 'asctime': '2023-03-12 14:41:30.772813', 'ts': datetime.datetime(2023, 3, 12, 14, 41, 30, 772732), 'formatted_message': '2023-03-12 14:41:30.772813 INFO living_room: Previous message repeated 47 times'}}), 'kwargs': {}}
2023-03-12 14:41:30.773258 DEBUG HASS: call_plugin_service() namespace=default domain=homeassistant service=turn_on data={'transition': 30, 'entity_id': 'light.light_13_hue_e27_filament'}
2023-03-12 14:41:30.773900 DEBUG AppDaemon: Future removed from registry <Task finished name='Task-888' coro=<ADAPI.call_service() done, defined at /usr/lib/python3.10/site-packages/appdaemon/adapi.py:1677> result=None>
PolestarWx commented 1 year ago

Issue that seems more related to home assistant API ? Issue 86646 Hassio core

PolestarWx commented 1 year ago

This is not related to appdeamon as the problem appear in the UI too if light is off and transition is set without any other argument like brighness_pct, if target brighness argument is set transition works. turn_off transition does not work however