EMHASS: An Energy Management for Home Assistant

Is it OK result?

But, I have got some wierd PV forecast. It is impossible to have 258 W 17:00 in Sweden today.
image

Hi @110hs Do you have an example which you can show?

I was wondering about the order of trigg of the shell commands. I have automation for dayahead-optim and ml forecast model once a day. I have now first dayahead-optim and 2 minutes after runs ml forecast fit and finally ml forecast model predict. Is it correct? When I should run ml predict model tune?

Hello, sure. This is a template sensor of mine, for tomorrow sell prices 00:00 - 00:59
If state_attr('sensor.pun_prezzo_zonale', 'domani_h_00') (tomorrow) is missing, today’s is used (state_attr('sensor.pun_prezzo_zonale', 'oggi_h_00')).
The same for the next hours.

- sensor:
    - name: "Prezzo zonale domani 00"
      unique_id: "prezzo_zonale_domani_00"
      icon: 'mdi:currency-eur'
      unit_of_measurement: '€/kWh'
      device_class: 'monetary'
      state: "{{ (state_attr('sensor.pun_prezzo_zonale', 'domani_h_00') or state_attr('sensor.pun_prezzo_zonale', 'oggi_h_00'))|round(5) }}"
      attributes:
        start: '00:00:00'
        end: '00:59:59'

Not sure if this fits 100% the way you collect the data and pass it to EMHASS.