I’m wrecking my brains for the parameters that would make this automation possible.
I have an ezviz camera on the outside of my campervan that I’m looking to put into sleep mode when I start driving somewhere, so I don’t have to remember to do it!
Just to stop it trying to track human movement while I’m driving around.
HA talks to my Victron electrical system via MQTT so thought of using the DC ‘negative’ draw value (that my dc-dc charger would contribute) but trying to isolate that from solar voltage and any other load there may be at the time would be a pain. I guess I could do some math if I went down that road (pardon the pun) but hoping for a simpler solution.
I also thought that maybe there is a way to set ‘home’ dynamically, i.e. somewhere for a determined period of time, and then detect of I’ve moved away from ‘home’.
I feel like there is a location/gps based solution but I don’t know my way around HA enough yet to realise it.
i don’t fully get what the conditions are that you’ve got to play with, however take a look at the attributes of device_tracker… you should have a device_tracker entity for your phone, and if you install homeassistant on that ipad, and you leave it in your campervan, it should have one as well that you can use.
one of the attributes is speed. so you could use speed to determine that you’re driving.
it also has longitude and lattitude, so you could use that to see if your phone and the ipad are nearby each other. combined with speed, that might be good enough to say you are driving the van?
If it were me I would probably want the cameras recording or active the minute I parked up, so would not want to use gps or speed type entities.
I would probably use an ESP device or something similar and wire it straight to the vans ignition feed as use that as a simple on/off sensor within HA.
I wonder if not wether you have any ignition feeds wired to any of your victron equipment (as I know many do have ignition inputs) and if so is this input readable via MQTT?
thanks armedad. Yes, the ipad is permanently fixed in the van and is running an HA dashboard. I can see the tracker attributes in the ‘developer tools/states’ list for my phone and the ipad. I just don’t know how to use them to achieve my goal!
I would ask for guidance but I am favouring rossk’s simple solution at the moment