This does not work:
Configuration invalid
Error loading /home/homeassistant/.homeassistant/configuration.yaml: mapping values are not allowed here
in ā/home/homeassistant/.homeassistant/automations.yamlā, line 75, column 37
I have tried to understand the value_template and data_template but still no luck ā¦ Anyone that knows how to store an input: number into another variable
Next question is how to set a variable as the value of itself multiplied with 3600.
And this is the error message from the log:
2018-07-08 22:24:42 ERROR (MainThread) [homeassistant.core] Invalid service data for input_datetime.set_datetime: Invalid time specified: timestamp.variable.hour_calc for dictionary value @ data[ātimeā]. Got ātimestamp.variable.hour_calcā
Hi allā¦ Iām having a bit of a problem setting these variables. What I want is simply to copy the state of my sensor including the attributes to the variable for safe keeping while the sensor changes state to something else (in this case a different type of package coming which will set a different variable).
I canāt get it to set the variable at all right now and Iām not sure why. Iāve used very similar triggers and conditions before, so I think Iām doing something wrong in the syntax to set the variable. Any ideas?
If you all are still having trouble with that variable component, you might want to check mine out to see if it suits your needs.
It doesnāt support an attributes dictionary, but itās easy enough to just create a variable for each attribute. Itās also possible to create a dict in a jinja template and store that in a variable instead.
Allright. I hope this reply is in the right topic. If not, Iām sorry.
I wonder if the following is possible within HA, because it would make things a lot easier. Lets say:
@ 6AM I want my bedroo lights to turn on @ brightness 5 and every 3 minutes I want them to get 5+ brightness. What I do now is enter a wait of 00:03 and add a new brightless lever. Bit can this be done easier?
The same is for example my sonos
If I want the sonos to start playing at volume 0.02 @ 6.10 and get 0.01 louder every 5 minutes, I now have to add a wait / etc. Isnāt it pissible to add some kind of tempate to add X per X minutes?
Iām not at home right now so I canāt look into further at the moment. But somewhere on here thereās a script that I found that does exactly that. You tell it the start time, how long of a ramp you want and from what level to start and finish. It does ramp down as well. I use for my wife and I everyday. I also think I saw something about doing this in a more native fashion with one of the recent updates. But what I have works so I didnāt pursue it.
Hey, I tried no all kinds of options to save a variable and get it out but nothing is working not the snarky one there I manage to get variables in but I canāt use them in code. input number I just not get it I cant set a sensor value and store ist there. and then there are the Hass variables the same thing itās a nightmare.
I just want to store a sensor value and subtract it the next day to get the difference why is that so difficult.
Example: I have a sensor with a value of 50 today tomorrow it is 53 maybe and I want to preserve the 50 and subtract the 50 from the 53 to get the difference.
it really canāt be that hard but I get it with no variable solution to work.
anyone can help me I just donāt understand the examples of why I make a query and have events if I just want the var.x back and why canāt I just use x.var and thatās it?