home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.67k stars 30.42k forks source link

Zigbee Lightbulb (ZHA): Transition from OFF to ON not working ? #90028

Closed ChristophCaina closed 1 year ago

ChristophCaina commented 1 year ago

The problem

Hi :) I've created some automations recently - which should turn OFF and ON a specific light. This light is an Zigbee dimmable Lightbulb. Manufacturer: AwoX

I've noticed, that the transition from ON to OFF is just working fine, but the transition from OFF to ON seems not to work.

Now, I am not sure, if I made a mistake on the automation - or, if the device does not support the transition to ON - or, if this is an issue with zigpy at all?

What version of Home Assistant Core has the issue?

2023.03.05

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

ZHA

Link to integration documentation on our website

https://www.home-assistant.io/integrations/zha/

Diagnostics information

zha-c4b8635ee52ce7e7eebcdac6d44af482-AwoX TLSR82xx-3c38d25ea6928a893b2b59e86ae3b11c.json.txt

Example YAML snippet

transition from ON to OFF (working)

alias: turn off the light when Media is playing
description: ""
trigger:
  - platform: state
    entity_id:
      - media_player.mymediaplayer
    to: playing
condition: []
action:
  - service: light.turn_off
    data:
      transition: 5
    target:
      entity_id:
        - light.lightbulb_zha_1
        - light.dimmable_light_2
mode: single

transition from OFF to ON (not working)

alias: turn on lightbulb_zha_1
description: ""
trigger:
  - platform: state
    entity_id:
      - media_player.mymediaplayer
    to: paused
condition: []
action:
  - service: light.turn_on
    data:
      color_temp: 323
      brightness_pct: 50
      transition: 20
    target:
      entity_id: light.lightbulb_zha_1
mode: single

Anything in the logs that might be useful for us?

Logger: homeassistant.components.automation.schalte_stehlampe_wohnzimmer_ein_wenn_film_pausiert
Source: components/automation/__init__.py:566
Integration: automation (documentation, issues)
First occurred: March 20, 2023 at 10:24:40 PM (1 occurrences)
Last logged: March 20, 2023 at 10:24:40 PM

Error while executing automation automation.schalte_stehlampe_wohnzimmer_ein_wenn_film_pausiert: two or more values in the same group of exclusion 'brightness' @ data[<brightness>]

Logger: homeassistant.components.automation.schalte_stehlampe_wohnzimmer_ein_wenn_film_pausiert
Source: helpers/script.py:409
Integration: automation (documentation, issues)
First occurred: March 20, 2023 at 10:24:40 PM (1 occurrences)
Last logged: March 20, 2023 at 10:24:40 PM

Schalte Stehlampe Wohnzimmer ein wenn Film pausiert: Error executing script. Invalid data for call_service at pos 1: two or more values in the same group of exclusion 'brightness' @ data[<brightness>]

Additional information

No response

home-assistant[bot] commented 1 year ago

Hey there @dmulcahey, @adminiuga, @puddly, mind taking a look at this issue as it has been labeled with an integration (zha) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `zha` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign zha` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


zha documentation zha source (message by IssueLinks)

jembamen commented 1 year ago

I'm having the same issue with a Samotech Zigbee dimmer switch. Toggling the switch on does nothing, it only comes on once you update the brightness level after switching it on.

issue-triage-workflows[bot] commented 1 year ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.