I want the control my TV volume with a dimmer switch

So I saw this youtube video one time, where the guy mentioned in the middle of the video that he uses either a Z-Wave or zigbee switch to control his tv volume, but I don’t remember who it was and what exactly he said.

So how can I control either a Samsung TV or Android TV box volume with a switch?

I’m sure I could figure out how to control power by telling it to turn on or off the Chromecast, but volume is trickier.

Thanks in advance

Do you have a ZigBee or Z-Wave switch that is integrated into home assistant? If yes, which one and how did you integrate it? Do you have the Samsung TV and the Android TV box integrated into home assistant? If yes, can you control the volume of these from home assistant?

If you have all the devices integrated into home assistant, it’s as easy as creating an automation that increases volume when button x is pressed and decrease the volume when button y is pressed.

1 Like

down:

  action:
  - service: media_player.volume_set
    data_template:
      entity_id: media_player.soundbar
      volume_level: '{{ float(states.media_player.soundbar.attributes.volume_level) - 0.04 }}'

Up:

  action:
  - service: media_player.volume_set
    data_template:
      entity_id: media_player.soundbar
      volume_level: '{{ float(states.media_player.soundbar.attributes.volume_level) + 0.04 }}'
1 Like

This doesn’t sound quite right. Most zwave/zigbee installable switches are hard-wired. Meaning that even without the zwave/zigbee connection, they will control the output to the line going to your light. You could continue going down this route if you remove your light from the socket, or are planning to not wire the output line up.

I have seen zwave remotes that are not hard-wired that you could program to do this.

There are also zwave scene controllers that can be installed hard-wired. They tend to not be supported very well. I have one, and it requires an extra piece of hardware to program it properly. Because of that, it’s collecting dust.

I think he talks more about remote controls like the Hue Dimmer Switch.

I have a aeotek z stick with Z-Wave, and no I didn’t buy the switch yet. I have the Android TV setup with home assistant.

Do you also own any ZigBee devices? I’m not sure if there are any cheap Z-Wave remote controls, the ones I saw were around 30bucks, ehich is way too much in my opinion, ZigBee remotes from Philips cost around a third of this.

I have a zigbee stick also, but I haven’t figured out how to use it yet.

Which stick do you have? I can highly recommend the Philips Hue Dimmer Switches, 4 buttons, short and long press for each button. Or the round remote from Ikea should also be very nice as it has more the looks of a sound remote control in my opinion.