jonasbkarlsson / ev_smart_charging

Electric vehicle smart charging for Home Assistant.
MIT License
184 stars 27 forks source link

`sensor.ev_smart_charging_charging` switches state quickly on restart #309

Closed hmmbob closed 3 months ago

hmmbob commented 3 months ago

Version of the custom_component

Version 1.11.2

Configuration

I'm using latest version of the component, and the following automation to trigger the charger to go charge or stop charging:

automation:
  - id: ev_handle_automatic_cheapest_charge
    alias: "Laad de auto tijdens de goedkoopste uren"
    description: "Automatically charge my car in the cheapest hours"
    mode: single
    trigger:
      - platform: state
        entity_id: sensor.ev_smart_charging_charging
        from: "off"
        to: "on"
        id: ev_cheapest_charge_start
      - platform: state
        entity_id: sensor.ev_smart_charging_charging
        from: "on"
        to: "off"
        id: ev_cheapest_charge_stop
    action:
      - alias: "Choose to start or stop charging"
        choose:
          - conditions:
              - condition: trigger
                id: ev_cheapest_charge_start
            sequence:
              - alias: "Select SMART charging option"
                action: select.select_option
                target:
                  entity_id: select.smartevse_6360_mode
                data:
                  option: Smart
          - conditions:
              - condition: trigger
                id: ev_cheapest_charge_stop
            sequence:
              - alias: "Select charging option OFF"
                action: select.select_option
                target:
                  entity_id: select.smartevse_6360_mode
                data:
                  option: "Off"

Describe the bug

On every restart of Home Assistant, sensor.ev_smart_charging_charging quickly switches from off to on to off again. This happens so quickly that the automation still runs to activate the charging and thus unintended charging takes place.

image ("uitgezet" means `off', "aangezet" means 'on')

Ideally, the sensor just remains in off state.

Debug log

2024-08-09 16:09:16.607 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration sonoff which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-08-09 16:09:25.175 DEBUG (MainThread) [custom_components.ev_smart_charging] async_setup_entry
2024-08-09 16:09:25.175 DEBUG (MainThread) [custom_components.ev_smart_charging]
-------------------------------------------------------------------
EV Smart Charging
Version: v1.11.2
This is a custom integration!
If you have any issues with this you need to open an issue here:
https://github.com/jonasbkarlsson/ev_smart_charging/issues
Home Assistant: 2024.8.0
-------------------------------------------------------------------
2024-08-09 16:09:25.175 DEBUG (MainThread) [custom_components.ev_smart_charging] Input sensors not ready.
2024-08-09 16:09:35.120 DEBUG (MainThread) [custom_components.ev_smart_charging] async_setup_entry
2024-08-09 16:09:35.274 DEBUG (MainThread) [custom_components.ev_smart_charging.sensor] EVSmartCharging.sensor.py
2024-08-09 16:09:35.274 DEBUG (MainThread) [custom_components.ev_smart_charging.sensor] EVSmartChargingSensor.__init__()
2024-08-09 16:09:35.274 DEBUG (MainThread) [custom_components.ev_smart_charging.sensor] EVSmartChargingSensor.__init__()
2024-08-09 16:09:35.274 DEBUG (MainThread) [custom_components.ev_smart_charging.sensor] EVSmartChargingSensorStatus.__init__()
2024-08-09 16:09:35.274 DEBUG (MainThread) [custom_components.ev_smart_charging.sensor] EVSmartChargingSensor.__init__()
2024-08-09 16:09:35.276 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] EVSmartChargingCoordinator.update_sensors()
2024-08-09 16:09:35.276 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] entity_id = None
2024-08-09 16:09:35.276 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] new_state = None
2024-08-09 16:09:35.296 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] charging_hours = 5
2024-08-09 16:09:35.296 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] ready_hour = 2024-08-10 06:00:00+00:00
2024-08-09 16:09:35.298 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] lowest_hours = [16, 17, 18, 19, 31]
2024-08-09 16:09:35.301 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Raw(schedule).number_of_nonzero() = 0
2024-08-09 16:09:35.302 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Raw(schedule_min_soc).number_of_nonzero() = 0
2024-08-09 16:09:35.302 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Use schedule
2024-08-09 16:09:35.303 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] self._max_price = 0.0
2024-08-09 16:09:35.304 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] Current price = 0.1409031
2024-08-09 16:09:35.304 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] EVSmartChargingCoordinator.update_state()
2024-08-09 16:09:35.304 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] charging_value = 0.0
2024-08-09 16:09:35.304 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] turn_on_charging = False
2024-08-09 16:09:35.304 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] current_value = False
2024-08-09 16:09:35.304 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] Charging summary removed
2024-08-09 16:09:35.305 DEBUG (MainThread) [custom_components.ev_smart_charging.switch] EVSmartCharging.switch.py
2024-08-09 16:09:35.306 DEBUG (MainThread) [custom_components.ev_smart_charging.switch] EVSmartChargingSwitchActive.__init__()
2024-08-09 16:09:35.306 DEBUG (MainThread) [custom_components.ev_smart_charging.switch] EVSmartChargingSwitch.__init__()
2024-08-09 16:09:35.306 DEBUG (MainThread) [custom_components.ev_smart_charging.switch] EVSmartChargingSwitchApplyLimit.__init__()
2024-08-09 16:09:35.306 DEBUG (MainThread) [custom_components.ev_smart_charging.switch] EVSmartChargingSwitch.__init__()
2024-08-09 16:09:35.306 DEBUG (MainThread) [custom_components.ev_smart_charging.switch] EVSmartChargingSwitchContinuous.__init__()
2024-08-09 16:09:35.306 DEBUG (MainThread) [custom_components.ev_smart_charging.switch] EVSmartChargingSwitch.__init__()
2024-08-09 16:09:35.306 DEBUG (MainThread) [custom_components.ev_smart_charging.switch] EVSmartChargingSwitchEVConnected.__init__()
2024-08-09 16:09:35.306 DEBUG (MainThread) [custom_components.ev_smart_charging.switch] EVSmartChargingSwitch.__init__()
2024-08-09 16:09:35.306 DEBUG (MainThread) [custom_components.ev_smart_charging.switch] EVSmartChargingSwitchKeepOn.__init__()
2024-08-09 16:09:35.306 DEBUG (MainThread) [custom_components.ev_smart_charging.switch] EVSmartChargingSwitch.__init__()
2024-08-09 16:09:35.306 DEBUG (MainThread) [custom_components.ev_smart_charging.switch] EVSmartChargingSwitchOpportunistic.__init__()
2024-08-09 16:09:35.307 DEBUG (MainThread) [custom_components.ev_smart_charging.switch] EVSmartChargingSwitch.__init__()
2024-08-09 16:09:35.307 DEBUG (MainThread) [custom_components.ev_smart_charging.switch] EVSmartChargingSwitchLowPriceCharging.__init__()
2024-08-09 16:09:35.307 DEBUG (MainThread) [custom_components.ev_smart_charging.switch] EVSmartChargingSwitch.__init__()
2024-08-09 16:09:35.307 DEBUG (MainThread) [custom_components.ev_smart_charging.switch] EVSmartChargingSwitchLowSocCharging.__init__()
2024-08-09 16:09:35.307 DEBUG (MainThread) [custom_components.ev_smart_charging.switch] EVSmartChargingSwitch.__init__()
2024-08-09 16:09:35.308 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] switch_active_update = True
2024-08-09 16:09:35.308 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] EVSmartChargingCoordinator.update_sensors()
2024-08-09 16:09:35.308 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] entity_id = None
2024-08-09 16:09:35.308 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] new_state = None
2024-08-09 16:09:35.314 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] charging_hours = 5
2024-08-09 16:09:35.314 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] ready_hour = 2024-08-10 06:00:00+00:00
2024-08-09 16:09:35.315 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] lowest_hours = [16, 17, 18, 19, 20]
2024-08-09 16:09:35.318 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Raw(schedule).number_of_nonzero() = 0
2024-08-09 16:09:35.318 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Raw(schedule_min_soc).number_of_nonzero() = 0
2024-08-09 16:09:35.319 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Use schedule
2024-08-09 16:09:35.320 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] self._max_price = 0.0
2024-08-09 16:09:35.320 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] Current price = 0.1409031
2024-08-09 16:09:35.320 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] EVSmartChargingCoordinator.update_state()
2024-08-09 16:09:35.321 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] charging_value = 0.0
2024-08-09 16:09:35.321 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] turn_on_charging = False
2024-08-09 16:09:35.321 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] current_value = False
2024-08-09 16:09:35.321 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] Charging summary removed
2024-08-09 16:09:35.322 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] switch_apply_limit_update = True
2024-08-09 16:09:35.323 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] EVSmartChargingCoordinator.update_sensors()
2024-08-09 16:09:35.323 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] entity_id = None
2024-08-09 16:09:35.323 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] new_state = None
2024-08-09 16:09:35.332 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] charging_hours = 5
2024-08-09 16:09:35.333 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] ready_hour = 2024-08-10 06:00:00+00:00
2024-08-09 16:09:35.333 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] lowest_hours = [16, 17, 18, 19, 20]
2024-08-09 16:09:35.337 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Raw(schedule).number_of_nonzero() = 0
2024-08-09 16:09:35.337 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Raw(schedule_min_soc).number_of_nonzero() = 0
2024-08-09 16:09:35.338 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Use schedule
2024-08-09 16:09:35.339 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] self._max_price = 0.0
2024-08-09 16:09:35.340 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] Current price = 0.1409031
2024-08-09 16:09:35.340 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] EVSmartChargingCoordinator.update_state()
2024-08-09 16:09:35.340 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] charging_value = 0.0
2024-08-09 16:09:35.340 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] turn_on_charging = False
2024-08-09 16:09:35.340 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] current_value = False
2024-08-09 16:09:35.340 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] Charging summary removed
2024-08-09 16:09:35.342 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] switch_continuous_update = False
2024-08-09 16:09:35.342 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] EVSmartChargingCoordinator.update_sensors()
2024-08-09 16:09:35.342 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] entity_id = None
2024-08-09 16:09:35.342 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] new_state = None
2024-08-09 16:09:35.350 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] charging_hours = 5
2024-08-09 16:09:35.350 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] ready_hour = 2024-08-10 06:00:00+00:00
2024-08-09 16:09:35.350 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] lowest_hours = [16, 17, 18, 19, 31]
2024-08-09 16:09:35.354 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Raw(schedule).number_of_nonzero() = 0
2024-08-09 16:09:35.354 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Raw(schedule_min_soc).number_of_nonzero() = 0
2024-08-09 16:09:35.354 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Use schedule
2024-08-09 16:09:35.356 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] self._max_price = 0.0
2024-08-09 16:09:35.356 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] Current price = 0.1409031
2024-08-09 16:09:35.356 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] EVSmartChargingCoordinator.update_state()
2024-08-09 16:09:35.356 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] charging_value = 0.0
2024-08-09 16:09:35.357 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] turn_on_charging = False
2024-08-09 16:09:35.357 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] current_value = False
2024-08-09 16:09:35.357 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] Charging summary removed
2024-08-09 16:09:35.359 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] switch_ev_connected_update = True
2024-08-09 16:09:35.359 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] EVSmartChargingCoordinator.update_sensors()
2024-08-09 16:09:35.359 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] entity_id = None
2024-08-09 16:09:35.359 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] new_state = None
2024-08-09 16:09:35.369 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] charging_hours = 5
2024-08-09 16:09:35.369 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] ready_hour = 2024-08-10 06:00:00+00:00
2024-08-09 16:09:35.369 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] lowest_hours = [16, 17, 18, 19, 31]
2024-08-09 16:09:35.372 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Raw(schedule).number_of_nonzero() = 0
2024-08-09 16:09:35.373 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Raw(schedule_min_soc).number_of_nonzero() = 0
2024-08-09 16:09:35.373 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Use schedule
2024-08-09 16:09:35.374 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] self._max_price = 0.0
2024-08-09 16:09:35.374 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] Current price = 0.1409031
2024-08-09 16:09:35.374 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] EVSmartChargingCoordinator.update_state()
2024-08-09 16:09:35.374 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] charging_value = 0.0
2024-08-09 16:09:35.374 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] turn_on_charging = False
2024-08-09 16:09:35.375 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] current_value = False
2024-08-09 16:09:35.375 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] Charging summary removed
2024-08-09 16:09:35.376 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] switch_keep_on_update = False
2024-08-09 16:09:35.376 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] EVSmartChargingCoordinator.update_sensors()
2024-08-09 16:09:35.376 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] entity_id = None
2024-08-09 16:09:35.376 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] new_state = None
2024-08-09 16:09:35.382 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] charging_hours = 5
2024-08-09 16:09:35.382 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] ready_hour = 2024-08-10 06:00:00+00:00
2024-08-09 16:09:35.382 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] lowest_hours = [16, 17, 18, 19, 31]
2024-08-09 16:09:35.388 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Raw(schedule).number_of_nonzero() = 0
2024-08-09 16:09:35.389 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Raw(schedule_min_soc).number_of_nonzero() = 0
2024-08-09 16:09:35.389 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Use schedule
2024-08-09 16:09:35.390 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] self._max_price = 0.0
2024-08-09 16:09:35.390 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] Current price = 0.1409031
2024-08-09 16:09:35.390 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] EVSmartChargingCoordinator.update_state()
2024-08-09 16:09:35.391 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] charging_value = 0.0
2024-08-09 16:09:35.391 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] turn_on_charging = False
2024-08-09 16:09:35.391 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] current_value = False
2024-08-09 16:09:35.391 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] Charging summary removed
2024-08-09 16:09:35.392 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] switch_opportunistic_update = False
2024-08-09 16:09:35.392 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] EVSmartChargingCoordinator.update_sensors()
2024-08-09 16:09:35.392 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] entity_id = None
2024-08-09 16:09:35.392 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] new_state = None
2024-08-09 16:09:35.397 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] charging_hours = 5
2024-08-09 16:09:35.397 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] ready_hour = 2024-08-10 06:00:00+00:00
2024-08-09 16:09:35.397 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] lowest_hours = [16, 17, 18, 19, 31]
2024-08-09 16:09:35.410 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Raw(schedule).number_of_nonzero() = 0
2024-08-09 16:09:35.410 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Raw(schedule_min_soc).number_of_nonzero() = 0
2024-08-09 16:09:35.411 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Use schedule
2024-08-09 16:09:35.412 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] self._max_price = 0.0
2024-08-09 16:09:35.413 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] Current price = 0.1409031
2024-08-09 16:09:35.413 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] EVSmartChargingCoordinator.update_state()
2024-08-09 16:09:35.413 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] charging_value = 0.0
2024-08-09 16:09:35.413 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] turn_on_charging = False
2024-08-09 16:09:35.413 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] current_value = False
2024-08-09 16:09:35.413 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] Charging summary removed
2024-08-09 16:09:35.415 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] switch_low_price_charging_update = True
2024-08-09 16:09:35.415 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] EVSmartChargingCoordinator.update_sensors()
2024-08-09 16:09:35.415 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] entity_id = None
2024-08-09 16:09:35.415 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] new_state = None
2024-08-09 16:09:35.420 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] charging_hours = 5
2024-08-09 16:09:35.420 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] ready_hour = 2024-08-10 06:00:00+00:00
2024-08-09 16:09:35.420 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] lowest_hours = [16, 17, 18, 19, 31]
2024-08-09 16:09:35.423 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Raw(schedule).number_of_nonzero() = 0
2024-08-09 16:09:35.425 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Raw(schedule_min_soc).number_of_nonzero() = 0
2024-08-09 16:09:35.425 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Use schedule
2024-08-09 16:09:35.426 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] self._max_price = 0.0
2024-08-09 16:09:35.426 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] Current price = 0.1409031
2024-08-09 16:09:35.426 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] EVSmartChargingCoordinator.update_state()
2024-08-09 16:09:35.427 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] charging_value = 0.0
2024-08-09 16:09:35.427 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] turn_on_charging = False
2024-08-09 16:09:35.427 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] current_value = False
2024-08-09 16:09:35.427 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] Charging summary removed
2024-08-09 16:09:35.428 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] switch_low_soc_charging_update = False
2024-08-09 16:09:35.428 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] EVSmartChargingCoordinator.update_sensors()
2024-08-09 16:09:35.428 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] entity_id = None
2024-08-09 16:09:35.428 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] new_state = None
2024-08-09 16:09:35.433 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] charging_hours = 5
2024-08-09 16:09:35.433 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] ready_hour = 2024-08-10 06:00:00+00:00
2024-08-09 16:09:35.433 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] lowest_hours = [16, 17, 18, 19, 31]
2024-08-09 16:09:35.438 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Raw(schedule).number_of_nonzero() = 0
2024-08-09 16:09:35.438 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Raw(schedule_min_soc).number_of_nonzero() = 0
2024-08-09 16:09:35.438 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Use schedule
2024-08-09 16:09:35.440 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] self._max_price = 0.0
2024-08-09 16:09:35.440 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] Current price = 0.1409031
2024-08-09 16:09:35.440 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] EVSmartChargingCoordinator.update_state()
2024-08-09 16:09:35.440 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] charging_value = 0.0
2024-08-09 16:09:35.440 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] turn_on_charging = False
2024-08-09 16:09:35.440 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] current_value = False
2024-08-09 16:09:35.441 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] Charging summary removed
2024-08-09 16:09:35.444 DEBUG (MainThread) [custom_components.ev_smart_charging.button] EVSmartCharging.button.py
2024-08-09 16:09:35.444 DEBUG (MainThread) [custom_components.ev_smart_charging.button] EVSmartChargingButton.__init__()
2024-08-09 16:09:35.444 DEBUG (MainThread) [custom_components.ev_smart_charging.button] self._attr_unique_id = f9e9bd8da7470e6c8275db29810f6528.button.manuallystartcharging
2024-08-09 16:09:35.444 DEBUG (MainThread) [custom_components.ev_smart_charging.button] EVSmartChargingButton.__init__()
2024-08-09 16:09:35.444 DEBUG (MainThread) [custom_components.ev_smart_charging.button] self._attr_unique_id = f9e9bd8da7470e6c8275db29810f6528.button.manuallystopcharging
2024-08-09 16:09:35.445 DEBUG (MainThread) [custom_components.ev_smart_charging.number] EVSmartCharging.number.py
2024-08-09 16:09:35.445 DEBUG (MainThread) [custom_components.ev_smart_charging.number] EVSmartChargingNumberChargingSpeed.__init__()
2024-08-09 16:09:35.445 DEBUG (MainThread) [custom_components.ev_smart_charging.number] EVSmartChargingNumber.__init__()
2024-08-09 16:09:35.446 DEBUG (MainThread) [custom_components.ev_smart_charging.number] EVSmartChargingNumberPriceLimit.__init__()
2024-08-09 16:09:35.446 DEBUG (MainThread) [custom_components.ev_smart_charging.number] EVSmartChargingNumber.__init__()
2024-08-09 16:09:35.446 DEBUG (MainThread) [custom_components.ev_smart_charging.number] EVSmartChargingNumberMinSOC.__init__()
2024-08-09 16:09:35.446 DEBUG (MainThread) [custom_components.ev_smart_charging.number] EVSmartChargingNumber.__init__()
2024-08-09 16:09:35.446 DEBUG (MainThread) [custom_components.ev_smart_charging.number] EVSmartChargingNumberOpportunistic.__init__()
2024-08-09 16:09:35.446 DEBUG (MainThread) [custom_components.ev_smart_charging.number] EVSmartChargingNumber.__init__()
2024-08-09 16:09:35.446 DEBUG (MainThread) [custom_components.ev_smart_charging.number] EVSmartChargingNumberOpportunistic.__init__() 50.0
2024-08-09 16:09:35.446 DEBUG (MainThread) [custom_components.ev_smart_charging.number] EVSmartChargingNumberLowPriceCharging.__init__()
2024-08-09 16:09:35.446 DEBUG (MainThread) [custom_components.ev_smart_charging.number] EVSmartChargingNumber.__init__()
2024-08-09 16:09:35.446 DEBUG (MainThread) [custom_components.ev_smart_charging.number] EVSmartChargingNumberLowSocCharging.__init__()
2024-08-09 16:09:35.446 DEBUG (MainThread) [custom_components.ev_smart_charging.number] EVSmartChargingNumber.__init__()
2024-08-09 16:09:35.447 DEBUG (MainThread) [custom_components.ev_smart_charging.number] EVSmartChargingNumber.async_added_to_hass()
2024-08-09 16:09:35.448 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] EVSmartChargingCoordinator.update_sensors()
2024-08-09 16:09:35.448 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] entity_id = None
2024-08-09 16:09:35.448 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] new_state = None
2024-08-09 16:09:35.453 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] charging_hours = 1
2024-08-09 16:09:35.453 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] ready_hour = 2024-08-10 06:00:00+00:00
2024-08-09 16:09:35.454 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] lowest_hours = [16]
2024-08-09 16:09:35.457 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Raw(schedule).number_of_nonzero() = 0
2024-08-09 16:09:35.457 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Raw(schedule_min_soc).number_of_nonzero() = 0
2024-08-09 16:09:35.457 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Use schedule
2024-08-09 16:09:35.459 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] self._max_price = 0.0
2024-08-09 16:09:35.459 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] Current price = 0.1409031
2024-08-09 16:09:35.459 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] EVSmartChargingCoordinator.update_state()
2024-08-09 16:09:35.459 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] charging_value = 0.0
2024-08-09 16:09:35.459 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] turn_on_charging = False
2024-08-09 16:09:35.459 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] current_value = False
2024-08-09 16:09:35.459 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] Charging summary removed
2024-08-09 16:09:35.460 DEBUG (MainThread) [custom_components.ev_smart_charging.number] EVSmartChargingNumber.async_added_to_hass() 32.0
2024-08-09 16:09:35.461 DEBUG (MainThread) [custom_components.ev_smart_charging.number] EVSmartChargingNumber.async_added_to_hass()
2024-08-09 16:09:35.461 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] EVSmartChargingCoordinator.update_sensors()
2024-08-09 16:09:35.461 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] entity_id = None
2024-08-09 16:09:35.461 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] new_state = None
2024-08-09 16:09:35.466 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] charging_hours = 1
2024-08-09 16:09:35.466 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] ready_hour = 2024-08-10 06:00:00+00:00
2024-08-09 16:09:35.466 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] lowest_hours = [16]
2024-08-09 16:09:35.469 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Raw(schedule).number_of_nonzero() = 1
2024-08-09 16:09:35.469 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Raw(schedule_min_soc).number_of_nonzero() = 0
2024-08-09 16:09:35.469 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Use schedule
2024-08-09 16:09:35.471 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] self._max_price = 0.32
2024-08-09 16:09:35.471 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] Current price = 0.1409031
2024-08-09 16:09:35.471 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] EVSmartChargingCoordinator.update_state()
2024-08-09 16:09:35.471 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] charging_value = 0.23798175
2024-08-09 16:09:35.471 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] turn_on_charging = True
2024-08-09 16:09:35.472 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] current_value = False
2024-08-09 16:09:35.472 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] Turn on charging
2024-08-09 16:09:35.472 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] Charging summary shown
2024-08-09 16:09:35.472 DEBUG (MainThread) [custom_components.ev_smart_charging.number] EVSmartChargingNumber.async_added_to_hass() 0.32
2024-08-09 16:09:35.473 DEBUG (MainThread) [custom_components.ev_smart_charging.number] EVSmartChargingNumber.async_added_to_hass()
2024-08-09 16:09:35.473 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] EVSmartChargingCoordinator.update_sensors()
2024-08-09 16:09:35.473 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] entity_id = None
2024-08-09 16:09:35.473 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] new_state = None
2024-08-09 16:09:35.480 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] charging_hours = 1
2024-08-09 16:09:35.480 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] ready_hour = 2024-08-10 06:00:00+00:00
2024-08-09 16:09:35.480 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] lowest_hours = [16]
2024-08-09 16:09:35.484 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Raw(schedule).number_of_nonzero() = 1
2024-08-09 16:09:35.484 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Raw(schedule_min_soc).number_of_nonzero() = 0
2024-08-09 16:09:35.484 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Use schedule
2024-08-09 16:09:35.485 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] self._max_price = 0.32
2024-08-09 16:09:35.485 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] Current price = 0.1409031
2024-08-09 16:09:35.486 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] EVSmartChargingCoordinator.update_state()
2024-08-09 16:09:35.486 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] charging_value = 0.23798175
2024-08-09 16:09:35.486 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] turn_on_charging = True
2024-08-09 16:09:35.486 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] current_value = True
2024-08-09 16:09:35.486 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] Charging summary shown
2024-08-09 16:09:35.486 DEBUG (MainThread) [custom_components.ev_smart_charging.number] EVSmartChargingNumber.async_added_to_hass() 0.0
2024-08-09 16:09:35.488 DEBUG (MainThread) [custom_components.ev_smart_charging.number] EVSmartChargingNumber.async_added_to_hass()
2024-08-09 16:09:35.488 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] EVSmartChargingCoordinator.update_sensors()
2024-08-09 16:09:35.488 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] entity_id = None
2024-08-09 16:09:35.488 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] new_state = None
2024-08-09 16:09:35.494 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] charging_hours = 1
2024-08-09 16:09:35.494 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] ready_hour = 2024-08-10 06:00:00+00:00
2024-08-09 16:09:35.494 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] lowest_hours = [16]
2024-08-09 16:09:35.497 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Raw(schedule).number_of_nonzero() = 1
2024-08-09 16:09:35.498 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Raw(schedule_min_soc).number_of_nonzero() = 0
2024-08-09 16:09:35.498 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Use schedule
2024-08-09 16:09:35.499 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] self._max_price = 0.32
2024-08-09 16:09:35.500 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] Current price = 0.1409031
2024-08-09 16:09:35.500 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] EVSmartChargingCoordinator.update_state()
2024-08-09 16:09:35.500 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] charging_value = 0.23798175
2024-08-09 16:09:35.500 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] turn_on_charging = True
2024-08-09 16:09:35.500 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] current_value = True
2024-08-09 16:09:35.500 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] Charging summary shown
2024-08-09 16:09:35.500 DEBUG (MainThread) [custom_components.ev_smart_charging.number] EVSmartChargingNumber.async_added_to_hass() 50.0
2024-08-09 16:09:35.501 DEBUG (MainThread) [custom_components.ev_smart_charging.number] EVSmartChargingNumber.async_added_to_hass()
2024-08-09 16:09:35.501 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] EVSmartChargingCoordinator.update_sensors()
2024-08-09 16:09:35.501 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] entity_id = None
2024-08-09 16:09:35.501 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] new_state = None
2024-08-09 16:09:35.506 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] charging_hours = 1
2024-08-09 16:09:35.506 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] ready_hour = 2024-08-10 06:00:00+00:00
2024-08-09 16:09:35.506 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] lowest_hours = [16]
2024-08-09 16:09:35.513 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Raw(schedule).number_of_nonzero() = 1
2024-08-09 16:09:35.513 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Raw(schedule_min_soc).number_of_nonzero() = 0
2024-08-09 16:09:35.513 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Use schedule
2024-08-09 16:09:35.515 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] self._max_price = 0.32
2024-08-09 16:09:35.515 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] Current price = 0.1409031
2024-08-09 16:09:35.515 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] EVSmartChargingCoordinator.update_state()
2024-08-09 16:09:35.515 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] charging_value = 0.23798175
2024-08-09 16:09:35.515 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] turn_on_charging = True
2024-08-09 16:09:35.515 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] current_value = True
2024-08-09 16:09:35.515 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] Charging summary shown
2024-08-09 16:09:35.516 DEBUG (MainThread) [custom_components.ev_smart_charging.number] EVSmartChargingNumber.async_added_to_hass() 0.0
2024-08-09 16:09:35.517 DEBUG (MainThread) [custom_components.ev_smart_charging.number] EVSmartChargingNumber.async_added_to_hass()
2024-08-09 16:09:35.517 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] EVSmartChargingCoordinator.update_sensors()
2024-08-09 16:09:35.517 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] entity_id = None
2024-08-09 16:09:35.518 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] new_state = None
2024-08-09 16:09:35.522 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] charging_hours = 1
2024-08-09 16:09:35.523 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] ready_hour = 2024-08-10 06:00:00+00:00
2024-08-09 16:09:35.523 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] lowest_hours = [16]
2024-08-09 16:09:35.526 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Raw(schedule).number_of_nonzero() = 1
2024-08-09 16:09:35.526 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Raw(schedule_min_soc).number_of_nonzero() = 0
2024-08-09 16:09:35.526 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Use schedule
2024-08-09 16:09:35.528 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] self._max_price = 0.32
2024-08-09 16:09:35.528 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] Current price = 0.1409031
2024-08-09 16:09:35.528 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] EVSmartChargingCoordinator.update_state()
2024-08-09 16:09:35.528 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] charging_value = 0.23798175
2024-08-09 16:09:35.528 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] turn_on_charging = True
2024-08-09 16:09:35.528 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] current_value = True
2024-08-09 16:09:35.529 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] Charging summary shown
2024-08-09 16:09:35.529 DEBUG (MainThread) [custom_components.ev_smart_charging.number] EVSmartChargingNumber.async_added_to_hass() 0.0
2024-08-09 16:09:35.530 DEBUG (MainThread) [custom_components.ev_smart_charging.select] EVSmartCharging.select.py
2024-08-09 16:09:35.530 DEBUG (MainThread) [custom_components.ev_smart_charging.select] EVSmartChargingSelectReadyHour.__init__()
2024-08-09 16:09:35.530 DEBUG (MainThread) [custom_components.ev_smart_charging.select] EVSmartChargingSelect.__init__()
2024-08-09 16:09:35.530 DEBUG (MainThread) [custom_components.ev_smart_charging.select] EVSmartChargingSelectReadyHour.__init__()
2024-08-09 16:09:35.530 DEBUG (MainThread) [custom_components.ev_smart_charging.select] EVSmartChargingSelect.__init__()
2024-08-09 16:09:35.531 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] EVSmartChargingCoordinator.update_sensors()
2024-08-09 16:09:35.531 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] entity_id = None
2024-08-09 16:09:35.531 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] new_state = None
2024-08-09 16:09:35.539 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] charging_hours = 1
2024-08-09 16:09:35.539 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] ready_hour = 2024-08-10 06:00:00+00:00
2024-08-09 16:09:35.539 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] lowest_hours = [16]
2024-08-09 16:09:35.545 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Raw(schedule).number_of_nonzero() = 1
2024-08-09 16:09:35.545 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Raw(schedule_min_soc).number_of_nonzero() = 0
2024-08-09 16:09:35.545 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Use schedule
2024-08-09 16:09:35.547 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] self._max_price = 0.32
2024-08-09 16:09:35.547 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] Current price = 0.1409031
2024-08-09 16:09:35.547 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] EVSmartChargingCoordinator.update_state()
2024-08-09 16:09:35.547 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] charging_value = 0.23798175
2024-08-09 16:09:35.547 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] turn_on_charging = True
2024-08-09 16:09:35.547 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] current_value = True
2024-08-09 16:09:35.548 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] Charging summary shown
2024-08-09 16:09:35.549 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] EVSmartChargingCoordinator.update_sensors()
2024-08-09 16:09:35.549 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] entity_id = None
2024-08-09 16:09:35.550 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] new_state = None
2024-08-09 16:09:35.555 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] charging_hours = 1
2024-08-09 16:09:35.555 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] ready_hour = 2024-08-10 13:00:00+00:00
2024-08-09 16:09:35.555 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] lowest_hours = [38]
2024-08-09 16:09:35.560 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Raw(schedule).number_of_nonzero() = 1
2024-08-09 16:09:35.560 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Raw(schedule_min_soc).number_of_nonzero() = 0
2024-08-09 16:09:35.560 DEBUG (MainThread) [custom_components.ev_smart_charging.helpers.coordinator] Use schedule
2024-08-09 16:09:35.562 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] self._max_price = 0.32
2024-08-09 16:09:35.562 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] Current price = 0.1409031
2024-08-09 16:09:35.562 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] EVSmartChargingCoordinator.update_state()
2024-08-09 16:09:35.562 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] charging_value = 0.0
2024-08-09 16:09:35.562 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] turn_on_charging = False
2024-08-09 16:09:35.562 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] current_value = True
2024-08-09 16:09:35.563 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] Turn off charging
2024-08-09 16:09:35.563 DEBUG (MainThread) [custom_components.ev_smart_charging.coordinator] Charging summary shown
2024-08-09 16:09:35.567 WARNING (MainThread) [homeassistant.components.automation.ev_handle_automatic_cheapest_charge] Laad de auto tijdens de goedkoopste uren: Already running
maartenlandman89 commented 3 months ago

I think I have the same issue. When HA is making a backup in de night, after the backup the Charing start from my Tesla. The same is happening on a restart.

IMG_3180

maartenlandman89 commented 3 months ago

This is the Tesla Swith to start charging. It’s says: “ enabled triggered by service Switch: Disable”

IMG_3181

jonasbkarlsson commented 3 months ago

Is this something new with Version 1.11.2? Or have you observed this before?

maartenlandman89 commented 3 months ago

I noticed it since I’m back from vacation. So it could be 1.11.2 or HA 2024.8.

hmmbob commented 3 months ago

Is this something new with Version 1.11.2? Or have you observed this before?

I'm not sure. I can only go back to august 1st in history, and I'm observing this behavior since maybe August 7, but definitely August 8.

According to the file timestamps of the component, I've upgraded to 1.11.2 on August 4 12:59. I've been beta testing HA 2024.8 betas since the same day.

jonasbkarlsson commented 3 months ago

The integration is to some extent state-less, reacting to changes in various inputs. During initiation, different inputs becomes available in a certain order. I can imagine that the integration output might toggle on and off due to this. Maybe this didn't happen before, but happens now due to updates in HA. Or it also sometimes happened before as well.

Anyhow, I should add some kind of initiation phase to the integration to prevent these kind of issues.

jonasbkarlsson commented 3 months ago

This should now have been fixed by #315 which is included in pre-release v1.12.0-dev3. Will you be able to check if this solves the issue?

Note that this pre-release contains several backward-incompatible changes. Please read the release notes!

hmmbob commented 3 months ago

I've just updated to dev3 and the subsequent reboot did not trigger the issue anymore. Great!

image

I was in dev2 already, so no new backward-incompatible changes for me 😄