I have just started testing HA after using Openhab for a couple of years. I was hoping that HA would be more straight forward to setup and work with and so far it seems relatively OK.
I have hue lights working and several switches being controlled by a tellstick connected to my raspberry pi.
In Openhab I had a simple rule that switched my coffee maker switch on and off at the same time everyday, which I have been trying to replicate in HA.
I have been trying something like this:
#turns it on at 6am
- alias: coffee maker on
trigger:
- platform: time
after: '6:00'
action:
service: homeassistant.turn_on
entity_id: switch.coffeeswitch
But this doesnât work. I just get invalid config, the following components and platforms could not be setup
âswitchâ
Iâm pretty new to this system and still trying to get to grips with it, but if someone could point me in the right direction or share some examples that I could modify that would be amazing. To me this seems like a pretty simple function, which can surely be achieved with a very short amount of code??
Look at the âstatesâ tab of HAâs interface. Itâs the icon that looks like < > in the left sidebar. This page will list all of the entity_idâs that are set up on your system. Make sure youâve got a âswitch.coffeeswitchâ to turn on. If youâve added that coffee maker switch successfully, it should be there and this is the best way to make sure youâve got the correct entity_id.
@ih8gates Thanks for the quick reply, that was where I got the switch.coffeeswitch from originally, as itâs listed there as the entity_ID for the particular switch I what to turn on???
@Corey_Johnson brilliant, Iâve got it working based on your example, thanks so much, is there a way to specify which days of the the week in the time platform?