# Virtual device problem - value from solar battery not updating

**URL:** <https://community.homey.app/t/virtual-device-problem-value-from-solar-battery-not-updating/116799>\
**Category:** Questions & Help\
**Created:** [September 27, 2024, 12:32pm UTC](https://community.homey.app/t/virtual-device-problem-value-from-solar-battery-not-updating/116799 "2024-09-27T12:32:49Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [September 27, 2024, 9:21pm UTC](https://community.homey.app/t/virtual-device-problem-value-from-solar-battery-not-updating/116799/9 "2024-09-27T21:21:35Z")

</div>

The issue is: homey works with 0 to 1 values internally, and in flow cards. Somehow when you use % as unit, it multiplies the value with 100 to convert it into a % value.  
The battery reports 0 to 100 probably, so you’ll have to add a / 100 (divide by 100) calculation.  
On top of my head you’d enter `$value/100` into the BLL field to solve it

> [@\[APP\]\[Pro\] Advanced Virtual Device (Device Capabilities App) with Unique Text Status Indicator](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/617):
>
> I think it is a Athom bug/definition thing… See picture below. Selected 0.9% is displayed as 90%. See also [Lamellas - run down and then tilt - #27 by robertklep](https://community.homey.app/t/lamellas-run-down-and-then-tilt/115738/27) Athom has fallen into their own trap. It has to do that a parameter which defines a percentage is always between 0 and 1.

---

_[View the full topic](https://community.homey.app/t/virtual-device-problem-value-from-solar-battery-not-updating/116799)._
