home-assistant / home-assistant/iOS
sensor.iphone_step is a string not an int
Open
bug
ios
- Dominant language
- Swift
- Stars
- 2.4k
- Forks
- 520
- Avg merge
- 7h 27m
- Merged PRs (30d)
- 264
Description
Hi,
In my experimentation with iOS application.
App version: 2025.5
“Steps” appears as a string instead of an integer so I can not graph or build automation based on value.
**Screenshots**
It seems a bug, It should be numeric (have a unit).
I found a workaround to add a graph-able value by adding in configuration.yaml
```yaml
template:
- sensor:
- name: ip14step
unique_id: ip14stepcalc
state: >
{{ '%d'|int(states('sensor.ip14p_steps')) }}
state_class: measurement
```
tks,
W.
Contributor guide
Assessment
This issue has not been assessed yet.