So, i’ve mounted tablet to wall, it has always open home assistant. Screen wakes up when motion is detected - motion detector android software.
Problem is that a TV is in the same room and tablet keeps turning on or off while watching a movie. Is it possible to add a button in home assistant to stop motion detector on a table until it’s turned back on?
That depends on which software you are using on the tablet. If the software has some API that allows you to switch of motion detection via REST or similar, then you can create an automation that does just that when you turn on your TV.
As far as I know there’s only a Tasker-Plugin to publish MQTT messages, not for receiving. You may consider switching to WallPanel, which explicitly has the API to be controlled via REST and MQTT. In the current version though it also does not have the option do deactivate motion detection. But I’m sure the developer could implement that very quickly.
I have two tablets running the WallPanel app, and it’s working good for me. But as stated above, currently you can’t disable motion detection with that as well. I belive you can tweak the sensitivity, so maybe that’s enough for your tablet to ignore the TV.
That’s the only feature that doesn’t work for me currently. But I expect that to be fixed. The app is still early in its development. But yes, using face detection could solve the problem as well.
Yeah in 0.6 the face detect is literally leveraging the code in Android to do face detection and my experience was it was pretty lousy. But the framework is in place to plug in all sorts of handlers. The QR code reader is probably of low use but as a proof of concept, it works a heck of a lot better
Another thought is if the MJPEG feeds well into OpenCV, HASS could handle a lot of things. Depends on if your HASS is better hardware though. But it will probably always be an option you could play with.