oh… im not thinking so… you have to add much more information to your sensor only with the additional informations of your sensor HA is able to sort your data correct and use your data in the right way.
i really recommend to upddate your sensors definitons by adding some lines like:
I have made a bit better automation for the Elwa to not activate the stages two fast ( clicking the relays too fast ). It send the calculate power with delay 10 seconds. Also the minimum power is adjusted to 200w.
I have implemente your “simple” automation from Jan. 18, which works really nice except for the flaws of fast switching that you already mentioned.
When I went through your new “advanced” automation, I struggle to understand why you set the power to the max available power ( I assume that is sensor.vxxout) after the 10 second delay.
Could you explain the reason behind this?
Okay, I understand. Do you have ELWA or ELWA 2? I use ELWA 2 and it says : “continously variable” power settings (without steps, german “stufenlos”).
I am not sitting in the basement all the time when I work on my automation but I have to test it at some point. So far (maybe because of low solar power) I only heard the “on” clicking relays. I am not sure if there is another relay for a higher power setting.
To find out if there are multiple “hardware power levels” I emailed them.
My automation is a bit different, but apparently also does the job even with clouds or the heat pump switching on to prepare the water for heating.
Basically I specify:
home_buffer
buffer power for changes of home consumption (say 200 W)
heater_consumption_ratio
ELWA excess power consumption ratio (e.g. 80%)
minimum_battery_level
minimum state of charge of my battery (e.g. 95%)
And add sliders to my dashboard for control.
Then I calculate:
Last I set this value (ELWA power setting) and add a delay of 10 seconds. Otherwise, the ELWA measurement is not yet there and as you said, it can change rapidly if a cloud passes by.
I avoid setting the ELWA power to 100% of my excess power, because the slightest cloud will then lead to a shutdown (–> Relay clicking) if solar power reduces due clouds and grid export becomes negative.
alias: ELWA simple Automation ratio
description: ELWA simple automation https://community.home-assistant.io/t/mypv->integation-started/395584/40 von showup Jan. 18 2024
trigger:
platform: state
entity_id:
sensor.grid_export_power
condition:
condition: sun
before: sunset
after: sunrise
action:
Have you (or anyone else here) figured out if you can change the max. Power for the device via a http command rather than the Web-Interface of the ELWA?
I would probably use PID Control = 1 but limit the max. power according to the current solar production if possible.
i would recommed to all the ELWA (1)! users to use the /control.html?pid_power=n
command in order to reduce the clicking of the Elwa because inside there is a “older” Relay working.
By using the pid_power you only add the amount of power you will (steering must be a little different and your config must be rewritten)! because of the pid power output but you will have a much more smoth graph and you will not have the clicking! https://community.home-assistant.io/t/mypv-integation-started/395584/30?u=sleepymaxx
I was about to implement a PID controller within Homeassistant itself to achieve a smooth change of ELWA power. However, as your previous post states: the ELWA PID controller can only be 1/0. Is there another way to limit the power the device will use?
Maybe you have more insights into how to setup the device (via the web interface) which I lack unfortunately.
Edit: I just found you can access the settings of the ELWA device via /setup.jsn and set values via e.g. ’ /setup.jsn?ww1target=599 ’ (to change the target warm water temperature).
Edit2: further variables are:
maxpwr: Maximum power [0 - 100]% (apparently lower limit seems to be 17%)
ww1target: hot water target temperature
So now the question arises: is it smart / intended to set maxpwr = excess_power/3500 * 100? [if > 17] ?
I understand the purpose of a PID controller, however changing the maxpwr every other second may defy the purpose except for the on/off issue…
Edit3: new rest_commands:
rest_command:
update_elwa_temperature:
url: "http://xxx.xxx.xxx.xxx/setup.jsn?ww1target={{ temperature }}
update_elwa_maxpwr:
url: "http://xxx.xxx.xxx.xxx/setup.jsn?maxpwr={{ power}}
and
/setup.jsn?ww1target=600` --> 60,0°C Hot water temperature target
/setup.jsn?maxpwr=70` --> 70% power of Pmax=3500 W
/control.html?pid_power=100 Elwa power 24
/control.html?pid_power=200 Elwa power 60
/control.html?pid_power=300 Elwa power 100
/control.html?pid_power=400 Elwa power 140
/control.html?pid_power=500 Elwa power 180
/control.html?pid_power=600 Elwa power 220
/control.html?pid_power=800 Elwa power 300
/control.html?pid_power=900 Elwa power 340
/control.html?pid_power=1000 Elwa power 380
Is working correct with this calculation/automation we use for the
/control.html?power=XXX
Here is a screenshot of my system running this morning.
I found out the same yesterday by trying some settings. However , from the manual it sounds to me like pid_power is on/off only with a set target temperature and maximum power.
Very good you checked the settings! I am still waiting for more sun! Could you post a plot of the ELWA power measurement over time as well as the set_power? That would give more insight I to the elwa pid logic👍
I think your explanation of the pid - Power switch is way more intelligent as my old one … i will test the next days your ideas and will change my script furthermore!
Thanks a lot