Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- input_number:
- dfplayer_volume:
- name: Volume
- initial: 15
- min: 0
- max: 30
- step: 1
- automation:
- - alias: Set df player volume
- trigger:
- platform: state
- entity_id: input_number.dfplayer_volume
- action:
- - service: esphome.nodenfc1_dfplayer_set_volume
- data_template:
- volume: "{{ states('input_number.dfplayer_volume') | int }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement