# Aviso de luz encendida - 'Light on' warning

**URL:** <https://discourse.nodered.org/t/aviso-de-luz-encendida-light-on-warning/30671>\
**Category:** General\
**Created:** [24 July 2020 22:19 UTC](https://discourse.nodered.org/t/aviso-de-luz-encendida-light-on-warning/30671 "2020-07-24T22:19:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luckyluck7777](https://avatars.discourse-cdn.com/v4/letter/l/f08c70/32.png) [@Luckyluck7777](https://discourse.nodered.org/u/Luckyluck7777)\
**Post date:** [24 July 2020 22:19 UTC](https://discourse.nodered.org/t/aviso-de-luz-encendida-light-on-warning/30671/1 "2020-07-24T22:19:06Z")

</div>

Hola, soy nuevo por aquí...

Quiero hacer un flow en que me avise de si me dejó una luz encendida más de 3min estando de día.  
Tengo un sensor que me dice si está de día o está de noche, binary\_sensor.luminosidad  
Y una serie de switch para controlar las luces, por ejemplo:  
Switch.luz\_sala  
Switch.luz\_pasillo  
Switch.luz\_cocina

Todos empiezan igual hasta el "\_".  
He probado un montón de cosas, y puedo hacerlo con una luz, poniendo 5 nodos, pero quisiera hacerlo más automático y no tener que hacer un flow gigantesco con 20 líneas de 5 nodos, todo repetido.  
Otra cosa utilizo el node red de home assistant

Se agradece cualquier tipo de ayuda...

EDIT BY MODERATOR  
English translation

Hi, I'm new around here...

I want to make a flow in which it warns me if it left a light on for more than 3min during the day.  
I have a sensor that tells me if it is day or night, binary\_sensor.brightness  
And a series of switches to control the lights, for example:  
Switch.light\_sala  
Switch.light\_pasillo  
Switch.light\_kitchen

They all start the same up to "\_".  
I have tried a lot of things, and I can do it with a light, putting 5 nodes, but I would like to make it more automatic and not have to do a gigantic flow with 20 lines of 5 nodes, all repeated.  
Another thing I use the home assistant node red

Any kind of help is appreciated ..

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [24 July 2020 22:40 UTC](https://discourse.nodered.org/t/aviso-de-luz-encendida-light-on-warning/30671/2 "2020-07-24T22:40:31Z")

</div>

@Luckyluck7777  
Hi Victor, welcome to the forum.  
I've translated your post above, but you are more likely to get support if you use English language in the forum.  
Google translate is very good!

---

<div class="post-metadata">

**Author:** ![Luckyluck7777](https://avatars.discourse-cdn.com/v4/letter/l/f08c70/32.png) [@Luckyluck7777](https://discourse.nodered.org/u/Luckyluck7777)\
**Post date:** [24 July 2020 22:52 UTC](https://discourse.nodered.org/t/aviso-de-luz-encendida-light-on-warning/30671/3 "2020-07-24T22:52:08Z")

</div>

ok, thank you very much, I'll be in the next post

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [22 September 2020 22:52 UTC](https://discourse.nodered.org/t/aviso-de-luz-encendida-light-on-warning/30671/4 "2020-09-22T22:52:16Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
