sleevezipper / hass-workstation-service

Provide useful sensors and services from your workstation to Home Assistant.
Apache License 2.0
613 stars 54 forks source link

Using the buttons instead of the switch #170

Closed DrPerryCoke closed 10 months ago

DrPerryCoke commented 2 years ago

Good afternoon! Is it possible to change the switch to a button for sound control?

amaisano commented 2 years ago

@DrPerryCoke you talking about the new button entity type they added to HA ("Press" momentary button aka stateless switch)? Or something else?

DrPerryCoke commented 2 years ago

@amaisano Yes) It is about her... since the switches have no status, this would not be a bad thing.

amaisano commented 2 years ago

OK cool. Yes, I too was going to make this feature request for the MQTT command switches -> buttons.

Documentation and source code here:

https://www.home-assistant.io/integrations/button/

tankdeer commented 2 years ago

Came looking for the same thing. Most, if not all of the commands are stateless. They should be buttons instead

tankdeer commented 2 years ago

Upon further research, it looks like there's a dev branch with this fixed, so whenever that gets merged we'll be good

FaserF commented 2 years ago

cant wait to see it in the main branch :)