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
73.67k stars 30.8k forks source link

Light turns on again by itself #128143

Open dominikruffing opened 1 month ago

dominikruffing commented 1 month ago

The problem

An automation switches on a light for me at sunset, which is integrated via Hue. The light should be turned off at 11 p.m. Since a radio signal can sometimes be lost, I created a loop that tries to turn off the light until it is off. This also works, but as you can see in the picture, the light suddenly turns on again after about 1 minute. But through what? Screenshot 2024-10-11 103418

What version of Home Assistant Core has the issue?

core-2024.10.1

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

Philips Hue

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

alias: Fassadenbeleuchtung
description: ""
triggers:
  - event: sunset
    offset: "00:15:00"
    id: Sonnenuntergang
    trigger: sun
  - at: "23:00:00"
    id: Ausschalten
    trigger: time
conditions: []
actions:
  - alias: Licht einschalten
    if:
      - condition: trigger
        id:
          - Sonnenuntergang
    then:
      - action: light.turn_on
        metadata: {}
        data: {}
        target:
          device_id:
            - a1d0bf86adaa1bb55f6793b73620cde2
      - action: light.turn_on
        metadata: {}
        data:
          rgb_color:
            - 251
            - 0
            - 255
          brightness_pct: 100
        target:
          device_id: 772a7a4c0be2f5d468d7de2561991a6e
  - alias: Licht ausschalten
    if:
      - condition: and
        conditions:
          - condition: trigger
            id:
              - Ausschalten
    then:
      - action: light.turn_off
        metadata: {}
        data: {}
        target:
          device_id:
            - 772a7a4c0be2f5d468d7de2561991a6e
      - repeat:
          while:
            - condition: state
              entity_id: light.dimmable_light_1
              state: "on"
          sequence:
            - delay: "00:00:01"
            - action: light.turn_off
              data: {}
              target:
                entity_id: light.dimmable_light_1
mode: single

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 month ago

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

Code owner commands Code owners of `hue` 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 hue` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


hue documentation hue source (message by IssueLinks)

EF01 commented 1 month ago

Same issue.

cgilis commented 3 weeks ago

CleanShot 2024-10-21 at 09 52 20@2x Same here in the middle of the night.. strange

Diagnostics here: config_entry-hue-8585045bab121883caa2f9d1a4ca3341.json

tomas123 commented 3 weeks ago

same issue In my case the lamps are not switched by a home assistant script. The sunset timing is controlled by the hue bridge. After I have integrated the Hue bridge into HomeAssistant, the lamp sometimes switched on again a minute later (about once a week) hue