controllerx: [BUG] Smooth Power On causing issues
Tried to activate smooth_power_on feature but it seems not working (after press and hold dim up button I expect the lights to turn on). Lights do nothing and logs below appear.
Other functions are working.
AppDaemon: 4 hass-core: 0.105.2 Device: Ikea Control E1810 and E1743 Integration: zha Logs (if applicable):
2020-02-07 22:34:54.185691 WARNING hall_controller: ------------------------------------------------------------
2020-02-07 22:34:54.187746 WARNING hall_controller: Unexpected error in worker for App hall_controller:
2020-02-07 22:34:54.189194 WARNING hall_controller: Worker Ags: {'id': '70a0b38623c543cc979ebc08af76b188', 'name': 'hall_controller', 'objectid': 'b503df8f82424d5aaddb12c918204000', 'type': 'event', 'event': 'zha_event', 'function': <bound method ZHAIntegration.callback of <core.integration.zha.ZHAIntegration object at 0x74f673a0>>, 'data': {'unique_id': '14:b4:57:ff:fe:7b:8b:f2:1:0x0008', 'device_ieee': '14:b4:57:ff:fe:7b:8b:f2', 'endpoint_id': 1, 'cluster_id': 8, 'command': 'move_with_on_off', 'args': [0, 83]}, 'pin_app': True, 'pin_thread': 3, 'kwargs': {'device_ieee': '14:b4:57:ff:fe:7b:8b:f2', '__thread_id': 'MainThread'}}
2020-02-07 22:34:54.190399 WARNING hall_controller: ------------------------------------------------------------
2020-02-07 22:34:54.193131 WARNING hall_controller: Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/appdaemon/threading.py", line 725, in async_worker
await funcref(args["event"], data, args["kwargs"])
File "/config/appdaemon/apps/controllerx/apps/controllerx/core/integration/zha.py", line 22, in callback
await self.controller.handle_action(action)
File "/config/appdaemon/apps/controllerx/apps/controllerx/core/controller.py", line 108, in handle_action
await action(*args)
File "/config/appdaemon/apps/controllerx/apps/controllerx/core/controller.py", line 28, in _action_impl
await method(self, *args, **kwargs)
File "/config/appdaemon/apps/controllerx/apps/controllerx/core/type/light_controller.py", line 318, in hold
await super().hold(attribute, direction)
File "/config/appdaemon/apps/controllerx/apps/controllerx/core/controller.py", line 28, in _action_impl
await method(self, *args, **kwargs)
File "/config/appdaemon/apps/controllerx/apps/controllerx/core/controller.py", line 179, in hold
stop = await self.hold_loop(*args)
File "/config/appdaemon/apps/controllerx/apps/controllerx/core/type/light_controller.py", line 321, in hold_loop
return await self.change_light_state(
File "/config/appdaemon/apps/controllerx/apps/controllerx/core/type/light_controller.py", line 348, in change_light_state
new_state_attribute, exceeded = stepper.step(old, direction)
File "/config/appdaemon/apps/controllerx/apps/controllerx/core/stepper/minmax_stepper.py", line 21, in step
new_value = value + sign * step
TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'
2020-02-07 22:34:54.194219 WARNING hall_controller: ------------------------------------------------------------
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 24 (20 by maintainers)
Commits related to this issue
- fix #27 and #24 — committed to xaviml/controllerx by xaviml 4 years ago
Your very welcome, Xavi 😊
Just had a quick check. All my lights both Ikea- and Hue bulbs (and Hue light groups as well) have no brigtness attribute set when turned off. So it’s the bridge that doesn’t send all attributes when light are off. Quite a pity, as I’m not able to set brightness on my Ikea bulbs when they’re turned off… I’ll probably have to reconsider my setup with all lights on the Hue bridge and all other zigbee sensors etc. on z2m. But then again, one major obstacle is the WAF (Wife Acceptance Factor) 👩👩😁😁😁
Looking forward to test, when you have new code ready, Xavi 👍
Holy crap, you’re quick Xavi 🚀🚀😁
Tested new beta fw and ‘smooth power on’ works perfect in my setup now.
All in all perfect behaviour in my setup - Nice job, Xavi 😎👍
I will post my results as soon I get back home.
My lights and controllers are all paired to HA via ZHA integration.