Light control via security system

(I am new so I am sorry if I am somehow missing a step that is right in front of me)

Hello, I am working on a project in HA Involving my security system and a Govee H612F. Here is the breakdown of what i am trying to accomplish:

I would like the Govee light strip to stay on a custom DIY Configuration i made in the app but would like the color to change to a Solid Color during an alarm condition on the panel itself.
The goal is for the light to change depending on the event, Blue/Red for security, The Govee integrated “Fire” Pattern on fire alarm, White on CO and Green for medical

I have tried making an automation in HA where the Panel bell output is the trigger and the response is the H612F turning blue/red. It does work however when the bell shuts off the light will simply turn off and not return back to its DIY Setting. I tried to fix this issue by creating another automation instance where when the bell is off it’ll automatically go back to the DIY Setting however the 2 seemingly conflict with each other. If the Light-On Automation only is enabled the light turns on but does not return back to its original config, if both automations are enabled the DIY configuration stays on by default but upon an alarm the light will simply turn off.
The lights were originally programmed as a “Toggle” but would stay stuck on to 1 color regardless of the bell output state, After changing it to “Light On” the light does turn on or off but does not return to the DIY State.

The Govee communicates using the Govee2MQTT Add-on and the panel communicates using the Bosch Alarm Add-on (I am using a B8512G with 2 Octo-Output modules as well as the 3 Onboard outputs)

Any input is appreciated!

Is there anything special about the fact that you are using a light strip (this particular light strip) or would you have the same problem if you were just using a standard Zigbee, Bluetooth or WIFI color bulb?

I built a custom desk system which houses the 2 keypads and the led strip is for ambient lighting. I plan to acquire a WiFi bulb though but not sure which brand yet.

If you had normal light bulbs, I would suggest that:

  • When one of the alarm activates.
  • You “capture” the current state of the light into a scene.
  • Then change the light to the color you want to show the alert.

Hence the capture step, would look something like this:

  - action: scene.create
    data:
      scene_id: color_before
      snapshot_entities:
        - light.strip

Where color_before is a unique name you use for this condition.

After the alarm condition clears you no longer directly turn off the light.
Instead you activate the captured scene:

  - action: scene.turn_on
    target:
      entity_id: scene.color_before

If the light was on, when the capture was taken the scene will capture the full state (color, brightness, etc).

If the light was off when captured, the scene will simply store that the light was off.

Hence after activating the scene the previous state will be restored.

1 Like

Sorry for the delay in response as I am quite busy

I will implement these! I had just gotten another light strip of the same model for a different area and have bought some Zigbee bulbs.

I will reply to this thread again once It is done and provide feedback.