Hi guys, I am new to HA. Just installed Has.io on raspberry pi including the MQTT, Configurator and Samba add ons. managed to configure the Tasmotized sonoff basic switch and control it manually. Would like to use automation so I can turn the switch on/off at fixed hours daily. Any pointers to a manual that have examples on how to do it will be appreciated. Thanks
You mean like the whole section on automation, starting here
If you want to use it in an automation as a switch, the best way is to make a mqtt switch. Like this:
- platform: mqtt
name: switch name
command_topic: "cmnd/switchtopic"
state_topic: "stat/switchtopic"
After this you can restart home assistant and there should be an entity called switch.
Basics are to add the switch to HA so it can be automated.
https://github.com/SilvrrGIT/HomeAssistant/blob/master/switches.yaml#L133
Note that the topics (ie stat/pow2/POWER) are very sensitive to typos and capitalization. Check the console screen on the Tasmota webpage for the exact ones you need to use.
There is an example of a timed switch. Note that I am turning off switch.basic1 because I named my switch ‘basic1’ in the switch config above.
get those basics going and we can troubleshoot from there.
Thanks. Will give it a try. Appreciate.
I have the Mqtt switch configured. Thanks