I am trying to read data ("178 in the screenshot) from a notification that contains no text, no title but a customView (“android.contains.customView” is true).
Is this possible on Android?
I am trying to read data ("178 in the screenshot) from a notification that contains no text, no title but a customView (“android.contains.customView” is true).
Is this possible on Android?
this sensor will get all the data available https://companion.home-assistant.io/docs/core/sensors#last-notification
then i dont believe the app will be able to get any data, I dont even know if Tasker can but if Tasker can then there is a good chance we can.
I did not try it myself (yet) but on native Android-level I think it is possible to get RemoteViews via reflection. Maybe we can analyze the custom view from there on.
How would I pass data from native Android code to Home Assistant (Companion)?
submit a code change to the app to support the feature you want?
Alright. Maybe something else knows a simpler way of reading notification data from a custom view, otherwise I will follow your lead and try my hand at a pull request. Thanks so far and all the best!