jesserockz / wizmote-esphome

Apache License 2.0
67 stars 30 forks source link

Control Other things than light entities #12

Open stevetheman1031 opened 1 year ago

stevetheman1031 commented 1 year ago

Hello I have found this thread about using the wizmote with home assistant and I have installed the config into one of my esphome switches. I am not very good or familiar with making templates, but I was wondering if there is any way to make the wizmote control other thing other than light entities? Like pressing button 1 runs an automation and then button 2 ques up a switch entity and on and off changes the state. or the brightness button can make steps for a media player loudness. I do not know what it would take to get it like that. I know all the automation is doing is listening to events firing and doing the action on lights, what are all the events that the automation is listening for so I might be able to achieve what I want?

sploders101 commented 10 months ago

What events it sends depends on your configuration, but from the default that they give you in the readme, the device will emit the following events:

From this, you should be able to write automations. The developer tools on the left have an events tab where you can monitor for these events and see what the variables look like, and from there, you should be able to create an automation like any other.

rsabol77 commented 9 months ago

What events it sends depends on your configuration, but from the default that they give you in the readme, the device will emit the following events:

  • esphome.wizmote_choose
  • esphome.wizmote_action

From this, you should be able to write automations. The developer tools on the left have an events tab where you can monitor for these events and see what the variables look like, and from there, you should be able to create an automation like any other.

Can you point me to info on how to do this? I am very new to this.

avt613 commented 7 months ago

I've been trying to do this as well. Take a look at my blueprints