In practice, it actually works great, every time! It’s a little “hacky”, but it works. What I did find, is the ability to send a specific HTTP POST/GET command, and control the screen state that way. So I wasn’t able to find a way to cleanly do this through the REST API, though I haven’t dug too far into it either. Which was great to detecting if the battery was getting low, or to verify if the screen was actually on (or not).īut I really wanted to be able to turn the screen on or off, from HA, and more importantly, from automations! So now I have 2 sensors in HA, one for the state of the screen, and another for the battery level. Seems a little bloated if you ask me, but it’s possible! You could do this for any of the sensor values listed above, which could give each attribute it’s own sensor. Here’s what the REST sensor looks like (sensors.yaml): - platform: rest So at the end of the day, you’ve got a sensor named, ‘foo’ with a value of ‘on’ (or off depending on screen state), but this sensor has a large list of attributes, that you can use elsewhere. Then using the json_attributes list I’ve pulled in the rest of the values, and stored them as attributes to the original sensor. What I’ve done is, create a single rest sensor, with the name of the device, and the value of “isScreenOn”. The sensors are polled into HA via the REST API (documented on the website). Which works great for not-home, or asleep automations. I’ve also setup the ability to turn the screen on/off from HA. You’ll also need to enable the “Remote Admin” in settings, which enables the device info, screen-switch (below), and REST interface.įor instance, here’s a list of some of the sensors that I monitor, and pull into HA:īatterylevel, kioskmode, screenbrightness, motiondetectorstate, maintenancemode, appfreememory, appusedmemory, totalfreememory, totalusedmemory, hostname4, ip4, mac, locationlatitude, locationlongitude, locationaltitude, starturl, currentpage. Note, in order for the below to work, you’ll need a (Plus) license for Fully, which is a few bux at the time of this writing. I experimented with this a bit, but had some erratic behavior. The Fully browser is also capable of reporting motion via the camera, or gyroscope. So, besides installing Fully on an Android device, setting the start URL to your HA URL, and putting it in kiosk mode, it also has a plethora of sensors, and even switches you can control from HA. But I haven’t come across a write up describing what else you can do with Fully, so I thought I’d share that here. First of all, I know a lot of people have been using the Fully Kiosk Browser on Android for displaying HA, or Floorplan, which works great (I use it myself).
0 Comments
Leave a Reply. |