Closed Indianagrenoble closed 1 year ago
Hey, inverting from a negative home value to a positive home value is unfortunately not possible and you will have to create a new template sensor that multiplies that value by -1
Could you explain me how I do this please ? How create a template sensor with value x -1 ? bye here ?
I don't know how much you know about how to access the YAML config files, just let me know if you need any help with that, otherwise, access you configuration.yaml and type in:
template:
- sensor:
- name: "THE_NAME_YOU_WANT_TO_HAVE"
unit_of_measurement: "W"
state: {{ (states('sensor.YOUR_ENTITY_ID') |float) * -1 }}
You are the King Félix !
I have have a full access to my Configuration.yaml file by Studio Code Server and File Editor too...
Thank you very much ;)
With your help, I progress slowly but strongly !
Wow, thank you for the compliment 😅 I'm glad I was able to help you!
Dear Felix,
I would like Add more Consumers inside house monitored...
Do you think Is it possible ?
Best Regards Alexandre
Dear Félix,
I try to invert an YAML value in your code...
My code
Thanks for your help