Hi guys, bought myself a PI this Christmas and will start to automate =P
I got a couple of questions, i will go z-wave with some lights etcs but as my first attempt is to try to just play a birds.mp3 file at 7am when we get up.
I have installed the pi, home-assistant, omxplayer and i got myself a mp3 file that I can play simply by just typing omxplayer birds.mp3 and the sound will come from the connected 3.5mm speaker.
now… where do I start, I have read a few topics here but since I only have configuration.yaml file here now and not any nofity or automation (as I have seen been refereed to before, how do I accomplish this rather easy task?)
in my configration.yaml i will specify all logic or shall I split them up into chunchs in different files and “call/include” them from the main configuration.yaml file?
and if I want to set the time to 7am for weekdays and 9am for weekends?
This is what I have done in configuration.yaml:
automation:
alias: sounds
trigger:
platform: time
after: ‘07:00:00’
action:
service: shell_command.play_sound
this is what I have done in shell_command.yaml sounds:
play_sound: omxplayer /home/pi/media/birds.mp3
…have been copying & pasting code from the forums but does not seem to be working together…