android icon indicating copy to clipboard operation
android copied to clipboard

SIM sensor attributes not updated

Open tpjanssen opened this issue 1 month ago • 2 comments

Home Assistant Android app version(s): 2025.11.4-full

Android version(s): 16

Device model(s): Samsung S25

Home Assistant version: 2025.11.3

Last working Home Assistant release (if known): -

Description of problem, include YAML if issue is related to notifications: My SIM sensor attributes (docs) don't update. Steps to reproduce:

  1. Read "data roaming" status
  2. Toggle data roaming for SIM card 1
  3. Read "data roaming" status, you can see it isn't updated.

When openening the sensor in the companion app, or disable and re-enable the sensor in the companion app, the correct status is shown and updated accordingly. Rebooting the phone doesn’t enforce the correct sensor state, nor does toggling flight mode.

Not sure if it this case for the other attributes as well, but I can't imagine this is expected behaviour?

Companion App Logs:


Screenshot or video of problem:

Additional information:

tpjanssen avatar Dec 03 '25 06:12 tpjanssen

Sensor attributes only update when the state is updated or if entity is re-registered, why not use teh actual data roaming sensor?

https://companion.home-assistant.io/docs/core/sensors#mobile-data-sensors

dshokouhi avatar Dec 03 '25 20:12 dshokouhi

My idea was to create a template to detect if I am roaming, by using attributes "Mobile Country Code" or "Mobile Network Code". I was just testing if I could force the sensor to change, the "data roaming" property is the only property I can actually change.

tpjanssen avatar Dec 03 '25 20:12 tpjanssen

Sensor attributes only update when the state is updated or if entity is re-registered, why not use teh actual data roaming sensor?

https://companion.home-assistant.io/docs/core/sensors#mobile-data-sensors

I can confirm that the "carrier name" attribute is also not updated.

tpjanssen avatar Dec 14 '25 17:12 tpjanssen