Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- substitutions:
- devicename: ac-livingroom
- upper_devicename: AC-Livingroom
- deviceIP: 192.168.178.37
- deviceGatew: 192.168.178.1
- deviceSub: 255.255.255.0
- deviceSSID1: 7390_iot
- deviceSSID2: 7390AP
- esphome:
- name: ${devicename}
- comment: ${upper_devicename}
- preferences: flash_write_interval: 5min
- platformio_options:
- upload_speed: 2000000
- esp8266:
- board: esp12e
- # Disable logging via UART
- logger:
- baud_rate: 0
- # Enable Home Assistant API
- api:
- encryption:
- key: "xxx+YDOHxQC/DMBS3J5k="
- ota:
- password: "xxx"
- platform: esphome
- wifi:
- networks:
- - ssid: ${deviceSSID1}
- password: !secret wifi_password
- manual_ip:
- # Set this to the IP of the ESP
- static_ip: ${deviceIP}
- # Set this to the IP address of the router. Often ends with .1
- gateway: ${deviceGatew}
- # The subnet of the network. 255.255.255.0 works for most home networks.
- subnet: ${deviceSub}
- - ssid: ${deviceSSID2}
- password: !secret wifi_password
- manual_ip:
- # Set this to the IP of the ESP
- static_ip: ${deviceIP}
- # Set this to the IP address of the router. Often ends with .1
- gateway: ${deviceGatew}
- # The subnet of the network. 255.255.255.0 works for most home networks.
- subnet: ${deviceSub}
- # Enable fallback hotspot (captive portal) in case wifi connection fails
- ap:
- ssid: "ac-livingroom"
- password: "REDACTED"
- captive_portal:
- # Enable Web server.
- web_server:
- port: 80
- time:
- - platform: homeassistant
- id: homeassistant_time
- # Text sensors with general information.
- text_sensor:
- # Expose ESPHome version as sensor.
- - platform: version
- name: ESPHome Version
- # Expose WiFi information as sensors.
- - platform: wifi_info
- ip_address:
- name: ${upper_devicename} IP
- mac_address:
- name: ${upper_devicename} MAC
- ssid:
- name: ${upper_devicename} SSID
- # Sensors with general information.
- sensor:
- # Uptime sensor.
- - platform: uptime
- name: ${upper_devicename} Uptime
- filters:
- - lambda: return x / 60.0;
- unit_of_measurement: minutes
- # WiFi Signal sensor.
- - platform: wifi_signal
- name: ${upper_devicename} WiFi Signal
- update_interval: 60s
- - platform: homeassistant
- id: follow_me_sensorr
- entity_id: sensor.aranetrn_305f1_temperature ###this is my recent temp sensor...in living room i use a aranet radon sensor and in the bedroom i use a xiaomi ble temp/humidity sensor from ali with alternative firmware
- internal: false
- filters:
- - throttle: 10s
- - heartbeat: 1min
- - debounce: 1s
- on_value:
- midea_ac.follow_me:
- temperature: !lambda "return x;"
- beeper: false
- # UART settings for Midea dongle (required)
- uart:
- tx_pin: GPIO1 # hardware dependant
- rx_pin: GPIO3 # hardware dependant
- baud_rate: 9600
- # Main settings
- climate:
- - platform: midea
- name: ${upper_devicename} # Use a unique name.
- autoconf: true
- beeper: false
- visual:
- min_temperature: 16 °C
- max_temperature: 30 °C
- temperature_step: 1 °C
- supported_modes: # All capabilities in this section detected by autoconf.
- - FAN_ONLY # This capability is always used.
- - COOL
- - DRY
- - HEAT
- custom_fan_modes:
- - SILENT
- - TURBO
- supported_presets: # All capabilities in this section detected by autoconf.
- - ECO
- - BOOST
- - SLEEP
- supported_swing_modes:
- - VERTICAL # This capability is always used.
- #new added for test
- remote_transmitter:
- pin: GPIO13
- carrier_duty_percent: 100%
- #new added for test
- button:
- - platform: template
- name: Display Toggle
- icon: mdi:theme-light-dark
- on_press:
- midea_ac.display_toggle:
- - platform: template
- name: Swing Step
- icon: mdi:tailwind
- on_press:
- midea_ac.swing_step:
- switch:
- - platform: template
- name: ${upper_devicename} Beeper
- icon: mdi:volume-source
- restore_mode: Always_off
- optimistic: true
- turn_on_action:
- midea_ac.beeper_on:
- turn_off_action:
- midea_ac.beeper_off:
Advertisement
Add Comment
Please, Sign In to add comment