Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION] hold with custom mapping #705

Open
inertia666 opened this issue Feb 7, 2023 · 1 comment
Open

[QUESTION] hold with custom mapping #705

inertia666 opened this issue Feb 7, 2023 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@inertia666
Copy link

inertia666 commented Feb 7, 2023

This pertains mostly to the E1810 and E2002. I will outline my problem and what I need as a solution

I have a TV and HDMI receiver. Frustratingly, the TV remote issues a single volume change of 0.5db per click to the receiver and cannot be held down. I have a script that issues around 10 clicks with a small delay and have assigned this script to a controller. This means a single click will raise or lower the volume by around 4-6db depending on the action.

I'd like to replace this with something better with custom mapping with ControllerX but haven't cracked how to do this yet.

If I hold down a button on the E1810/2002 it should constantly issue the volume change with a small delay until released. This should be able to be mapped regardless of if I use the light or media controller template. Can this be done with custom mapping?

@inertia666 inertia666 added the question Further information is requested label Feb 7, 2023
@xaviml
Copy link
Owner

xaviml commented Mar 1, 2023

Hi @inertia666 ,

If you are able to create a media_player entity in Home Assistant, you can create a ControllerX config with it and it will automatically put volume up and down until you release the button. Configuration would look like:

example_app:
  module: controllerx
  class: E1810MediaPlayerController
  integration: z2m
  controller: sensor.my_controller_action
  media_player: media_player.my_entity_id

I cannot think of any other way to repeatedly call a script through ControllerX until you release a button.

Regards,
Xavi M.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants