jmcollin78 / solar_optimizer

The Solar Optimizer integration for Home Assistant starts and stops your equipments depending on the Solar net production
MIT License
53 stars 10 forks source link

For the attribute power_entity_id, the number domain is not accepted #2

Closed jmcollin78 closed 10 months ago

jmcollin78 commented 10 months ago

Impossible to configure with this config:

    - name: "Equipement H"
      entity_id: "input_boolean.fake_device_h"
      power_entity_id: "number.tesla_amps"
      power_min: 660
      power_max: 3960
      power_step: 660
      # check_active_template: "{{ not is_state('input_select.fake_tesla_1', '0 A') }}"
      check_usable_template: "{{ is_state('input_boolean.device_h_enable', 'on') }}"
      duration_min: 1
      duration_stop_min: 0.1
      duration_power_min: 0.1
      action_mode: "service_call"
      activation_service: "input_boolean/turn_on"
      deactivation_service: "input_boolean/turn_off"
      change_power_service: "input_number/set_value"
      convert_power_divide_factor: 660

This lead to error: Entity number.wallbox_portal_max_charging_current belongs to domain number, expected ['input_number', 'sensor']

jmcollin78 commented 10 months ago

Fixed in https://github.com/jmcollin78/solar_optimizer/releases/tag/1.4.3 release.