home-assistant / home-assistant/iOS

sensor.iphone_step is a string not an int

Open
#3,680 1 comment 0 reactions 0 assignees View on GitHub
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**
Image

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.