Widget not working - triggering automation

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.

Thanks

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:

Thanks for your feedback!

I removed internal IP address to avoid any problem. So, only external IP is saved.
I tried again, still no success. Logs:

I tried Ariela app to create this widget and works well.

Thanks and best regards

completely different error now, the app cannot connect

java.net.ConnectException: Failed to connect to ********.duckdns.org/********:8123
02-25 11:04:12.978  8702  8841 E SensorReceiver: Caused by: java.net.ConnectException: failed to connect to ********.duckdns.org/******** (port 8123) from /192.168.1.145 (port 41072) after 10000ms: isConnected failed: ECONNREFUSED (Connection refused)

Yes, but why its not working?
I can access to the app and everythings works as expected.
Also widget animation says it worked.

according to the last log, nothing was working but I also did not see the log lines regarding the widget