Problem is that when I add above yaml to my configuation.yaml I get an error message: “end of the stream or a document separator is expected at line 14, column 1” (line 14, column 1 being the first character in the recipe).
I’m guessing maybe something has changed since the article was written? I need to figure out where to add these lines.
My configuration.yaml looks like this:
# Loads default set of integrations. Do not remove.
default_config:
# Text to speech
tts:
- platform: google_translate
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
PriceLevel
Price level based on trailing price average (3 days for hourly values and 30 days for daily values)
Value Description
NORMAL
The price is greater than 90 % and smaller than 115 % compared to average price.
CHEAP
The price is greater than 60 % and smaller or equal to 90 % compared to average price.
VERY_CHEAP
The price is smaller or equal to 60 % compared to average price.
EXPENSIVE
The price is greater or equal to 115 % and smaller than 140 % compared to average price.
VERY_EXPENSIVE
The price is greater or equal to 140 % compared to average price.
Thanks! I believe it worked after I reloaded the entities from config, but I can see that the value does not update unless I reload the entities again. It seems to me that binary sensors are not updated along with analog sensor(?). I have no idea, this is all new to me.
I tried the example you posted, but I got an error message saying “missed comma between flow collection entries […]”.
ok, good to hear, haven’t tried it my self, only in Dev-Tools Templates, and i actually never made a “template binary.sensor” so i don’t know how that works … just playing around, and learning
PS: about the update/reload, i think i saw something in regards to that somewhere, i’ll let you know if i find it again