I’m creating a doorbell using some raspberry pi zero’s. I trying to get started with home assist but I find it hard to get the right info. I’m at the point where I can make the raspberry subscribe to a switch using mqtt and act accordingly, but I’m looking for something custom.
There is one raspberry sensing a motion and then publishing its state (on/off) to some topic.
There are multiple clients (raspberry with speaker that can play a sound) that should subscribe to this topic and read the state (on/off).
Additionally I want per client a mute button and a volume button. There should also be a mute button to mute all clients simulteneously.
So I’m not asking for somebody to write me code, I’m asking if someone could translate this story into some steps that I have to take so I can read the appropriate documentation.
Thanks a lot, I got the sensor working and also the volume. I’m having trouble with the automation. If I force it, it does the job, however it doesn’t trigger on the binary sensor state. Where am I making the mistake?
I don’t see a reason why your automation shouldn’t work.
Please check the history graph to see if the sensor changed state.
You could also use developer tools to see what its current state is.
Maybe the on state only lasts for a very short time. I guess you could add for: "00:00:02" to your off trigger to make it last longer.