I have installed home assistant as a docker container on my Synology DS. In addition runs a mosquitto package (from Synocommunity) on my DS to control my Tasmota devices.
These devices did not appear under MQTT in home assistant, but I can use them (switch them or getting information).
Now I started to automate them. When I test it, it works properly several times in a row. But in the morning or in the evening, when an event is triggert, it did not work…I have no clue why.
The devices are reachable and send information about the wlan stauts to my home assistant all the time.
Code in automations.yaml:
# light off in the morning
trigger:
- platform: time
at: "08:00:00"
action:
- service: switch.turn_off
entity_id:
- switch.steckdose1
- switch.steckdose2
- switch.steckdose3
# light on in the evening
trigger:
- platform: time
at: "16:45:00"
action:
- service: switch.turn_on
entity_id:
- switch.steckdose1
- switch.steckdose2
- switch.steckdose3
# Later I want to use
# - platform: sun
# event: sunset #Sonnenuntergang
# offset: '-00:30:00'
#but it did not work...