Hi
I was using ping to detect if a PIR light came on with a smart bulb, ie pinging the bulb address and if it was activated using the ping reply to set other things in HA
But ping has been removed, so another solution had. to be found.
I use a lot of Shelly 1 switches, which have an addition switch contact.
I found putting the switch in to momentary contact mode and toggling it .
Watching in the device section , controls, I could see the switch status change as the momentary contact was made.
The Shelly mini switches are small , using one of them
thy make a very good sensor and also mean manual control of the PIR lamp , which is outside the front door.
Connect the L & N as normal, and the SW input is taken from the LIVE feed to the bulb.( the one thats switched by the PIR unit)
When the PIR is activated the Shelly 1 is activated and HA now has a sensor input to do as you wish.
Wht do you mean by “ping has been removed” ? As of today, it’s still very present in HA. https://www.home-assistant.io/integrations/ping/
But, to be honest, you have very “strange” way of doing things… wifi devices should be on all the time… that’s the point. I would get an IR smart bulb (or make smart IR sensor by myself) and you have status monitor.
If I understood correctly, you have a light that has a motion sensor that can turn the light on or off based on motion. Why then would you cut power to that light? The whole point of having a sensor tied to a light to turn it on and off sort of requires that it has power for it to do its job.
The Shelly unit is powered up all the time .
I dont think anyone is making IR smart bulbs, not many mammals can see IR, cats can see UV to some extent…
and 2024.9.1 shows depreciation on ping, Albeit some of the log warning messages are a bit strange, like saying to remove something , which breaks it.
You only need to remove your ping config from configuration.yaml, since now it’s integrated into “devices”, that’s all. Ping stays.
And…i totally don’t understand you now. First you say about pinging, now you say that device is constantly on. Why ping then? You only ping a device if you monitor if it’s online (power on) or not (power off)…
And what’s the connection between cats, dogs, IR, UV and this case? You said PIR - that’s not IR light, but Passive InfraRed sensor… and i don’t even know where UV comes in…
There’s no need for bad language. YOU need help, not us… so please be nice. And explain in a way that we’ll understand.
I HAVE NOT USED ANY BAD LANGUAGE
I suggest you read what I posted.
The power to the device is permanently on , so the device stays connected on wifi to HA., the device is either switched using to SW connection connected to the LIVE side of the bulb.
Any change in the state of the shelly is reported very quickly
BIG advantage over using ping where the state is only reported on the next ping,
so if your ping interval is 5 secs, there could be up o 5secs before it could be used to trigger, and you dont need to use a smart bulb Another advantage of doing it this way , is the PIR sense lamp can be turned on remotely, for any duration in time.