Advertisement
MiAutomations

M5Stack_Dial_ESP_HA

Apr 2nd, 2024
751
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.17 KB | Source Code | 0 0
  1. captive_portal:
  2. substitutions:
  3.   devicename: "m5-dial"
  4.   wifi_ssid: !secret wifi_ssid
  5.   wifi_password: !secret wifi_password  
  6.  
  7. packages:
  8.   m5_tough_package:
  9.     url: https://github.com/SmartHome-yourself/m5-dial-for-esphome
  10.     ref: main
  11.     file: shys-m5-dial.yaml
  12.     refresh: 1h
  13.  
  14. shys_m5_dial:
  15.   name: m5stack-rotatory-knob
  16.   font: FreeSans12pt7b
  17.   font_factor: 1
  18.  
  19.   devices:
  20.     lights:
  21.       - entity: light.yeelight_color_0x36ec1bd
  22.         name: Yeelight
  23.         modes:
  24.           dimm_mode:
  25.             enable: true
  26.             rotary_step_width: 10
  27.           rgb_mode:
  28.             enable: true
  29.             rotary_step_width: 30
  30.           white_mode:
  31.             enable: true
  32.             rotary_step_width: 100
  33.             min_kelvin: 2500
  34.            
  35.       - entity: light.my_light2
  36.         name: Light 2
  37.  
  38.     switches:
  39.       - entity: switch.sonoff_1000af1722
  40.         name: Sala
  41.        
  42.     climates:
  43.       - entity: climate.my_climate1
  44.         name: Heater
  45.         modes:
  46.           temp_mode:
  47.             rotary_step_width: 1
  48.             min_temperature: 4
  49.             max_temperature: 30
  50.            
  51.     covers:
  52.       - entity: cover.curtain_window_curtain
  53.         name: Cortina
  54.         modes:
  55.           position_mode:
  56.             rotary_step_width: 5
  57.  
  58.     fans:
  59.       - entity: fan.my_fan1
  60.         name: Fan 1
  61.         modes:
  62.           speed_mode:
  63.             changeable_direction: true
  64.             rotary_step_width: 10
  65.  
  66.     media_player:
  67.       - entity: media_player.echo_show_8_2nd_gen
  68.         name: MediaPlayer 1
  69.         modes:
  70.           play_mode:
  71.             rotary_step_width: 10
  72.           source_mode:
  73.             rotary_step_width: 1
  74.             sources:
  75.               - name: 1Live
  76.                 content_id: 1Live
  77.                 content_type: TUNEIN
  78.               - name: WDR2
  79.                 content_id: "http://wdr-wdr2-bergischesland.icecast.wdr.de/wdr/wdr2/bergischesland/mp3/128/stream.mp3"
  80.                 content_type: custom
  81.  
  82.     lock:
  83.       - entity: lock.my_lock1
  84.         name: Lock 1
  85.         modes:
  86.           lock_mode:
  87.             rotary_step_width: 1
  88.             open_on_button: false    
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement