Hi all,
Some of you may have seen my previous project I started for Home Asisstant: Hass NFC.
I recently got contacted by ralfaro asking if I could make an app that worked the other way around. An app that would make it possible to be controlled by Home Assistant, instead of controlling Home Assistant with your phone.
The use-case was to be able to enable/disable/toggle your Wi-Fi and/or Bluetooth and many other features via Home Assistant. Imagine you would like to enable Bluetooth when you get home so you can track your position indoor, and disable it when you’re not home so you can’t be tracked by others. This example might not be interesting for most, but you can decide what you do with it. Right now you can use the following features:
- Enable/disable/toggle Wi-Fi
- Enable/disable/toggle Bluetooth
- Control screen brightness
Sending one of these commands to your device is fairly easy. You can call the notify service with data like this:
- action:
- data:
message: random
data:
actions:
- action: disable-wifi
- action: enable-bluetooth
- action: set-brightness(50)
service: notify.hasscontrol
This is just a snippet of the automation you should create. You can use it in any kind of automation. Think of zone automations, or anything else Home Assistant can trigger.
Right now it’s just a proof of concept app, and it requires some configuration on the end of the user. You have to create an account at Google Firebase (to get a key to send Push Notifications with), and have to create a Long Lived Token for in the app. The positive thing is that your Home Assistant doesn’t have to be exposed to the outside world though. So this might be a bit difficult for some users.
Right now this topic is meant to gather some interest in it. Right now only me and ralfaro are using it. We both think it works great, and maybe other people are interested in this as well. If you would like to help test let me know. I could give you a free key for testing (the idea is to charger .99 cents if the app is released).
Let me know what you think about it!