I am glad someone who is smarter than me has managed to get this working, Thank you for sharing your code, im going to give this a try myself when i get home from work.
This feature of being able to send notifications to Android TV is awesome. I think documentation needs improvement as it is missing a few important key aspects including the one that one needs to install ānotificationsā app for Android TV.
This is definitely NOT obvious .
Also, I learned something:
I have Sony Android TV, and it has a Android App store as one of the apps on TV. The selection of the apps there is very limited and I was always surprised that I only have access to a dozen or so TV apps that Sony chose to include into that store. I did not realize that i can just to go a Google Store in my browser and chose a TV app to be installed to my TV from a much bigger selection. When I could not find the āNotificationsā app to be installed on my TV, I went to do research why I canāt see it and immediately found that google can push any app to my TV right from my browser. (It maybe obvious to Android users , but it was NOT to me, as I use Apple TV most of the time. )
Now I will go look to see what other cool apps I maybe missing on my Android TV which are not available in the Google Play store that Sony provides with the TV. Btw, can somebody explain, how Sony limits the apps that I can search for on Android TV itself? Is it possible to unblock the whole store and be able to get any app I want right from the TV itself?
Thank you.
I have a Sony android TV as well and what I did was install ES File Explorer (which is in the TVās Google Play store). Then using your PC you can download the APK file for whatever app you want on the TV and save it to a USB thumb drive. Plug the thumb drive into the TV and use ES File Explorer to open the APK file and install the app. If the app is not designed for landscape mode it will end up sideways, but will still work. It might sound stupid but I used a VPN app which doesnāt work in landscape mode so I just had to deal with setting up the app sideways. Once installed and setup I donāt ever need to open the app again because it auto loads in the background when the TV is turned on.
Iām putting my hair out trying to get this workingā¦ when I test notifications using the services overview they works fine, but I cannot get them to trigger on flipping my switch.
The switch is switch.lamp and my code is as followsā¦
notify:
- platform: nfandroidtv
name: Lounge
host: 192.168.1.88
duration: 2
position: bottom-right
automation: !include automations.yaml
- alias: 'Notify when lamp is on'
trigger:
platform: state
entity_id: switch.lamp
to: 'on'
action:
service: notify.lounge
data:
title: "HASS.io"
message: "Lamp is ON"
Any ideas where Iām going wrong? Any help is much appreciated.
Are you sure itās possible to include the automations.yaml and add automations below at the same time? It would make more sense to place your automation in the automations.yaml file that is being loaded.
And depending on which HASS version you are using it would be easier to use the UI to create the automation instead of doing it manually.
Ahh I didnāt realise there was an automations.yaml I will have a look at using it in there. Thanks.
Hello in the application it is possible to define to remove the notification with the remote control With interaction mode :enabled and display duration:unlimited, my question is :is it possible to do the same on HA, I tried but without success.
Thanks to you