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

[BUG] ZNXNKG02LMLightController does not work rotation brightness adjustments #872

Open
D1monUA opened this issue Oct 20, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@D1monUA
Copy link

D1monUA commented Oct 20, 2023

Bug report

ZNXNKG02LMLightController does not work rotation brightness adjustments

Description

Does not work rotation brightness adjustments, after rotating in logs this information
2023-10-20 15:50:31.919697 INFO example_app: 🏃 Running Predefined (brightness_from_controller_angle) now
2023-10-20 15:50:31.923725 WARNING example_app: No event data present

Single, Double, and Hold actions works good

Additional information

AppDaemon app configuration

/config/appdaemon/appdaemon.yaml
---
secrets: /config/secrets.yaml
appdaemon:
  latitude: 52.379189
  longitude: 4.899431
  elevation: 2
  time_zone: Europe/Amsterdam
  plugins:
    HASS:
      type: hass
    MQTT:
      type: mqtt
      namespace: mqtt # This is important
      client_host: 192.168.88.200
      client_user: mqtt
      client_password: ****
http:
  url: http://127.0.0.1:5050
admin:
api:
hadashboard:```

/config/appdaemon/apps/apps.yaml
---
hello_world:
  module: hello
  class: HelloWorld
example_app:
  module: controllerx
  class: ZNXNKG02LMLightController
  integration: z2m
  controller: sensor.aqara_h1_dimmer_action
  light:
    name: light.kabinet_moes_cct 
    color_mode: color_temp



## Logs

```text
2023-10-20 15:49:54.465759 INFO AppDaemon: Loading app example_app using class ZNXNKG02LMLightController from module controllerx
2023-10-20 15:49:54.467307 INFO AppDaemon: Calling initialize() for hello_world
2023-10-20 15:49:54.523125 INFO hello_world: Hello from AppDaemon
2023-10-20 15:49:54.524139 INFO hello_world: You are now ready to run Apps!
2023-10-20 15:49:54.525078 INFO AppDaemon: Calling initialize() for example_app
2023-10-20 15:49:54.530467 INFO example_app: 🎮 ControllerX v4.26.2
2023-10-20 15:49:54.563216 INFO AppDaemon: App initialization complete
2023-10-20 15:49:56.328694 INFO AppDaemon: New client Admin Client connected
2023-10-20 15:50:07.522705 INFO example_app: 🎮 Button event triggered: `start_rotating`
2023-10-20 15:50:07.526853 INFO example_app: 🏃 Running `Predefined (brightness_from_controller_angle)` now
2023-10-20 15:50:07.530178 WARNING example_app: No event data present
2023-10-20 15:50:07.896708 INFO example_app: 🎮 Button event triggered: `stop_rotating`
2023-10-20 15:50:07.902138 INFO example_app: 🏃 Running `Predefined (release)` now
2023-10-20 15:50:09.739662 INFO example_app: 🎮 Button event triggered: `single`
2023-10-20 15:50:09.743041 INFO example_app: 🏃 Running `Predefined (toggle)` now
2023-10-20 15:50:09.749868 INFO example_app: 
🤖 Service: light.toggle
  - entity_id: light.kabinet_moes_cct
2023-10-20 15:50:13.884420 INFO example_app: 🎮 Button event triggered: `single`
2023-10-20 15:50:13.888500 INFO example_app: 🏃 Running `Predefined (toggle)` now
2023-10-20 15:50:13.895003 INFO example_app: 
🤖 Service: light.toggle
  - entity_id: light.kabinet_moes_cct
2023-10-20 15:50:18.667626 INFO example_app: 🎮 Button event triggered: `hold`
2023-10-20 15:50:18.671616 INFO example_app: 🏃 Running `Predefined (hold_color_toggle)` now
2023-10-20 15:50:18.699020 INFO example_app: 
🤖 Service: light.turn_on
  - entity_id: light.kabinet_moes_cct
  - transition: 0.35
  - color_temp: 459
2023-10-20 15:50:19.057550 INFO example_app: 
🤖 Service: light.turn_on
  - entity_id: light.kabinet_moes_cct
  - transition: 0.35
  - color_temp: 493
2023-10-20 15:50:19.413708 INFO example_app: 
🤖 Service: light.turn_on
  - entity_id: light.kabinet_moes_cct
  - transition: 0.35
  - color_temp: 500
2023-10-20 15:50:21.263896 INFO example_app: 🎮 Button event triggered: `release`
2023-10-20 15:50:21.267359 INFO example_app: 🏃 Running `Predefined (release)` now
2023-10-20 15:50:27.531916 INFO example_app: 🎮 Button event triggered: `start_rotating`
2023-10-20 15:50:27.535838 INFO example_app: 🏃 Running `Predefined (brightness_from_controller_angle)` now
2023-10-20 15:50:27.539676 WARNING example_app: No event data present
2023-10-20 15:50:28.536538 INFO example_app: 🎮 Button event triggered: `stop_rotating`
2023-10-20 15:50:28.540767 INFO example_app: 🏃 Running `Predefined (release)` now
2023-10-20 15:50:31.916215 INFO example_app: 🎮 Button event triggered: `start_rotating`
2023-10-20 15:50:31.919697 INFO example_app: 🏃 Running `Predefined (brightness_from_controller_angle)` now
2023-10-20 15:50:31.923725 WARNING example_app: No event data present
2023-10-20 15:50:32.804253 INFO example_app: 🎮 Button event triggered: `stop_rotating`
2023-10-20 15:50:32.807927 INFO example_app: 🏃 Running `Predefined (release)` now
@D1monUA D1monUA added the bug Something isn't working label Oct 20, 2023
@D1monUA D1monUA changed the title [BUG] [BUG] ZNXNKG02LMLightController does not work rotation brightness adjustments Oct 20, 2023
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