Some global configurations don't seem to work #1866
-
I just installed this over the weekend and have a few recessed ceiling lights using lutron switches added. Before I add all of my lights I wanted to setup a proper global configuraton that makes the most sense. From testing the 3 lights I have so far I am not seeing any impact from the 3 global configurations below, whether true or false, they don't seem to work. After some testing it looks like none of these will change from the default setting even after properly inputting this code into the config file powercalc: I was able to confirm the utility_meter_types works as it does not create a weekly meter, but I have to manually select the utility meter when adding the lights, same with ignore_unavailable_state. powercalc: Are other people seeing this issue? It may be a new issue but I could not find any similar results |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I see the issue, but is not easily solvable. The system is designed to make all individual sensor configuration override global configuration. This works correctly for power sensors setup with YAML. For example: powercalc:
create_utility_meters: true
sensors:
- entity_id: light.my_light
create_utility_meters: false In this case no utility meters are created for my light, regardless of the global config set to true. For the sensors made with GUI however the value of the toggle is saved to the configuration.
I will give it some thought today. |
Beta Was this translation helpful? Give feedback.
I have thought about it some more and came up with the following improvements.
create_utility_meters: true
in global YAML config the toggle in the GUI will also be enabled when creating a new entry. This will work for auto discovered items and when you create a GUI configuration manually.This currently applies to
create_utility_meters
,create_energy_sensor
,energy_integration_method
andignore_unavailable_state
.