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.38k stars 30.64k forks source link

Pro 4PM - events fired causing lights on the Pro 4PM to turn on #124806

Closed ronvl closed 1 month ago

ronvl commented 2 months ago

The problem

On the Pro 4PM 2 lights are configured. A hallway light on output 0 and a outdoor light on output 1. There is an automation that turns the outdoor light on/off.

When the automation triggers to turn the outdoor light off sometimes (>50%) events are triggered for the hallway light and turns it on. image

Both lights are configured as Momentary as there are buttons to turn lights on/off

Pro 4PM has been reset, integration removed and added again several times, naming has been changed.

What version of Home Assistant Core has the issue?

2024.8.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Shelly

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

alias: Outdoor Light Off
description: "Time patern is just for test purposes"
trigger:
  - platform: numeric_state
    entity_id: sun.sun
    value_template: "{{ state.attributes.elevation }}"
    above: 2
  - platform: time_pattern
    minutes: "30"
  - platform: time_pattern
    minutes: "59"
condition: []
action:
  - action: switch.turn_off
    metadata: {}
    data: {}
    target:
      entity_id:
        - switch.frontdoor_light
        - switch.workshop_outside
  - data: {}
    target:
      entity_id:
        - light.pergola
        - light.outdoor_kitchen
        - light.garden_light
    action: light.turn_off
mode: single

Anything in the logs that might be useful for us?

Shelly 'single_push' click event for hallway_dg_light Input was fired
4:30:00 PM - 2 hours ago
hallway_dg_light detected an event
4:30:00 PM - 2 hours ago
Shelly 'btn_up' click event for hallway_dg_light Input was fired
4:30:00 PM - 2 hours ago
hallway_dg_light detected an event
4:30:00 PM - 2 hours ago
Upstairs Hallway Light turned on
4:30:00 PM - 2 hours ago
Shelly 'btn_down' click event for hallway_dg_light Input was fired
4:30:00 PM - 2 hours ago
hallway_dg_light detected an event
4:30:00 PM - 2 hours ago
Frontdoor Light turned off triggered by automation Outdoor Light Off triggered by time pattern
4:30:00 PM - 2 hours ago

Additional information

image

image

home-assistant[bot] commented 2 months ago

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

Code owner commands Code owners of `shelly` 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 shelly` 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)


shelly documentation shelly source (message by IssueLinks)

thecode commented 2 months ago

This is most likely an hardware issue, probably wires too close and create noise that trigger the 2nd output.

Please enable Debug for Shelly integration, wait for this to happen, disable debug and attach the log with the exact time it happen.

Note: it is better to drag the log into the comment (which will add it as an attachment) and not copy paste as it is hard to read logs in GitHub.

Thanks

ronvl commented 2 months ago

Thanks I will review the wiring again and move the light on output(1) to output(3) as well.... just to exclude this interference. I do have this issue for over a year now and have been trouble shooting since...

Keep you posted here

ronvl commented 1 month ago

Was on a short break but after the rewirring it still happens every day so will pull a log later this week

issue-triage-workflows[bot] commented 1 month 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.