Home assistant core integration generic turn off

Hello,

I have a lot of input_booleans to control a coresponding relay. They are called for example input_boolean.relay10.1. The 10 is a module the 1 is the relais on that module. The relais modules are controlled trough serial in node red. I do not use the serial control yet because i’m still in testing mode.
I made automations with input_booleans as well. These boolean’s represent a push button.

All (58) my automations work fine except 2 of them. For some reason, the home assistant core integration turns off that particular input_boolean.relay10_1.

image

Below is the automation. I use 2 input_booleans to turn on a light template witch toggels the relay boolean.

alias: Zijlichten garage
description: ""
trigger:
  - platform: state
    entity_id:
      - input_boolean.push6_4_s
      - input_boolean.push6_8_s
    to: "on"
condition: []
action:
  - delay:
      hours: 0
      minutes: 0
      seconds: 0
      milliseconds: 10
  - service: light.toggle
    data: {}
    target:
      entity_id: light.zijlichtgarage
  - service: input_boolean.turn_off
    data: {}
    targe
      entity_id:
        - input_boolean.push6_4_s
        - input_boolean.push6_8_s
mode: single
type or paste code here

The light template

zijlichtgarage:
        friendly_name: "Zijlichten garage"
        value_template: "{{ is_state('input_boolean.relay10_1', 'on') }}"
        turn_on:
          service: input_boolean.turn_on
          target:
            entity_id: input_boolean.relay10_1
        turn_off:
          service: input_boolean.turn_off
          target:
            entity_id: input_boolean.relay10_1

The input_booleans are all configured the same.
I can’t say it’s because of the latest update because i’ve made my automations a few weeks ago.
I use homeassitant on a PI4 with this version

  • Core2024.5.3
  • Supervisor2024.05.1
  • Operating System12.3
  • Frontend20240501.1

I found several other posts about this problem but no solution to it.
https://community.home-assistant.io/t/home-assistant-repeatedly-turning-boiler-switch-on-and-off/647421
https://community.home-assistant.io/t/boolean-helper-turning-off-by-itself/656454
https://community.home-assistant.io/t/all-lights-got-switched-on-by-hacore/687006

I have no idea where to look to solve this.

This should say target:

1 Like

Indeed, i think it’s a copy paste fault. Automation is made with the visual editor.
Th code was correct.

If i rename the input_boolean relay10_1 to 11_1 it works without a problem. Is this a bug ?

Hi, I found this thread while searching since I have the same problem:
I put one of the LUMI plugs on my freezer to monitor the energy usage, but now I have to throw away all the meat ++ since the freezer has been off for two days…

My device is called “lumi.plug.maeu01.01 Basement Freezer”. It is a “lumi.plug.maeu01 by LUMI”.

The logbook says:
lumi.plug.maeu01.01 Basement Freezer Switch turned off triggered by action Home Assistant Core Integration: Generic turn off
20:49:36 - 2 days ago

I have other zigbee plugs that do not have this problem. So, what is “Generic turn off”?

Edit: Forgot to mention:
Core 2024.11.2
Supervisor 2024.11.2
Operating System 13.2
Frontend 20241106.2

I think my problem could be related to the fact that this plug once was used as a “generic_thermostat”, which was still active in my config, but I though it didn’t matter since I had renamed the plug. The old name was “switch.lumi_lumi_plug_maeu01_switch”. The thermostat had “initial_hvac_mode: “off”” which maybe still controlled the plug?

1 Like

I just setup for the first time a few thermostats last night, the first thermostat was added a few weeks back trough the UI, but the other ones couldn’t be added as there was no climate entity for each room, I had to manual add the thermostats trough yaml, also I had to create some virtual switches to reverse the action of the thermostat because I use Normally Open electro valves in my underfloor heating.
Last night when I left the apartment, I only left 3 circuits open, 2 of them don’t have thermostats , the bathroom was set to 22degC and all the other rooms to 16 - 18 degC.

Now when I wake up I found all the rooms temperature was ~21 deg … I don’t understand why as I didn’t setup an automation yet.

Bellow is the last action in the logbook of a few reversed switches that have or no a thermostat linked, the code I have for each thermostat ca be seen in this post How to create multiple climate entities to use with multiple thermostat cards?


#bathroom reversed switch - this has a thermostat, was changed automaticlly by HA last night
turned on triggered by action Home Assistant Core Integration: Generic turn on
11:55:39 PM - 10 hours ago

#entrance reversed switch - this switch doesn't have any thermostat set, soo it wasn't changed automatically last night
turned on
11:55:39 PM - 10 hours ago

#gallery reversed switch - this does not have a thermostat, it wasn't changed automatically by HA
turned on
11:55:39 PM - 10 hours ago

#kitchen reversed switch - now it gets even more weird, this has a thermostat configured in yaml, and it wasn't changed automatically by HA last night
turned off triggered by action Climate: Set target temperature
9:03:26 PM - 13 hours ago - by me

#reversed lounge switch - has a thermostat, last action made by me
turned off triggered by action Climate: Set target temperature
10:51:23 PM - 11 hours ago - by me

#reversed lounge2 switch - has a thermostat, last action made by HA!!
turned off triggered by action Home Assistant Core Integration: Generic turn off
10:49:06 PM - 11 hours ago

#room1 reversed switch - turn on automatically by HA last night!!
turned on triggered by action Home Assistant Core Integration: Generic turn on
11:55:39 PM - 10 hours ago

#room2 reversed switch - this is linked to the first thermostat added trough UI, and it wasn't changed automatically last night, last action made by me
turned off triggered by action Climate: Set target temperature
8:22:44 PM - 14 hours ago - by me

When I left the Home assistant core was updating, it took a while, more than 30 minutes so I didn’t wait for it to see it finish …

So, WTH just happen ? Why HA switched off some of the reversed switches ??? Is it a default state that got applied when HA had finally finish it’s update ?

Try turning off “hunches” in the Alexa app.