I recently upgraded powercalc to the latest version and I'm getting this error everytime HA starts:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 235, in _async_setup_component
result = await task
File "/config/custom_components/powercalc/__init__.py", line 166, in async_setup
await autodiscover_entities(config, domain_config, hass)
File "/config/custom_components/powercalc/__init__.py", line 205, in autodiscover_entities
manual_configuration = get_manual_configuration(config, entity_entry.entity_id)
File "/config/custom_components/powercalc/__init__.py", line 245, in get_manual_configuration
for item in sensor_config:
TypeError: 'NoneType' object is not iterable
My sensors are configured like this:
configuration.yaml:
powercalc:
create_utility_meters: true
energy_sensor_naming: "{}"
template:
binary_sensor:
- name: fridge_always_on
state: on
- name: ha_server_always_on
state: on
- name: router_always_on
state: on
- name: alarm_always_on
state: on
- name: alarm_range_extender_always_on
state: on
- name: doorbell_always_on
state: on
- name: wifi_btdisks_always_on
state: on
- name: switch_estudio_always_on
state: on
- name: switch_utility_always_on
state: on
- name: camara_entrada_always_on
state: on
- name: camara_ruben_always_on
state: on
- name: echo_show_always_on
state: on
- name: echo_dot_always_on
state: on
- name: echo_always_on
state: on
- name: siro_always_on
state: on
- name: wdmycloud_always_on
state: on
sensor:
- name: roomba_charging_state
unique_id: roomba_charging_state
icon: 'mdi: battery-charging-medium'
state: >
{% if states('vacuum.roomba') == 'docked' %}
{% if int(state_attr('vacuum.roomba', 'battery_level')) < 100 %}
charging
{% else %}
docked
{% endif %}
{% else %}
cleaning
{% endif %}
sensor powercalc_label: !include powercalc.yaml
I've tried disabling and re-enabling some of the sensors with no luck.
Any help will be much appreciated (BTW great work with the component, love it!!)
I recently upgraded powercalc to the latest version and I'm getting this error everytime HA starts:
My sensors are configured like this:
configuration.yaml:
powercalc.yaml:
I've tried disabling and re-enabling some of the sensors with no luck. Any help will be much appreciated (BTW great work with the component, love it!!)