Open jkoenig72 opened 4 months ago
Did this, maybe someone find this useful. Use same wiring as the orinal hack, D4 amd d1_mini.
....
api: services:
service: move_up then:
service: move_down then:
service: move_left then:
service: move_right then:
service: set_speed variables: speed: int then:
web_server: port: 80
uart: id: uart_bus tx_pin: D4 baud_rate: 9600
script:
id: move_up then:
id: move_down then:
id: move_left then:
id: move_right then:
number:
platform: template name: "Speed Control" id: current_speed min_value: 1 max_value: 8 step: 1 optimistic: true initial_value: 4 on_value: then:
platform: template name: "Steps Control" id: current_steps min_value: 1 max_value: 10 step: 1 optimistic: true initial_value: 5
button:
platform: template name: "Move Up" icon: "mdi:arrow-up" on_press: then:
platform: template name: "Move Down" icon: "mdi:arrow-down" on_press: then:
platform: template name: "Move Left" icon: "mdi:arrow-left" on_press: then:
platform: template name: "Move Right" icon: "mdi:arrow-right" on_press: then:
Did this, maybe someone find this useful. Use same wiring as the orinal hack, D4 amd d1_mini.
....
api: services:
service: move_up then:
service: move_down then:
service: move_left then:
service: move_right then:
service: set_speed variables: speed: int then:
web_server: port: 80
uart: id: uart_bus tx_pin: D4 baud_rate: 9600
script:
id: move_up then:
id: move_down then:
id: move_left then:
id: move_right then:
number:
platform: template name: "Speed Control" id: current_speed min_value: 1 max_value: 8 step: 1 optimistic: true initial_value: 4 on_value: then:
platform: template name: "Steps Control" id: current_steps min_value: 1 max_value: 10 step: 1 optimistic: true initial_value: 5
button:
platform: template name: "Move Up" icon: "mdi:arrow-up" on_press: then:
platform: template name: "Move Down" icon: "mdi:arrow-down" on_press: then:
platform: template name: "Move Left" icon: "mdi:arrow-left" on_press: then:
platform: template name: "Move Right" icon: "mdi:arrow-right" on_press: then: