How to use "stateattr" filter with "Low Power Mode" attribute?

There is a “Mobile App” integration which creates this sensor:
изображение

The attribute’s name is “Low Power Mode”.
I wonder how to address this attribute.

In my experience, if some attribute is displayed as “Xxx Yyy Zzz”, that means that it’s actual name is “xxx_yyy_zzz”.
But it realized that I must address the attribute exactly as “Low Power Mode”:

Next I tried to use a “selectattr” filter with no success:

    {{states | selectattr('attributes["Low Power Mode"]', 'eq', false) |
    map(attribute='entity_id') | list }}
    {{states | selectattr('attributes.low_power_mode', 'eq', false) |
    map(attribute='entity_id') | list }}

Is it possible to use the “selectattr” filter with similar attributes?

1 Like

Not sure why… but this works for me:

{{ states| selectattr('attributes.Low Power Mode', 'eq', false) | map(attribute='entity_id') | list }}

And BTW: this seems not to be an “issue” related to your device. I am having exactly the same with an iPhone & MacBook

That’s because the official mobile app integration (HA Companion app) creates this crazy attribute for all iOS Apple devices. So a lot of people should see this :wink:

1 Like

Surely not, it’s a common issue for the whole Mobile App integration.

Yes, it really works - and this seems strange…