Hello,
You can include more than one entities in the automation. What i suggest is: copy the automation code from above, and go Settings->Automations & Scenes->Create Automation and select Create New Automation. The Automation editor UI will open but on the upper right side click the 3 dots and select: Edit In Yaml.
Paste the code there, and now go again to the 3 dots and select: Edit in Visual Editor.
You should now see 4 triggers and 1 choose action with 4 options. In each option a service is called to set the temperature to spesific value. You will see a bubble saying āliving_room_heater_thermostatā (this is from my code but yours can be named differently. Just delete it all and select your thermostats. You can add as many as you want there.
If you have more than one, when the automation will trigger, all the selected thermostats will change temperature at once.
You mentioned that you are a beginner but i would definately suggest to play a bit with the automations as you will learn very quickly how it worksā¦ There are tons of things you can do in automations using conditions or If/then actions.
For example, if you have presence sensors in your rooms you can apply a logic to raise the temperature only in the rooms that are occupied. The logic would be:
When the time is 22:00 (trigger), if presence in the living room is detected (condition), then set temperature to 24 degrees. Else, set temperature to 20 degrees.
In the above we used the time as a trigger with presense as condition but nothing is stopping us to use presense as a trigger instead of time. Lets say you set temperature to stable 20 degrees and when you enter the room (presense is now the trigger) it can raise to 24 degrees.
Really, sky is the limit!