Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

How to get a percentage with Value_Template?

$
0
0

@jriker1 wrote:

I have the below.

- platform: snmp
  name: Dell 2130CN Cyan
  host: 192.168.0.4
  baseoid: 1.3.6.1.2.1.43.11.1.1.9.1.1
  accept_errors: true
  scan_interval: 86400
  unit_of_measurement: '%'

So this shows how many pages are left that it can print for each color. Which doesn’t make sense to me as each page isn’t only printing one color. I just want to know the percent of each color left. So assumption is when it’s full there is 2500 sheets it can print. So I was thinking divide how many pages the above oid returns by 2500 and multiply it by 100. Without a value_template I get 2500 for one I just replaced. But when I try value templates it just gives me a dash.

Any help would be appreciated.

Posts: 10

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles