You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a 2 Channel switch, and I'm trying to get it to work with your configuration, already changed the binary_sensor code but its like my switch has 3 buttons, I have to press it in the middle so I can use the button of the right. Can you help me please?
I already tried these two configs, changing from middle to right button but the result is the same, I have to press in the middle for it to work.
`binary_sensor:
platform: custom
lambda: |-
auto touch_panel = new touch_panel::TouchPanel(id(uart_bus));
App.register_component(touch_panel);
return {
touch_panel->left,
touch_panel->middle,
touch_panel->right,
touch_panel->two_finger,
touch_panel->dragged_ltr,
touch_panel->dragged_rtl,
};
binary_sensors:
id: button_left
name: "Left Button"
on_press:
switch.toggle: relay1
switch.turn_on: haptics
button.press: light_relays
id: button_middle
name: "Middle Button"
on_press:
switch.toggle: relay2
switch.turn_on: haptics
button.press: light_relays
id: button_two_finger
name: "Two Fingers"
id: button_dragged_ltr
name: "Dragged Left to Right"
id: button_dragged_rtl
name: "Dragged Right to Left"`
`binary_sensor:
platform: custom
lambda: |-
auto touch_panel = new touch_panel::TouchPanel(id(uart_bus));
App.register_component(touch_panel);
return {
touch_panel->left,
touch_panel->middle,
touch_panel->right,
touch_panel->two_finger,
touch_panel->dragged_ltr,
touch_panel->dragged_rtl,
};
binary_sensors:
id: button_left
name: "Left Button"
on_press:
switch.toggle: relay1
switch.turn_on: haptics
button.press: light_relays
id: button_right
name: "Right Button"
on_press:
switch.toggle: relay2
switch.turn_on: haptics
button.press: light_relays
id: button_two_finger
name: "Two Fingers"
id: button_dragged_ltr
name: "Dragged Left to Right"
id: button_dragged_rtl
name: "Dragged Right to Left"`
The text was updated successfully, but these errors were encountered:
I have a 2 Channel switch, and I'm trying to get it to work with your configuration, already changed the binary_sensor code but its like my switch has 3 buttons, I have to press it in the middle so I can use the button of the right. Can you help me please?
I already tried these two configs, changing from middle to right button but the result is the same, I have to press in the middle for it to work.
`binary_sensor:
lambda: |-
auto touch_panel = new touch_panel::TouchPanel(id(uart_bus));
App.register_component(touch_panel);
return {
touch_panel->left,
touch_panel->middle,
touch_panel->right,
touch_panel->two_finger,
touch_panel->dragged_ltr,
touch_panel->dragged_rtl,
};
binary_sensors:
name: "Left Button"
on_press:
name: "Middle Button"
on_press:
name: "Two Fingers"
name: "Dragged Left to Right"
name: "Dragged Right to Left"`
`binary_sensor:
lambda: |-
auto touch_panel = new touch_panel::TouchPanel(id(uart_bus));
App.register_component(touch_panel);
return {
touch_panel->left,
touch_panel->middle,
touch_panel->right,
touch_panel->two_finger,
touch_panel->dragged_ltr,
touch_panel->dragged_rtl,
};
binary_sensors:
name: "Left Button"
on_press:
name: "Right Button"
on_press:
name: "Two Fingers"
name: "Dragged Left to Right"
name: "Dragged Right to Left"`
The text was updated successfully, but these errors were encountered: