Replies: 1 comment 3 replies
-
remove |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have used this line for the battery (copy - paste) from the example --> jq: .state|tonumber * -1 # this does the trick to invert the sensor value for evcc
But EVCC shows "Batterie laden" while discharging.
What is wrong in my code:
type: custom
power:
source: http
uri: http:// [my-HA-INSTANCE] :8123/api/states/sensor.battery_power
method: GET
headers:
- Authorization: Bearer [my token]
insecure: true
jq: .state|tonumber * -1 # this does the trick to invert the sensor value for evcc
timeout: 2s
I have also tried to delete the " * -1 " but nothing was changed, I believe there is no effect of the *-1 in this line IN MY CODE.
I have also restarted the HA after every change.
How can I make the *-1 work?
Thank you all in advance!
Beta Was this translation helpful? Give feedback.
All reactions