#android-archived
1 messages Β· Page 48 of 1
"as we need to" would require the app checking if the mobile app integration is active, which probably should be done in onboarding (and block continuing, as it also means webhooks etc will fail)
If you're on 2022.6+ and the mobile app integration exists, it should basically always sync because there might be changes made in core
actually what I meant was that we shoud only sync disabled sensor state as a new sensor is added or if the enabled state changes
before 2022.6 the code would only promote the sensorworker to foreground only one or more sensors are enabled
thx, I will research into that
(it does sound like smh that affects battery life thou)
now every 15 min it will promote and sync sensors even if they are all disabled
If you disable everything in the app, it still needs to sync because you might have enabled a sensor on the server
ah that makes sense
Battery life: probably, but also how much considering it already has a connection active for calls etc?
Some manufacturers clearly think it's not that significant, otherwise the option wouldn't exist
with notifications, is it possible to set it so that tapping on the notification does nothing, rather than the default of opening ha?
might be doable, best to create a feature request on github so the team can investigate
kay, will do
Thanks. I asked that same question a month ago but didn't submit a request. π
Updated to 2022.6.0-full. Still not more information from customViews.
In that case I'm afraid there's not really an easy solution for this...
Today I've noticed that the app has used a lot more battery than normal (the app has updated to 2022.6.0-full don't know if that has any bearing).
Checking the battery usage in Android, it looks like the app's background usage was almost 3.5 hours in a 6 hour period (from when the phone was taken off charge this morning), and over 1200 mAh of battery used. The battery level had gone down to 20% by then.
I've not changed anything regarding enabled sensors. The only thing I changed recently was changing the websocket connection to be only open when the screen is on (I previously had it only open when connected to WiFi). Do you have any ideas what could be causing this?
the persistent connection could indeed lead to more battery drain in the backgroudn. on my pixel 6 pro I hardly notice it but other users have different experiences with it
some other things to check would be https://companion.home-assistant.io/docs/troubleshooting/faqs/#android-app-battery-drain
I only have the persistent connection open when the screen's on, but I did find that I had the "Include in sensor updates" option turned on for Single Accurate Location, so I've just turned that off (and disabled a few sensors) to see if that makes a difference.
Anecdotally, I think my battery life has taken a noticeable dip from one of the recent app tester builds. I update pretty regularly
how recent would you say?
In the last week-ish.
I need to find some data to see if it's real though and not just my imagination
Changing the Single Accurate Location settings doesn't appear to have made much difference, the battery is down to 48% after aroun 4 hours. Is it possible that the syncing of enabled sensors with HA 2022.6 is causing the increased drain? I don't think it was as bad as this before updating HA and the app.
If any sensors are enabled, the impact should be extremely small as it syncs during the regular sensor update
For a sensor that is updated very frequently, does the new WS behavior send updates to the device with each state change vs then phone checking in?
And that sensor is on a dashboard.
depends on the sensor still, the push/poll behavior has not changed
Hi, I set up a quick access tile to be tied to a Button entity, but when I press it, it says 'Unable to send service call", what could be the issue here?
The app open is open and i can control HASS etc
and i can press the button entity from dashboard
only the tile doesn't work
hey I'm having a problem with one of my android apps:
The location reported by it only works part time, more or less only when it's in town (I have a zone for in town).
What do I need to make sure of that it reports correctly?
I've already taken it out of battery optimization, granted highest possible GPS permission and it's a OnePlus Nord.
in comparison to my app, which works totally fine, this updated only like 10 times in the last 600 hours...
Currently it should display out of country tbh.
PS: I'm using a Dynamic DNS with http to connect to HA from outside of the network.
I do not have the NC subscription.
Can you try using the developer tools in HA to see if the 'Button: Press' service works correctly with the button you've selected for the quick settings tile? That will be similar to what the app does when you tap on the tile. If the button press works correctly there, you'll have to go to the logs in the app for error details.
Settings > Companion app > Show and share logs
Press the qs tile before opening the logs π
Search for Click detected for tile ID: in the logs, it should be followed by Unable to call service for tile ID: and the error message
need help with this
https://companion.home-assistant.io/docs/troubleshooting/faqs/#device-tracker-is-not-updating-in-android-app check these steps and if the issue still exists keep reading and look at the logs
I was trying to do a clever graph/query in grafana of battery % with charger type to show how long it was off battery and the last % before being plugged back in. I have it sort of visualized but its not very helpful without being able to mouseover to see the durations off battery. Starting on 6/6 I do see my battery draining faster for normal off-charger durations. I need to see what i did on that day.
are there any app logs or ha logs that would show if i updated the app on that day?
The Play Store will show you when an app was last updated (profile picture > Manage apps & device > Manage)
Thanks. I get most updates though app tester and update pretty frequently. Play store says 9th
Maybe a feature request for an app version sensor
Ohh okay thank you!
already exists π
yup, version name, flavor and build model https://github.com/home-assistant/android/blob/master/common/src/main/java/io/homeassistant/companion/android/common/data/HomeAssistantApis.kt#L22
ok good, if only i had access logs enabled in traefik...
in an android tablet i get a "flickering" screen after the HA app its open and left unattended for 4 - 10 minutes, anyone knows why?
First time I've heard of it and I have a few Amazon tablets around the house. Check if you can reproduce in chrome for Android on the same device.
in chrome works good but the app got that issue π
Check that Android system WebView is up to date, it should also be using googles version
Can I make the companion app loudly announce that the garage door is still open in case my wife once again drives off and forgets it?
Just updated it and now does less flickering but right away, this is so weird in other devices i dont have that problem
what device is it?
Samsung Galaxy tab s2
any custom cards?
yes
From hacs:
custom:weather-card
weather.home
And also i got the webpage card showing a continuous cbs news streaming, (dont judge me i see news all the time) π€
Do you think i need to disable and see if one of those are the problem?
that was my next suggestion π
well that was it, the weather card was doing the flickering, its a shame because i really like that card, thank you!
file an issue with the author, might just need an update
Can ha app show multiple persistent sticky notifications (android)? I'm missing a notification on my phone, but automation log reports that it succeeded. I'm not sure if the second notification will override the first one
depends on the notification you sent, if you used the tag option then it will replace the text
also if the app was updated or force stopped any posted notification will also be removed at that time....unless its a service like the persistent connection
but to answer your question, yes you can do multiple persistent notifications π
There's a different way of doing rather than using the tag option?
use a different tag for each one you want
its a requirement because you need a tag to clear the notification later on
Action should be unique too?
doesn't have to be, that all depends on your automations and needs
Jist want that one automation doesn't interfere with another. For precaution i did make them all unique, but if that doesn't create issues, would probably make my life easier in maintaining them
the actionable notification key gets sent back with the event so depending on your automation and needs will depend on what value you want it to be. making it unique means any automation you had based on that event and action key will not fire. https://companion.home-assistant.io/docs/notifications/actionable-notifications
Thanks
Hi, I want to know if there is a way to get the apk file of the chip-tool for android ready for installation or if there is a beginner's guide to get it from the source code. Thanks
i think you may be in the wrong discord server possibly?
any updated manuals to send a screen off command to android HA app?
sorry to ask this question but i'd really appreciate an answer if someone knows. i saw posts in jan about the latest shield experience breaking integration with HA. does anyone know if this has been resolved? i havent been using my shield (2017) as i've recently moved - its still on the previous version. all my googling/searching in this discord is showing me info from january
Asked about android chip-tool for matter..it is wrong server?
Oh you might be looking for #devs_matter-archived this channel is meant for the home assistant Android app support
Ok.thanks
i did it with an app called automate, posting here in case someone find it useful π
your best bet is to ask in #general-archived or check recent release notes.....I am not 100% sure if it has been fixed, you can also check the alerts page. This channel is actually for the official android app and not the android tv integration
Anyone using the fully kiosk app? It was working fine a few weeks ago and now I just get the home assistant load screen.
If I start home assistant normally it works fine
Try in #general-archived as this channel is for the official Android app
my apologies, thanks for the reply
Anyone has this problem? when my tablet has been idle for to long it doesnβt wake up with the HA screen on command. It just works if I used the tablet recently.
It might be possible that the notification command is delayed when the tablet has been idle for some time. Have you tried sending it as a critical notification? https://companion.home-assistant.io/docs/notifications/critical-notifications#android
could also be missing background permissions too
I've set up mobile notifications, it's working well for my android phone, but my partner's (Redmi Note 7) just not displaying any notifications until the companion app is actually opened. Persistent notifications on the android side are set-up, tried defining a channel, setting the importance to urgent, priority to high, ttl to zero, having a separate channel. No dice.
Seems to me that specific Android OS (miui thingie) just makes a goal out of killing the companion app once it's on the background, which is weird as other notification-heavy apps (namely discord and signal) are doing fine
thanks seems like this solve the issue! π
Check background permissions
They're reportedly all enabled
this site has some good tips on things to check as some manufacturers add more background killing stuff https://dontkillmyapp.com/
I have a New smartphone and i cant login to HA with it.. it says my password is incorrect, but the HA Log shows "Login attempt op request with invalid authentication from... " how dk i fix this? I know the password is correct
"invalid authentication"sounds a lot like a wrong password to me. Try logging in in a browser on your new smartphone, if it doesn't work there either this is probably unrelated to the app and #general-archived is the best place to ask.
I've got a New phone, And the notifications work just fine, except for the tts messages (Alarm_stream_max i think) anyone knows how to fix this? (Android 12, samsung galaxy a52)
Does Entity state complication being merged into master 7 hours ago mean that it will be in the release on Sunday? https://github.com/home-assistant/android/pull/2574
If playback fails, you should see a message pop-up near the bottom of the screen. Did you see that message, or nothing at all? If nothing, check in HA settings > Companion app > Notification history to see if it was received.
Check that a text-to-speech engine is selected and up to date in Settings > Accessibility, preferably "Speech Services by Google".
Yes it should be!
Nice. I didn't understand the battery/refresh discussions. Will it have a big impact on battery? Do we configure update interval ourselves?
The battery impact should be limited and the update interval cannot be configured
How often is it updated?
When the screen is turned on, and periodically in the background (the app requests every 15 min but Wear OS decides)
And you can tap on the complication to update it as well
So if used on AOD it will update every 15 minutes without going into interactive mode?
Yes, approximately
Nice
Hi guys
is there any way to get custom pop ups to work in lovelace whithin the companion app?
I know it can be done via browser with browser_mod but what about having them straight into the app?
Does anyone know all the ways I can check permissions? All if a sudden it's not detecting me away from home. I've checked sensors, permissions, everything I could find. (Galaxy S20, Android 12)
first check the steps here, then check the logs if it still doesnt update https://companion.home-assistant.io/docs/troubleshooting/faqs/#device-tracker-is-not-updating-in-android-app
you'll probably have better luck asking the author of browser_mod directly
While poking around the app it's showing the address I'm at right now but HA is displaying me home so it is tracking me but not giving it to HA it seems
check the steps mentioned, geocoded location sensor is not the same as the device tracker
when i change a group of helpers on my android device and save it does not update. don't know if this is a know bug.
sounds like a #frontend-archived bug and not app related
When digging into addons pages, is it expected behavior that pressing the top left back button sends me just one page back? I find myself clicking repeatedly the button until I can access again Tha main menu
I don't know if it's expected, but I'm also frequently frustrated by it
It's not specific to the app, so maybe someone in #frontend-archived can help
Mornin' (well, for some at least). I am trying to troubleshoot an issue with the latest Companion App on Android (Samsun Galaxy S21 Ultra) and notifications. When I get a notification, it never includes the image and no matter which URL I add, it never follows the clickAction URL, it always goes to the remote dashboard (via Nabu Casa).
I have followed suggestions here: https://companion.home-assistant.io/docs/troubleshooting/faqs/
and following guidelines here: https://companion.home-assistant.io/docs/notifications/notifications-basic
plus the latest video from The Hook Up here - https://www.youtube.com/watch?v=wBUAUdLkYJM
I have tried persistent connections on and off, tried different prioritites
I am sure it is something silly, but I could use some additional guidance
Can you share the automation? Hard to tell what's going on
Hi Guys, I have bunch of automation that trigger when I am home (using Android app) the past 2-3 weeks, it sometimes takes up to 20 min for HA to update my location, I have made sure there is no Battery saving feature on for it, is there anything else I can do to speed up location update (1-2 min update)?
Phone is : S10+
A few things to try:
- Use the sensor that reports the WiFi connection to create a device tracker/binary sensor, whatever (eg https://github.com/DubhAd/Home-AssistantConfig/blob/live/automation/people/person1/person1_wifi_status.yaml and https://github.com/DubhAd/Home-AssistantConfig/blob/live/device_tracker/mqtt_person.yaml#L6)
- Don't use the app, use Bluetooth (eg https://github.com/andrewjfreyer/monitor or the built in Bluetooth tracker)
First start with these steps https://companion.home-assistant.io/docs/troubleshooting/faqs/#device-tracker-is-not-updating-in-android-app then look at the mentioned logs if the issue continues. It is also expected for the app to skip updates if location has not changed for 15 minutes. The logs will show the entire decision making process for sending a location update.
You can also look into using high accuracy mode
Is there any way to self-host the Mobile App notifications? I was writing a Script and accidentally used a String as my count for a repeat which resulted in me pretty much immediately using up my rate limit. I'm not sure if potentially the endpoint for that may be hardcoded into the apps or even the integration in Home Assistant, but figured I may as well ask.
I believe I have solved the problem in my Script, but I won't be able to truly verify that until midnight UTC π¦ I figure if I were to self-host, I could likely not enforce a rate limit since I doubt I'd be doing anything to ever cause that to be a problem for the 2 users in my setup.
For testing, you might want to enable the persistent connection in the app's settings
The app will then directly communicate with your server to receive notifications and the rate limit does not apply (it does slightly increase battery usage)
Completely self-hosting the notification service on Firebase is more difficult, as the url is indeed hardcoded into the app
Ooo, interesting! I'll have to look for that setting. I was able to finish testing using logger.log, but I'll definitely use that in the future. Thanks!
What's the user management best practice for a "kiosk-mode" tablet running the HomeAssistant android app ? I'm going for a dedicated user, but I wondered if there were better alternatives
theres really no best practice here, its whatever works for your use case....personally I just sign into my own account and call it a day
gtocha
my own account has full admin rights so I'm sticking to a less privileged user for this unprotected tablet
thanks
Hi guys
I'm trying to use a custom font through the APP. In my web browser it does show up but it won't work in the app
where should I install the font? in HA itself?
or in the tablet hosting the app?
Hi Guys, Would someone be able to help me? I am trying to the Z2M Frontend GUI to work via the HA APP on Android, But I just get '401: Unauthorised', I use the app via Nabu Casa? I guess I need to create a cert or token but not too such what to do.
I can access Z2M via Nabu Casa and haven't set up any cert or token etc.
Did you follow this? https://github.com/zigbee2mqtt/hassio-zigbee2mqtt#installation
so it works in Chrome for android on the same device?
Should this be available now for complications for Pujie Black? https://github.com/home-assistant/android/pull/2574
It doesn't show up when I select Customize - Interactive - Custom complications and then External data providers. I only have Fit, General and TicHealth there.
make sure you are on the latest beta
I am. Play says last updated June 25th
try a different watch face maybe? i was able to set a complication using the stock watch face
Good tip. That worked, thanks. Will go bother Pujie instead. π
Got it working. π
When selecting entity for the complication, is it intended that all entity groups are expanded by default? It's a bit cumbersome. Of course a search function would be awesome.
I think right now it almost matches the shortcut selection except it shows all the groups, the initial PR was really big so makes sense to split things up
But shouldn't the groups be collapsed? So you would choose group and then entity?
I have to hit the - symbol to collapse like 20 groups before I see the list of sensors and then scroll through that list to find the temperature sensor I need.
as of right now the behavior is similar to selecting favorite entities in settings, all groups are expanded there....could always submit a feature request to improve things π
i agree its not the best format to select them in but first PR and its a beta feature π
i think quickest navigation here would probably be areas followed by domains like the home screen does...hard to decide what makes sense here
Is search possible?
yea that could be doable
It seems like when using Pujie you have to select the entities for the complication every time you send a new preset to the watch. Which means changing watchfaces with complications back and forth is quite time consuming. π
how does it behave with other complications? I think Wear OS tells the app its ready for a complication and we end up showing the select screen there...not entirely sure how that bit works
Are there any mobile app logs anywhere? My phone keeps popping up a message saying that the app keeps stopping, but whenever I open the app it's totally fine. And when I check the HA logs, I don't see any errors around the time it happens, except some warning about my govee API exceeding the rate limit
Configuration > Companion App > Show and Share Logs
if it crashed you should see a last crash tab on that page or something similar
Huh, that's a weird error
If I'm reading that right, it's complaining about a button having either a width or height less than or equal to 0?
Probably related to a recent change for the icons on buttons
Which version of the app are you using?
beta-2432-4a59a20d-full
I'm guessing it's caused by https://github.com/home-assistant/android/pull/2625 because that is included in that version and introduced code that calculates width/height
Could you create an issue on GitHub with the full crash log? The line numbers that aren't visible in your screenshot should confirm it :)
As someone who is not very familiar with GitHub, do I just go to that page you linked, go to the issues tab, and click on "New Issue"? Or is there somewhere else to do it?
Yes, New issue and then choose Bug report
I just submitted it, thanks! Although I didn't see an option to choose Bug Report, so hopefully I still did it right
Combined with the information here it should be enough to fix it, thanks!
I guess you had to log in (again)? Sometimes it doesn't show the issue templates in that case (so no Bug report option)
i tihnk its login before going to create an issue, long standing github bug
I was also doing it on mobile, so I may have missed something.
But I did log in after going to the submit issue page, so that could be it as well
how many button widgets do you have?
ok and in the Manage Widgets screen you have jsut those 3 right?
Let me check
there was a bug a while ago where widgets got removed but they remained in teh database
I have 10 widgets in the manage widgets screen
of those 10 only 3 are button widgets?
I don't use any of the buttons anymore
I only use the garage, upstairs, and downstairs entity state widgets
I don't know why all the entities are listed twice though.
if they are no longer on your home screen then you can delete them by editing them from here
there was an issue a while back where all widgets were removed and users ahd to recreate them
they still exist in the database
you can edit the widget and give it a new temporary name to determine which one to delete
if you long press the widget from the home screen you can hit the edit button to edit that specific widget
Alright, I'll give that a go. You think that'll stop the crashes?
the crashes are from the button widgets specifically, so if they no longer exist on your home screen you can try removing them from this screen
im not sure if it will stop the crashes though, that may require a code fix
If the button widgets aren't in the database, they won't be updated so it should stop the crash popups right now
Cool. I've deleted all the ones I'm not using anymore, so hopefully that does the trick! Thanks for all the help guys!
I wonder if we need to look into adding a mechanism to check for existing widgets and remove as needed, we must have more users who have lingering widgets
we discovered a while ago that if you refactor widgets and move their location, then they no longer show up on the home screen
hey why doesn't the app have access to the accelerometer, gyro, magnetic sensors of the phone?
Yes I have followed the instal guide, it works fine locally via Web Browser, but via Android app I just get 401 error.
nobody has requested it and also the data would be updated very irregularly so it wouldn't be worthwhile for any automations
looking at the zigbee2mqtt github issues, I see one user discovered they needed to use local IP address https://github.com/zigbee2mqtt/hassio-zigbee2mqtt/issues/160
how can I make a request? for accelerometer, that is
it would allow old phones to be used as door sensors
<imagines an old phone duct taped to a door>
that is exactly how I have it :)) complete with charger sticking out
Don't think it would be fast enough for that
On GitHub
thank you
Do you have tasker? Could probably test whether its feasible with that
I don't, no, can't get it either
right now I am using the proximity sensor though, in a similar manner
rope attached to door, and a card that slides down in front of the sensor when the door opens
do you have pictures? I feel like I need to see this lol
could take some
this is how I used to have it before (same sensor)https://www.youtube.com/watch?v=LgZ9uSGO1sQ
definitely creative. How's the response time?
the response time is near instant, although it does malfunction now and again
wow. that's a new one. I haven't done much with the proximity sensor, how close to the phone does that piece on the door have to be to trigger it?
did you consider nfc by any chance? looking it says 1-5cm distance for a read which is slightly further away but also not such a precise location on the phone. Maybe attach an nfc tag to the back of the door, a magnet bit to the top so it actually sticks to the wall and then precisely place the phone in the range?
no, the locus is very precise, right at the top of the phone, to the right
ah. well either way if you do a magnet bit so it kind of sticks to hte wall you could probably place it right in the right spot? It just looked like in the video like you had to very carefully close the door as it is which seems error prone
but I totally get what you're sayin with nfc. Could do
yeah the way in that video was buggy. the new one with the pulley is better. but it stil malfunctions because of the rope (sometimes):
wow thats using the apps proximity sensor? i assume with fast updates enabled? which is about once per minute
yes
ok if your ok with that delay then the sensor you are requesting will be possible....in this case the app will probably just pass the raw values https://developer.android.com/guide/topics/sensors/sensors_motion
at the end, the door opens and the rope pulls the card over the sensor
how can I use this
oh you meant in the future, I see
yea we would create sensors very similar to proximity/light/pressure
@quartz forum did you get a chance to see this? https://youtu.be/C8dhSig0-7Y
nice!
sorry for @
ping
yea I did. I see what you mean about the accuracy issues, the pulley eliminates that
indeed
but now the rope is the issue. too much friction and too much travel
well, the former is a consequence of the latter
yea I was thinking that, was looking a bit frayed in the video
out of curiosity, what lead you down this route as opposed to like a zigbee sensor? Since it looks like the phone is just a contact sensor. Or is the plan to do the continuous video playback bit again?
that continuous vid playback is what lead me down this route, cos the phone will be running for that anyways so might as well use the other sensors too
a motion sensor would have been far easier to implement, sure, but I wouldn't get to learn all this new way of looking at things :))
lol that is true
it's like, the less you pay, the more you learn
like money actually buys ignorance haha
ultimately, that's what we pay for, ennit: the comfort
that is true I suppose
Could also try fishing line maybe if you've got some. Doesn't really fray. Not sure how heavy that bit is on the end but probably fine for it?
wow that's a great idea. Don't have any, but will get some. yes the piece at the end is heavy, that's why I needed it so bulky, to pull on the rope but because the rope frayed it gets stuck
the fishing wire will make this flawless. maybe I'll get some lube for it too
yea I mean I think metal coated would work fine too but I would guess fishing line is cheaper? Fishing line is nice that way, cheap but surprisingly sturdy
well I guess not that surprisingly, it does need to hold on to a thrashing fish
plus its usually clear
yes. Also the fishing line eliminates the problem of the coated wire has with a lack of plasticity. The fishing line doesn't maintain its shape, it bends more easily
I am still seeing the Unsupported state class error in statistics. It is not just on restart. Sometimes I have none and check later in the day and the error comes back. I see these on three different devices and the sensors that we created by the app. I have uninstalled and reinstalled and no difference.
theres nothing really the app can do to solve this issue, you'll have to wait for a HA core team member to look into the issue to solve it
I was asking again as it seems different. It is now getting errors without rebooting.
@flint osprey it looks like beta 1 fixes the issue for me. Had 12 state class errors prior to the installed, rebooted and I have none. I'll wait until tomorrow and if it stays the same I'll cause my open GitHub issue.
awesome thanks for letting us know its fixed π
@flint osprey Nevermind, they all came back about 20 minutes after a reboot.
20 bad states now.
just a heads up to those on the android beta (and if you update before the play store) the latest beta has some breaking changes around notification commands, a lot of the parameters have been changed. Make sure to check the docs for the updated format listed under the beta label https://companion.home-assistant.io/docs/notifications/notification-commands
TTS notifications are also part of the breaking changes here
Not sure if it is beta related but now at 27 bad states. None have cleared in almost 12 hours.
Beta 2 put it back like it was. Still broke but clearing in several hours
If it still takes several hours, it is definitely an issue with core. When using core >= 2022.6 the app will detect and reregister sensors due to a new version on the next sync, so roughly after 15 minutes.
On beta one it did not reregister.
struggling here with actionable notifications for past couple days. Watched ahandful of videos, read the documentation...when i click the close door button its just dismissing the notification. Ive also tried using EntityId:Camera.my_nest_camera for a button for it to bring it up when the button is clicked, but i just get a ""unable to connect to home assistant" message like i cant reach my instance, which is untrue.
Check the companion app logs and see if there is an error there
Hmm, missed that breaking change, but good to know
although this doesn't do anything for me:
service: notify.mobile_app_pixel_5
data:
message: "command_bluetooth"
data:
command: "turn_off"
no errors/warnings in the log
Are you sure you are on the latest beta? It became live in the play store yesterday
What is the "Music Active" sensor supposed to show? My Xiaomi just reports unknown. I was hoping to check if the phone is playing some media and have that as a condition for some automations
oh there's a media session one too which seems to report something. I'll have a look at that then
that sensor is only for music specifically
to get the most out of htis sensor its best to enable the notification sensors and also add your media app to the allow list so the sensor can pick up all of its updates
Yes, because the old commands are received as text messages now
I managed to uninstall the Comapnion app for ware OS on my Galaxy watch 4 by accident.
And when I go to settings for Ware OS it try to connect, but nothing happens.
How do I reinstall the app?
Soooo annoying, having to update all TTS commands π
I just recieved my new phone
When i install the companion app and login to it, the phone does not show up in the 'mobile app' integration
did some further checking, and I see this in the log:
07-05 16:06:22.788 25727 3299 D MessagingService: Processing device command
07-05 16:06:22.789 25727 3299 D MessagingService: We have proper bluetooth permissions proceeding with command
So it seems the notification is received an processed correct. However it doesn't do anything.
Could it be an Android 13 thing? I'm using the Android 13 beta
also tested DND, that one works with the new command: key
it very well could be, I don't see any changes in the dev docs. I had tested the command on my pixel 6 pro and it did work so probably a bug in the android 13 beta
make sure that you have default_config or mobile_app in your configuration
google play store on the watch
i have the default_config
My old phone and girlfriends phone was instantly added a year ago
Any advice on how to log this as an issue on the Android beta. Can I refer to a specific API call?
If apps are targeting an older SDK (Build.VERSION_CODES.S or below), they can continue to use this API.
So it should still work for now
But once we upgrade it cannot be supported on 13 (+)
should be able to report issues https://developer.android.com/about/versions/13/feedback and check if its a known issue
doesnt surprise me that they are getting rid of that, they already did it for WiFi a few years back
Well, looking at the link you provided, and especially this part. I don't think it's a bug
that last sentence actually applies to us so according to the docs it shoudl still work π
Oh okay
we are currently targeting API 31 which is android S
Ah
but come october we will most likely be targetting API 33
that devcie control feature without auth will be nice for most folks i imagine lol
It should still be available without targeting API 33
But to get a better notification permission experience API 33 should be targeted soon (working on it)
yea that seemed to be the biggest issue, is that going to be required for all users to accept the new permission or only new installs?
On upgrade the app keeps the permission
But on new installs, without any changes Android will prompt the user as soon as the app tries to create a notification
So basically immediately when you start the app π
It should be handled more gracefully during onboarding / show a dialog similar to location disabled for logged in users
To minimize disruptions associated with the new notification permission, the system automatically pre-grants the new notification permission to all eligible apps when the user upgrades their device to Android 13
not a fan of that eligible apps phrase π
yay more onboarding changes lol
HA is currently eligible (haven't noticed any apps that didn't get the permission)
yea I just clicked on the link, as long as the user didnt disable all channels or notificaitons in general it should still work π
Tested this on my Pixel 4a with Android 13, also receives the command, prompts for permission the first time but when granted it still doesn't work (no error in logcat either, so I'm afraid the issue I've posted a few minutes ago applies here)
Is it possible to activate BLE transmitter only when in a certain zone? Similar to the high accuracy location settings?
not directly from the app, but there is a notification command you can use https://companion.home-assistant.io/docs/notifications/notification-commands#ble-beacon-transmitter
Still having issues with location tracking. Status does not update and shows "away" for both me and my wife even though, all location permissions have been updated (android). Any ideas?
after you check all the points here https://companion.home-assistant.io/docs/troubleshooting/faqs/#device-tracker-is-not-updating-in-android-app continue reading and look at the logs
Of course there is, you are the best
anybody know where the "select adb debugging" toggle is on the 3rd gen amazon firestick?
never mind... ya just gotta click the "About" in My Fire TV 7 times quickly and it will show up again.
Testing that out now, thank you
Is there a way to have the app ONLY share GPS location when the phone is within a zone? I think the answer is no but I wanted to check.
When refreshing a template tile on WearOS I have vibration feedback but there's no way of knowing if the template is actually updated or not if the data is the same as before. Possible to add some sort of feedback if data retrieval succeeds? I'm not sure what kinda feedback would be best here though.
A green dot flash if success and a red dot flash if not ? Or triple vibration pattern if not success? π
not currently
probably best to file a feature request for that so it doenst get lost here π
Or similar to the template widget on a phone: assume it worked, show an error icon otherwise?
The template tile can show errors in some situations, although I don't know exactly when it'll show a cached value or error
Maybe. But then how long should it try before failing? If I get a vibration feedback and wait a second, I expect the new data to be there and stop looking at the tile. If it tries for many seconds before showing error icon it's no good.
The current network timeout is 10 seconds
But that doesn't change if the feedback is success or failure
Need urgent help! Can't access my HA instance from mobile app!
The app will, correctly, reject invalid certificates
I don't have duckdns
You should remove SSL from HA
SSL I enabled
If I remove SSL, I can't access add-ons for some reason!
I get 401 error
Well, fix that rather than breaking everything else
Where can I find help to fix this 401 unauthorized error?
The vibration feedback happens right as the app starts retrieving the template data in the background, since that is closest to the tap of the user. And the tile will show an error if the connection failed or if there was an error in the template itself. So as @long lagoon mentions that could take up to 10 seconds after the vibration
A feature request for showing a toast error and/or a specific vibration pattern could be a nice addition π
Personally I just show the time in my template, that way I know when it was last updated
Is there a way to send local push notifications to a specific device/user using the home assistant android app? I see there is an option target: but the docs don't say what to put here
The app provides a notify service specific for that device
But maybe I misunderstood your question
Have a look at Blueprints, This is a good one - https://community.home-assistant.io/t/actionable-notifications-for-android/256773
Thanks for the link I will try this
"Optional depending on the platform.". I don't specify anything there. Message is the only thing required for my Android devices.
I do tick the Data box and specify this to get notifications immediately though: ```
ttl: 0
priority: high
Getting actionable notifications is a bit more work though if you don't use the blueprint
It's more like I would like to send different notifications to the phone of my girlfriend. She doesn't want all the things I want to know. So it would be great to be able to send only the high priority messages to us both and all others only to me
Just use one action for each phone in the automation
To solve this issue, I added a clock (with hh:mm:ss format) to the end of the template π
π {{ "%02d" | format(now().hour) }}:{{ "%02d" | format(now().minute) }}:{{ "%02d" | format(now().second) }}
You can borrow it as a quick fix π
Why not: π {{ now().strftime('%H:%M:%S') }}
or: π {{ now().replace(microsecond=0).time() }}
Already have a clock in it. π Thanks though.
Is there a group for Android companion app for smartwatches?
a group?
I meant another tag/channel in this app.
I have a Galaxy Watch4 smartwatch. What information do I provide in the Template tile section?
whatever you want, that template will be rendered on the HA template tile thats available on the watch
This works only with this type content? I assume I cannot use existing HA templates.
you can use any template, just have to copy the actual template. It will be rendered just like the results will be shown in the Template section in HA and yes all this does is show a template, if you are looking for control then you want to setup the shortcut tile from the app directly
right now we have 2 different tiles for Wear OS https://companion.home-assistant.io/docs/wear-os/#tiles
Thank you @flint osprey Is the limit only one template (tile) for the companion app?
yea right now only 1 tile, there is a request to add more of the shortcut tile but template tile will need the same work done https://github.com/home-assistant/android/issues/2475....The thing is that we have to define the exact number of templates in our apps manifest so we have to be precise when we add more.
Can I use a template switch for tile?
you want to control the switch correct?
@red sedge posted a code wall, it is moved here --> https://hastebin.com/eximiwazov
No, I have this template switch.
so you dont wnat to turn it on and off, you just want to display the state?
Turn it on and off
ok for that you want to use the shortcut tile
Is there an option to control shortcut tiles via 'Wear Device Settings'? It's kind of difficult to browse through the attributes on a tiny watch screen. π
not at the moment
Thank you for your quick response.
I didn't even notice that line next to the headers. I need an eye exam π
It is easy to mistake it for 'a line' instead of 'a plus/minus symbol'
it wasnt easy to pick a character to represent the expanding/collapsing behavior lol
hmm those are good ones too
does the companion app have a swipe board navigation built in these days? I did install HACS mod for it, but I have uninstalled it and it's still present and messing the usage ...
nvm, clearing the android app cache removed the last bit of it
One small tip here for all involved. You can just add a template sensor with the template in either the state or a custom attribute. Then you only have to add a simple template that gets the state/attribute in the app and never worry about copy paste again π
thats a very good point lol, I need to do that with my template widgets too lol
Hello i have a problem i can't access my home assistant when i am at my WLAN with mobile data i can connect to it, i am usung duckdns btw does someone know how i could fix it?
https://companion.home-assistant.io/docs/troubleshooting/networking some of these tips may be of help
Is it possible to get actionable notifications on tizen smart watch?
tizen is not android so tough to say how it works
I'm trying to add a widget. This has always worked and I haven't updated recently either. However, after adding the widget and executing it (this is a toggle widget), it outputs the green checkmark but nothing happens. When I look at reconfiguring the widget, I see that it says A custom component is preventing service data from loading.
@crystal shuttle posted a code wall, it is moved here --> https://hastebin.com/iyahohumaz
if I click the entity, I can toggle the lights on/off just fine both via the mobile app and on the web
but via widgets, it won't work at all and I am specifying the exact service name light.pool_column_lights
the error says that service does not exist, and thats from HA core. If you have a custom component installed try to disable it and see if it works. The toggle widget screen will show an error if any service call in your HA has invalid data
I don't have any custom components installed...that was the first thing I checked. However, I decided to backup and upgrade by pulling the latest docker iteration of ha and it all seems fine now π€·ββοΈ
thanks a bunch though for the suggestion!!!
Yeah, was just wondering if anyone managed it
this isn't the correct channel to get support for that addon, try in #add-ons-archived or #zigbee-archived
I'd start in #zigbee-archived - and I'd start with the logs for Z2M (use a code share site) since 502 means that Z2M isn't running
i am realy confused why my app isn t working now, i can t access HA via app but wit the browser on my phone it is fine...
what error do you see in the companion app logs?
who is the admin in these groups, how can I access a group about homeassistant
not really sure what you are asking but this is a group about home assistant...this channel is to discuss the android app
Anyone had issue when notifications when connected to wifi
If I have an automation send a notification upon trigger. When I am connected to wifi I never get notification but when I disconnect I get all of the notifications at once
any errors in teh logs from HA core or companion app? I have not heard of this issue but I imagine there should be an error somewhere
How do I disable the app from phoning home to my HaOS instance every 15 minutes even though every sensor is disabled?
sensors will always have their status synced with HA core, even if disabled
that job also checks in with HA core to see if any sensors were enabled in the UI so they can be enabled in the app.
Why does device_tracker.galaxywatch4 appear as an entity in HA (unknown state) when all sensors on the watch are disabled?
all mobile app integrations provide a device tracker, thats part of HA core
Is it possible to use a client side certificate with the app?
you want to be on the latest beta for that feature
Sup guys is it possible to call a service with notify?
action: call-service doesn't work is there another way or do I need to make this a script? That's my action code: https://hastebin.com/mifuhalomu
you can use actionable notifications to do that https://companion.home-assistant.io/docs/notifications/actionable-notifications
Is there a way to suppress or hide the "Sensors Updating" notification? I have notifications from HA buzz through to my smart watch and every 15mins to an hour my wrist buzzes with one of those notifications.
modify the sensor worker notification channel settings
Does anyone know much about the HA android app + Android tablets? I got a Samsung Tab A8 to use as a panel use case and when the screen goes to sleep\times out and you turn it back on, the app goes into the 2-3 seconds of "Connection lost, Reconnecting" phase until it refreshes like it lost connection. Not very convenient. I ever tried having the tablet just turn on a screensaver instead of turning off the screen fully to see if that keeps the apps connection alive or whatever and it didnt make a difference. I could just leave the screen on 24\7 but then youre talking screen burn in....any ideas here?
you make sure the app has proper access to run in the background?
Yea, setup direct HA instance communication etc, let me go double check all other permissions around everything on hte app itsself
Configuration > Companion App > Check the backgroudn access tile has a checkmark
there is also a HA user profile setting that is turned on by default to disconnect the connection if its been hidden, you can try turning that off if you want
Let me check that second thing, it is running as a specific "kiosk" user. I have faith (runs back down)
Ok i found that slider toggle for the user about closing hte connection when app is in background. Ill have to wait and see if that did anything. Im hoping it did. Because im not sure if this situation with the screensaver running means the HA app is in the background or not
Guess time will tell, thanks @flint osprey.
Does enabling that toggle to off on your mobile phone scenario affect battery life?
IS that the trade off for that toggle?
and data impact
Got it
the background tile in Companion App is one i woudl change first if it wasnt enabled
Yea thats present "green check mark"
Can I set notification which will pop up in homeassistant app at startup?
you can detect when the app is open by using the App Importance sensor, its state will be foreground anytime the app is in the foreground
Interesting! Clever way to troubleshoot that
@flint osprey what's the name of that sensor, I cannot find it in states.
you need to enable the sensor from the app or the intergration page
App Importance
faster to do it from the app as enabling a sensor in HA 2022.6 can have a 15 minute delay as it waits for the app to check in
how? you got an example? call-service doesn't work
there is no call-service method in the docs for android, follow the example in the docs. You need to create an action and then respond to it. the docs are pretty clear here
you mean action script?
did you read the page and follow the provided examples?
well there are few examples
just use whatever action you want after the event, the example has you create a notification and then wait for the event before executing the action
I been struggling with Actionable notifications forever. Ive followed various examples and stuff from youtube, the documentation page etc, and it seems i cant get the button to successfully do said defined action. Ive tried from directly toggling the state of an entity like locking a door to pulling up a specific camera feed. Here is the code for the automation\notification. https://www.codepile.net/pile/4d5el7dY
And here is the HA Companion app log file. https://www.codepile.net/pile/75O2ERk0 I just noticed action_3_url=null. Is that where something is going wrong? When i click on the "View camera" button, id expect it to open my camera entity\feed. But all it does is give me the "Home assistant cannot connect to your server, try interal url/settings/refresh" dialog with 404: not found on the HA app screen. As if my HA instance is totaly down, but its clearly not.
Is there somewhere to get just the app APK and not have to use the app store?
github
latest prod release https://github.com/home-assistant/android/releases/tag/2022.6.0 or latest beta https://github.com/home-assistant/android/releases
the third action entityId lowercase e π
I am not sure about the other 2 actions as i only see the actionable notification and not the corresponding event automations
@proud obsidian uri needs a lowercase u as well
alright thanks, I'm bit confused how the action_service in variables: should look like
the action sequence is not any different than a normal automation
Is there some way to make notifications not go to the HA app when clicked on, maybe just clear?
right now, not possible as we always provide a content intent. We could consider a feature request to not open anything.
this behavior is controlled with the clickAction variable
okay so in variables: action_service: service or how do i call it there, i'm confused
what does this part action_open: "{{ 'OPEN_' ~ context.id }}" in the example?
it constructs a unique identifier that you use later to identify which option was chosen
@flint osprey Is there an event I can listen for?
not for when the notification is clicked but there is one when its dismissed
It seems to auto-dismiss when I click on it, but not send the event as far as I could see. I'm already listening to that one
so it's necessary, how do i call a uri from the "perform the action" action? or can i call it from the "ask to close or open the blinds"?
there is an exisitng feature request for when it is clicked on https://github.com/home-assistant/android/issues/2524
this whole example is confusing me for what i want to do
yea the delete intent we use only notifies the app when a user manually swipes it away or clicks on Clear All
The best way to look at it is there are 2 parts to the notification. First part creates the notification with the buttons and events. The second part listens for the events and performs the action based on the event. How you do the second part is up to you
Yeh that's how I've coded it. But there's no event to listen for when it's clicked on. I can set it persistent, but then the action button doesn't clear it.
Anyhow... will survive. Just not very wife friendly as it is.
i get that but how do i call the URI action from notify in the "perform the action" sequence?
you can clear it with an action button, just use clear_notification https://companion.home-assistant.io/docs/notifications/notifications-basic#clearing when responding to the event
what do you mean URI action? because in terms of the app that only opens an app, opens HA or opens something but it does not send back an event when URI is used as an action
well if my automation runs i want 2 button in the notification "open release notes" and "update hass"
open release notes opens a URI with the notify action: URI and hitting update hass i want to call a shell_comman from service
with the example provided i can only run normal actions from choose
so in your case you only have 1 event to listen for, update hass
yes
so whatever you use for the action key is what you want to use in your automation
so you only need 1 trigger from the example
you dont have to use action: "{{ action_open }}" you can make it anything you want like action: open
feel free to share what you have come up with
u mean with action: open action: URI ? and the other one is action: {{ action:open }}'?
I've this now: https://paste.ofcode.org/3495hk8KD3nSb49qQNtseJD
you are missing a title for the first action
for update hass
you're correct
the rest looks fine
nice it's working, thank you
that's a big celebration for sure xD i read the doc way too often, just coudn't figure it out
the examples in the companion app docs moreso reflect the automation docs, next time you get stuck give those a read too as it all applies
i probably missed something in the other docs, the example confused me tho. especially this sentence: The above sends a notification, waits for a response, and then performs whichever action is being requested. I mean it clearly doesn't it waits for an event to happen, URI is no event which is weird, I thought every tab on a notification popup is an action/event
the example is not using URI though π
that's correct maybe adding this to the example could help in the future
Has anyone successfully managed to get the name of who is calling integrated into home assistant? I managed to get the call being registered using last notification but I can't get it to tell me who the call is from, just this info
I am trying to set up the mobile app for home assistant, but whenever the app asks me the adresse of the server, it says it is impossible to conect to HASS. how can I fix this ?
I tried looking the answer online but couldn't find anything...
who the call is from is really going to depend on what the app provides in the notification data
what URL are you using?
I have a bunch of sensors stuck in "unknown" state. Is there a way to force app to send states for ALL enabled sensors regardless if they changed or not? command_update_sensors didn't help.
what sensors appear to be stuck?
phone_state, sim_1, sim_2, current_version, ringer_mode, phone_state, blutetooth_connection, internal_storage, current_time_zone...
It looks like it's basically any that phone didn't have opportunity to send changed value
I haven't reenabled them all yet... but it did happen agter clearing app data on phone app
oh when you do that you need to clear out hte integration, proper steps to follow: https://companion.home-assistant.io/docs/troubleshooting/faqs/#starting-fresh-with-the-android-app
you basically left them in a bad state and they need to be cleaned up
Yeah thats why i was wondering if the call app isn't what registers the name, possibly enough app like the contacts or something
The stock Google phone app provides the data on my pixel
whats the code name for that? is it com. something?
com.google.android.dialer
I'll give that a go, see if i can get it to replace samsungs one
Swapping to googles caller app works! cheers mate
Hi everyone, I used to use OwnTrack for precise geolocation and I now see that the HA app can take care of all of it. My questions are:
-
Does Google track anything when it's used by the app?
-
What are the recommended settings for relatively precise zone detection?
Thanks
Sorry for late reply. Thank You - it worked great and solve the problem.
Thou I suspect that having a possibility to force all states refresh would be nice and probably work as well.
Not when you remove the association like you did
Those steps exist for a reason π
All location data comes from Google. The default location settings should be fine. Just make sure your zones are configured as you like.
Is it possible to issue a command to an AndroidTV device (like nvidia shield) to turn off the TV it's connected to? I know I can issue a command to turn off the shield itself, but I want to turn off the TV
The shield and TV are connected via hdmi-cec
not via the app but maybe the android_tv integration?
you could use the app to trigger things in tasker though using the intent
Is there an issue at the moment with Android notifications? They stopped working in previously working automations and in the service dev tool.
I don't know exactly when it stopped working but I assume with the July update
No issues, try looking at the logs
Hello, I installed the HA App on my android phone - I'd like to use it for geofencing. Does it create a device_tracker object? I'm not sure how to track my location with it.
Nevermind. It seems that I blocked notifications from home assistant somehow.. classic layer 8
When you logged in there was a location tracking toggle did you enable that?
Hello
Is it possible to ring the phone as a notification ?
I want to use it when alarm is triggered
Thank you
https://companion.home-assistant.io/docs/notifications/critical-notifications#android-alarm-stream yup but unfortunately this doesn't work on all devices, some samsung devices dont play anything as Samsung as changed the behavior
no idea, you'll have to try and see
yes i did, but just found this guide, will take a closer look now, thanks ! https://companion.home-assistant.io/docs/core/location/
Thank you
Still having trouble with the companion app - it won't make a device_tracker object and it wont save the Device Name when I enter it. Otherwise the App seems to be working, it shows successful connection via cloud.
ok i think i just needed to restart.
and add mobile_app: to my conf
Did you manage to amend an already set alarm by searching for its name, or do you just create a new one every time?
Hi there. I could use notify and it works fine. I get actionable notifications which is cool.
But what I wanna do is to have those notifications show on Android auto. Is that possible?
Essentially, I want to use zones for HA to know when I'm near home, and ask me to whether open the gate.
Bonus points if google can ask me via voice command.
It seems android auto has not whitelisted HA, so it's not showing the notification.
Any way to work around it?
However the notifications are displayed in Android auto is part of Android auto. The app doesn't do anything special there
There is an existing feature request for Android auto support on GitHub
The only app that i know of that lets you modify the alarm based on the label is Sleep as Android. The companion app docs should have an example or a direct link to Sleep as Android docs
Only to create an alarm though, not modify an existing one https://developer.android.com/guide/components/intents-common#Clock
There is this: ALARM_SEARCH_MODE_LABEL
I just couldn't get the syntax right to work properly
Says it only returns a list of alarms that match the label but don't think it will let you modify any of them
So that's to dismiss an alarm using that intent but it wont let you modify it right?
I was playing around with this today. The ...*alarm.MESSAGE: text - sets the label name which I found was weird as the document has a different command for interacting with labels.
Ya that's the thing with intents we are dependent on the development documentation of other apps.
so one nice thing about android is that we can look at the source code, so in this case we can look at the AlarmClock.java file to see if any of the comments or usage can help https://android.googlesource.com/platform/frameworks/base.git/+/master/core/java/android/provider/AlarmClock.java not sure if this will help but wanted to point out another avenue in your search π
so what exactly are you trying to do? Create an alarm and change its time as needed?
I work a 4 on 4 of shift and every week I have to change the alarm, so in my example I want to change the days. Well... At the moment i couldn't even set the days the way the documentation described.
so EXTRA_DAYS is an extra that requires ArrayList<Integer> format, did you refer to the companion docs on what the expected format is there? https://companion.home-assistant.io/docs/notifications/notification-commands#broadcast-intent after the 4th example here you'll see a bullet list showing some brief examples
Question: actionable notification to Samsung phone, if the screen is locked and i click the notification, phone ask for pin/fingerprint once given companion app is opened. i expected the notification to be opened with the "actions" i defined as buttons. Works like a charm if screen is unlocked when notify is sent. I wanted to ask here if this is normal or if this could be related to "security policy" by my company?
according to the docs this is default behavior, you can create a feature request on github to support this as we need to add a new parameter for https://developer.android.com/reference/android/app/Notification.Action.Builder#setAuthenticationRequired(boolean)
I have seen that but I'm guessing the syntax would be for Monday "android.intent.extra.alarm.DAYS:2"
Or am I missing something? I'm guessing the "ArrayList" is just referring to the numbers for the days/months
the correct syntax is in the bullet list, and formatted in a inline code block so the correct way would be android.intent.extra.alarm.DAYS:2:ArrayList<Integer> so you have the extra name : value : the format the app needs to send (3 parts)
So in this format it didn't work. Should any value go to the "Integer" bit? Or this should work as is?
I'm guessing as my phone default alarm is not the standard Google clock, so that might be the issue
check companion app logs see if any errors show up
feel free to share the entire YAML might be easier to see what went wrong
as long as you are targetting the correct package in the automation it shoudl be reaching it
I've tried replacing it with Calendar.MONDAY too but didn't work
yea that wont work, the description for the extra explains the format it is expecting and the values for each field
I'm just using the developer tools Services. The package is correct as I can set the time for the alarm but when something doesn't work the alarm just opens up but doesn't set
intent_package_name: com.asus.deskclock
intent_extras: android.intent.extra.alarm.DAYS:2:ArrayList<Integer>
intent_action: android.intent.action.SET_ALARM
have you tried another alarm app to rule out an issue in that stock app?
No, but I was thinking about that π I'll do that now
how an app implements what data its from the intent is up to each app
i assume you also tried with sending hours and minutes too?
Hours and minutes works fine. And I've downloaded a 3rd party one that's chucking loads of adds at me but the commands work with that so I'm going to go and cry in the corner. But thank you for your help π
I might download the original apk and have a look at the source code to see if I can find anything. Asus always has to be different from the standard
Google clock wouldn't be too bad but I couldn't find the package name π
the package name is in the play store URL, i usualy find that easiest way to find it
Thanks for the tip... So I have uninstalled that awful app and reverted the script back to the original and now it's working fine so I'm confused
To be clear the only difference is that I specified the Hour and Minute too so maybe it needed that too
Yes, that's all it needed. If it's missing the time it won't complete the settings.
makes sense but would be nice if the app design would show an error but then again you don't normally create an alarm like this π
Yes, and error log would have been useful. Now I just have to figure out how to automate this in the simplest way. And also to get the search by Label command to work. But now I think the only reason it didn't work because of the incomplete intents.
yea its possible, but in this case you wouldn't see an error in our companion app logs, you'd need to refer to Logcat on the device itself to inspect logs from other apps
i think your right on the other command, worht testing now that you know it may have gotten incomplete data
What's up android peeps?
Anybody understand deep links to switch apps via link in HA?
Like, I figured out how to make a link in HA to just switch to the Sonos App, i.e. Sonos:\
But I just guessed that was the deep link...I don't know how to discover for other apps...
all you need is the package name which you can get from the play store URL easily https://companion.home-assistant.io/docs/integrations/android-webview#links then format it as such
I've been looking at the same challenge today, I want a picture card to link directly to a camera stream in app.
so far I've found that I can set:
tap_action:
action: url
url_path: app://com.oceanwing.battery.cam```
to launch directly in the the eufy security app. I haven't yet worked out how to get the intent to go directly to an action within an app, however I have a pretty good lead here, using adb to log the intent: https://android.stackexchange.com/questions/23687/finding-out-the-intents-an-app-uses-internally
you can try looking at a manifest inspector to see if they have a specific intent for that
looking at logcat is helpful too especially if you can reproduce it using another app or even a notification from their app that takes you to it
This is my goal for later tonight. Got a few other things to do before hand. I found a few promising apps (shortcut explorer and Activity Launcher) but eufy in particular seems to have thousands of non descript actions. Logcat will most likely be the way
the reason why i mentioned the manifest is because apps are required to define them there like our app and our location update intent https://github.com/home-assistant/android/blob/master/app/src/main/AndroidManifest.xml#L226 https://companion.home-assistant.io/docs/core/location#sending-an-intent
I was just having a look at the manifest file from a downloaded apk. I'm a bit hampered by availability of tools until later though.
this site provides a list of activities that aligns with what I see in the AndroidManifest.xml file: https://aapks.com/apk/eufysecurity/version/51449336/
you can also try to email and ask lol that woudl be the best answer if they respond
i know tinycam pro supports it
That was my first move about an hour ago - email already sent. There's no real reason that they wouldn't provide instruction for it. It's just a shortcut.
may seem like a shortcut but its all about what hte code supports and if they want users to use that feature
I just need to get through the customer service hurdles to an android dev.
some apps actually have docs for things like this
if you get tired of banging your head you can always hook up the cams to tiny cam and use that since it has a working system π
the dev had posted online a list of variables supported to do things like this
but the app also supports tasker so you can just setup an intent so tasker can do its thing
I could look in to that, I don't know anything about tiny cam (yet) though. The two eufy cameras I have are built in to a floodlight and a doorbell and don't support RTSP. I wasn't happy with the reliability of the streaming solution within HA and figured I may as well just link to the app. I don't need to stream often and it will always be on an android device.
its a great app especially if you have multiple cameras from different manufacturers. I use it as a baby monitor on the TV too, automated with tasker lol...looks like they added support for Eufy a couple years ago just need to select the manufacturer and provide login details
ive been using it for years, great dev thats super responsive too
That's awesome, I will take a look and see how it integrates with these devices.
OK I used adb logcat to try and collect useful things when I chased a notification to a live stream.
This looks like something:
ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=com.oceanwing.battery.cam cmp=com.oceanwing.battery.cam/.main.SplashActivity} from uid 10041
Hello! I have a wierd problem after exposing my app. it works just fine in browsers on my laptop and on my android when connected to wifi. however when i use external url it opens a chrome tab with domain/lovelace?external_auth=1
and it doesn t let me log in
if i delete that external_auth=1 from the link and let it like lovelace/0 it works i can do stuff on it but it acts like my phone isn t connected to the app
i saw that i need to put an ssl certificate on my phone. i downloaded my cert from nginx proxy manager and put it on my phone but it still doesn t work
data:
message: command_activity
data:
channel: com.mm.android.amcrestsmarthome
tag: android.intent.action.VIEW
title: Open Amcrest```
I am trying to open my Amcrest App with an Automation
However this just aint working
Why not use the command to launch an app? https://companion.home-assistant.io/docs/notifications/notification-commands#launch-app
You probably have something misconfigured this page may have some tips https://companion.home-assistant.io/docs/troubleshooting/networking
Let me give this a try, thanks for letting me know about this! Will it work with both Android and IOS tho?
only android, not sure about iOS has a method to support it
Thanks! I will take note of that and keep my Wall Tablet android based, wanted to go with an iPad
data:
message: command_launch_app
data:
channel: com.mm.android.amcrestsmarthome
tag: android.intent.action.VIEW
This did not work out for me
With or without the tag, I just gotten a notification from Home Assistant and when I click it nothing happens
Ah im dumb, i needed to change channel! Thank you so much!
you also don't use tag there π
lol could not figure out why my wife was still getting messed up command notifications after I fixed my automationa
she wasn't in the app beta π
hmm I'm not sure where that gif came from lol I was more amused than anything
this channel is only for the official HA android app, for our app the APKs are built after every commit and that is done via a github action. All code is on github too.
I've been having issues recently with the app disconnecting from the server and not getting updates or even responding to notification-based commands. I'm not sure if its the app or that I'm running it on Fire tablets.
Hello, stoped reciving messages from the app, but no errors in the log! It was ok and now stoped, could it be the limit was reached? Does this generate a error?
have you seen any errors in teh logs?
make sure to check HA core or companion app logs.....there will be an error if you reach the daily limit of 500 messages
Any ideea why some phone sensors apper as unknown?
Such as next alarm and volume ringer
Next alarm I know that only shows when you have a alarm set
I have alarms set
In the companion app settings it even shows me correctly when that is
It s very wierd
Ok for alarm there was an allow list and i set it to android now it works. Volume level still doesn t work but i guess that s not such a big deal
Nvm now it works
per day
are you using the persistent connection? If not have you made sure to send in the critical notification format in case they are just delayed?
Nothing on the server stands out.
what about companion app logs?
Actually have no idea where those are.
Will have to look when I get back home again.
Configuration > Companion App > Show and Share Logs
youll wnat to reproduce the issue and check there
It happens often, so it should be trivial.
Yes its persistente
you should see some sort of logging in HA core or companion apps if there is a failure then
So eufy got back to me: "So sorry to say that we cannot provide such information."
Do you or anyone ekse know how to use logcat to rebuild an android app intent? My goal here is to use the 'tap action' on a picture card to open a camera stream in the eufy app directly.
I did pull some entries out of logcat but was only able to launch the app, not the stream.
https://companion.home-assistant.io/docs/integrations/android-webview/
https://developer.chrome.com/docs/multidevice/android/intents/
i dont use the eufy app so I wont be able to answer, I also dont see anything on stackoverflow either. You can try to use a manifest viewer to discover new intents but its all giong to be trial and error. Intents are an advanced feature that requires research so theres no easy answer to anything here. Logcat can be used to discover intents but you may not see all the data needed.
you can try asking in this thread if anyone has discovered antyhing, I try to keep the first post up to date with all hte examples i can find to keep things easier: https://community.home-assistant.io/t/android-intents-sending-receiving-list-starting-activities-too/276192 you'll see tinycam mentioned there with a link to reddit where the dev responded with a list of optoins to use too
AH OK I'll try posting over there. I did set up tiny cam and have a look, I was able to get my streams working but it was quite slow to connect and hard to switch between streams on the same account, then adding that I'd need the app on all phones in thehouse, where they already have eufy up and running. I think opening the eufy app is a better solution that tinycam directo to stream for our needs. I'll see if the intent can be reverse engineered somehow using that link.
is a manifest reader something that I do on my phone? Can I do it without root access?
<application hasCode="false">
<meta-data name="com.android.vending.derived.apk.id" value="3"/>
</application>
</manifest>```
Doesn't seem to give much away there
thats not the complete manifest and yes you can do it from your phone, no root is needed
Appreciate your patience. When I used an app (Apk Analyzer) to export the manifest.xml that is all the content. The app does show a lot of activites, services and permissions but not within the .xml
make sure to look at AndroidManifest.xml
this app? https://play.google.com/store/apps/details?id=sk.styk.martin.apkanalyzer&hl=en_US&gl=US if you see one of the screenshots it shows a full manifest listing permissions and intent filters etc..
That's the one. Yes I'm getting the above code block from the same location. Other apps give a lot more content, this one just seems brief.
07-21 11:23:57.859 1832 4838 I ActivityTaskManager: START u0 {cmp=com.oceanwing.battery.cam/com.eufy.security.floodlight.domain.video.IcTabVideoActivity (has extras)} from uid 10278
07-21 11:23:58.548 1832 2274 I ActivityTaskManager: Displayed com.oceanwing.battery.cam/com.eufy.security.floodlight.domain.video.IcTabVideoActivity: +686ms
07-21 11:24:10.511 1832 4882 I ActivityTaskManager: START u0 {cmp=com.oceanwing.battery.cam/com.eufy.security.floodlight.domain.video.IcTabVideoActivity (has extras)} from uid 10278
07-21 11:24:10.721 1832 2274 I ActivityTaskManager: Displayed com.oceanwing.battery.cam/com.eufy.security.floodlight.domain.video.IcTabVideoActivity: +209ms```
I'm back to playing in logcat...
Those extras are really what the developers can tell you what to put in
If they don't print them then they don't print them
I'm probably on a wild goose chase then
can you use tasker to take you to the right spot?
you can always interact with tasker and have it do its thing
I haven't actually used tasker before
It looks like the same issue, the intents exposed by the app don't allow to go to the right spot. I'm going to call it quits on this!
These log statements are actually from the system, not the app
So "they" can't choose what to print
Made a widget on my Android system to disable the alarm. When I enter the code to send it drops a digit. Can I fix this ?
in this case i meant the app woudl print its own log statement of the extras that it received...its a choice the app makes like for example we choose to print the entire notification JSON once received
Yesterday's update seems to have somehow fixed the problem I was having. Weird.
Sure but most production apps don't expect users to read the logs, so no need to print it (for example by using a wrapper that turns it off on non-debug builds)