@@ -83,11 +83,9 @@ button:
|
|||||||
icon: mdi:vibrate
|
icon: mdi:vibrate
|
||||||
internal: false
|
internal: false
|
||||||
platform: template
|
platform: template
|
||||||
on_press:
|
on_press:
|
||||||
then:
|
then:
|
||||||
- switch.turn_on: sw_vibration_motor
|
- script.execute: vibrate
|
||||||
- delay: !lambda return nr_vibrating_duration->state;
|
|
||||||
- switch.turn_off: sw_vibration_motor
|
|
||||||
|
|
||||||
captive_portal:
|
captive_portal:
|
||||||
|
|
||||||
@@ -277,6 +275,14 @@ ota:
|
|||||||
|
|
||||||
psram:
|
psram:
|
||||||
|
|
||||||
|
script:
|
||||||
|
- id: vibrate
|
||||||
|
mode: restart
|
||||||
|
then:
|
||||||
|
- switch.turn_on: sw_vibration_motor
|
||||||
|
- delay: !lambda return nr_vibrating_duration->state;
|
||||||
|
- switch.turn_off: sw_vibration_motor
|
||||||
|
|
||||||
select:
|
select:
|
||||||
- id: sl_tx_model_gang
|
- id: sl_tx_model_gang
|
||||||
name: Model
|
name: Model
|
||||||
@@ -294,6 +300,22 @@ select:
|
|||||||
disabled_by_default: false
|
disabled_by_default: false
|
||||||
icon: mdi:dip-switch
|
icon: mdi:dip-switch
|
||||||
|
|
||||||
|
- id: sl_touch_vibration_feedback
|
||||||
|
name: Touch - Vibration feedback
|
||||||
|
platform: template
|
||||||
|
options:
|
||||||
|
- "Disabled"
|
||||||
|
- "On press"
|
||||||
|
- "On release"
|
||||||
|
- "Always"
|
||||||
|
initial_option: "Disabled"
|
||||||
|
optimistic: true
|
||||||
|
restore_value: true
|
||||||
|
internal: false
|
||||||
|
entity_category: config
|
||||||
|
disabled_by_default: false
|
||||||
|
icon: mdi:vibrate
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
- id: sun_elevation
|
- id: sun_elevation
|
||||||
name: Sun Elevation
|
name: Sun Elevation
|
||||||
@@ -433,6 +455,16 @@ tx_ultimate_easy:
|
|||||||
ESP_LOGD("tx_ultimate_easy.on_touch_event", " State: %i (%s)", touch.state, touch.state_str.c_str());
|
ESP_LOGD("tx_ultimate_easy.on_touch_event", " State: %i (%s)", touch.state, touch.state_str.c_str());
|
||||||
ESP_LOGD("tx_ultimate_easy.on_touch_event", " Position: %i", touch.x);
|
ESP_LOGD("tx_ultimate_easy.on_touch_event", " Position: %i", touch.x);
|
||||||
|
|
||||||
|
on_press:
|
||||||
|
- lambda: |-
|
||||||
|
if (sl_touch_vibration_feedback->state == "On press" or sl_touch_vibration_feedback->state == "Always")
|
||||||
|
vibrate->execute();
|
||||||
|
|
||||||
|
on_release:
|
||||||
|
- lambda: |-
|
||||||
|
if (sl_touch_vibration_feedback->state == "On release" or sl_touch_vibration_feedback->state == "Always")
|
||||||
|
vibrate->execute();
|
||||||
|
|
||||||
uart:
|
uart:
|
||||||
id: uart_touch
|
id: uart_touch
|
||||||
tx_pin: GPIO19
|
tx_pin: GPIO19
|
||||||
|
|||||||
Reference in New Issue
Block a user