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.
Not sure I fully understand what you want but my guess is you’ll have to convert the value to a number, so add | int after the value before you divide. May need some parenthesis too
I tried that but will try again. Do I have to leave the sensor as is without the value_template and create a separate template sensor or something? Leaving the above without the value_template then creating the below gives me 100% but is another sensor to maintain:
By the way, one other thing I’m wondering with value_template. If I have a value that has a semi-colon in it and I want the left half of it, how would I do that? So if an SNMP call returns:
Dell 2130cn Color Laser; Net 13.22,ESS 200906261554
How would I just get the Dell 2130cn Color Laser part?