35 lines
744 B
YAML
35 lines
744 B
YAML
|
|
# Leaf guard scrubber
|
||
|
|
substitutions:
|
||
|
|
device_name: Leaf guard scrubber
|
||
|
|
device_id: scrubber
|
||
|
|
project_name: juju.scrubber
|
||
|
|
extra_version: ""
|
||
|
|
project_version: "0.8${extra_version}"
|
||
|
|
|
||
|
|
packages:
|
||
|
|
board: !include d1mini.yaml
|
||
|
|
base: !include base.yaml
|
||
|
|
scrubber:
|
||
|
|
number:
|
||
|
|
- platform: template
|
||
|
|
name: Servo Control
|
||
|
|
min_value: -100
|
||
|
|
initial_value: 0
|
||
|
|
max_value: 100
|
||
|
|
step: 1
|
||
|
|
optimistic: true
|
||
|
|
set_action:
|
||
|
|
then:
|
||
|
|
- servo.write:
|
||
|
|
id: servo0
|
||
|
|
level: !lambda "return x / 100.0;"
|
||
|
|
|
||
|
|
servo:
|
||
|
|
- id: servo0
|
||
|
|
output: servo_pwm
|
||
|
|
|
||
|
|
output:
|
||
|
|
- platform: ledc
|
||
|
|
id: servo_pwm
|
||
|
|
pin: 4
|
||
|
|
frequency: 50 Hz
|