I created a widget using the app to trigger an automation.
Data is enabled in background. Location is enabled, everything looks good.
Widget animation is loaded and finished successfully. Nevertheless, automation hasn’t been triggered.
LOGS:
What i see in logs it’s somehow it’s trying to access local address even I’m connecting with mobile data, and should take external address.
With WIFI it doesn’t work, but widget shows “error” icon.
No you are wrong, the service call shows that it was successful so you may have an error in HA core to look at.
You also have other issues to look into:
The device believes it is also connected to your wifi network as evidenced by the logs
2-24 12:14:35.751 10719 18483 D UrlRepository: localUrl is: true and usesInternalSsid is: true
02-24 12:14:41.000 10719 19200 E SensorReceiver: Issue registering sensor: battery_level
02-24 12:14:41.000 10719 19200 E SensorReceiver: io.homeassistant.companion.android.common.data.integration.IntegrationException: java.net.ConnectException: Failed to connect to /192.168.1.119:8123
You also cannot use https with a local IP address as the SSL certificate will not be valid there.
02-24 12:14:41.091 10719 10760 E SensorReceiver: io.homeassistant.companion.android.common.data.integration.IntegrationException: javax.net.ssl.SSLPeerUnverifiedException: Hostname 192.168.1.119 not verified: