So I still don’t understand script response as I have not had a chance to play with it yet but is it possible to do something like write your own function?
e.g. call scrip “geometric mean”, pass it two or more values have the script do some calculation and return a result?
Based on the documentation I missed that @crzynik pointed out…
add_five:
variables:
value_plus_five: >
{{ {'value': value + 5} }}
sequence:
- stop: "returning value + 5"
response_variable: value_plus_five
I believe you’d just call the script like this as well.
- service: script.add_five
data:
value: 3
response_variable: result
and you’d access the result in a later on variable/template
You’d have to inspect the result to see if it adds any other layers to the response value. I’d guess it does not, I’d have to check otherwise. I.e. {{ result.value }} would return 8
I was staring at something similar yesterday. It’s happened a handful of times. No restarts or reload around these times: just this seemingly random spike in energy. My panels can only produce about 4kWp, so it’s practically impossible to get this amount of solar.
This is from my energy dashboard. Note the two peaks of 15kWh and 20kWh respectively with a total consumption of over 40kWh for yesterday.
2023-07-11 12:41:26.502 ERROR (MainThread) [homeassistant.components.media_player] The openhome platform for the media_player integration does not support platform setup. Please remove it from your config.
What does it means? I don’t have the openhome platform setup.
What to do?
Could the source sensor be the issue and report unexpected values? Maybe it helps to check the statistics in the dev tools around the time of wrong values.
have a mystrom switch to meassure solar input, but with the recent HA update i cant use the yaml anymore and the real integration only shows me on/off… but i cant get any power readings off it… ?!
Seems like the @allenporter blueprint is broken. I clicked on it to import, and it doesn’t appear in my list of blueprints. Tried this twice without success.