Hi guys, first post here, struggling to make something work
I have four sonoffs basic with tasmota 6.4.1, to one of them I wired a DHT22 temp/hum sensor and configured it properly
The sensors are read via MQTT and they show the telemetry values properly in HA overview screen, then after reading a lot of examples here and googling around I defined this simple automation to turn on or off one of them based on the humidity reading.
it does nothing
here are the sensor definitions and the automation as I have them in configuration.yaml
to test the automation I send MQTT messages changing the humidity value, of course its updated inmediatelly in the sensor reading in the overview screen
can you guys slap me to the correct path? Thanks!!
you need to turn the automation āonā. There are a couple of ways to do that.
One way is, if you always want the automation to be enabled at start up of HA no matter what the previous state was prior to shutdown, then add āinitial_state: trueā to the automation.
If you always want it to be restored to itās prior state at start up then you need to go to the ādev-statesā page (left menu, bottom, <> icon) then find the automation in the list, click the box to the left of the automation then turn on the toggle in the box that pops up.
now I have another related question, now that I have the whole set of automations to control this stage, is it possible to group them so I can enable all of them at once if I want to automate this stage?
I need to make another stage with a different set of automations controlling the same switches
what I mean, this is a whole set or stage of automation, I want to be able to enable or disable this set as a group. Then I want to create a new group that controls the same device and switches but using different triggers and be able to enable or disable these too as a group.
you can do it two ways (sounds familiar doesnāt it ) -
one way is to create a group in HA that includes the automations you want to have together. then just turn on & off the group.
A better way (the way I do it) is to create an entity card in lovelace and list all of those automations there. then you can either turn them on/off individually or use the group toggle to control them all at once.
Managed to add a new tab which has a toggle that is supposed to turn all on or off, but this is not the case, if I want to turn off all the automations in the view I had to switch them individually:
And thinking outside the box, do you have an idea on how to do what Iām trying to accomplish? I mean have different set of automations? Maybe be able to toggle these groups instead of each an every one of their components.
Iām not sure I follow why you would want to enable or disable the automations so often you would need an automation to do it. Usually the automation is turned on or off and left that way. I do have a few automations that I want to delay turning on but that is generally the exception rather than the rule.
Oh, let me explain, maybe Iām doing it the wrong wayā¦
Iām trying to automate a fridge for charcuterie.
There are three āprogramsā each one with different triggers operating form the input of the same temp/humidity sensor, so for example, you need to run the first program for 5 days, then next one for a month and the third program is a different use of the same fridge also with other trigger points.
So, I donāt want to automate everything, I just want to switch from program1 (and its whole set of automations) to program2 or program3, I do this myself no problem and I keep track of days, I just donāt want to fiddle with configs every time I need to switch programs.
What I posted earlier is the automation of one of the programs.
you can automate automations being enabled or disabled by using the service āautomation.turn_onā or āautomation.turn_offā in the action section of another automation. I think you will have to list all of the entity_idās of the automations you want the service to act on:
The same as before but it didnāt work, will open a new thread as the title of this one does not correlate to my current question.
I got to think that a fridge is in essence an a/c unit or heater so Iām replacing the automations with a bunch of climate generic thermostat, being creative with the values allows me to do the same in a much simpler way without a single automation, this would allow, for example, to group things better