Skip to content

Instantly share code, notes, and snippets.

@beeradmoore
Created January 7, 2023 06:32
Show Gist options
  • Save beeradmoore/70a0a6794e3d0e1997b9e5fcc9762f03 to your computer and use it in GitHub Desktop.
Save beeradmoore/70a0a6794e3d0e1997b9e5fcc9762f03 to your computer and use it in GitHub Desktop.
Home Assistant config for ANKO HEGSM40 fan running Tasmota
# bedroom fan
mqtt:
fan:
- name: "Bedroom Fan"
unique_id: "bedroom_fan"
device: { "identifiers": "tasmota bedroom fan", "suggested_area": "Bedroom" }
command_topic: "cmnd/tasmota_743BE6/POWER"
state_topic: "stat/tasmota_743BE6/POWER"
percentage_command_topic: "cmnd/tasmota_743BE6/TuyaSend4"
percentage_command_template: "{{ {1: '3,0', 2: '3,1', 3: '3,2', 4: '3,3', 5: '3,4', 6: '3,5', 7: '3,6', 8: '3,7'}[value] | default('1') }}"
percentage_state_topic: "stat/tasmota_743BE6/DPTYPE4ID3"
speed_range_min: 1
speed_range_max: 8
oscillation_command_topic: "cmnd/tasmota_743BE6/TuyaSend4"
oscillation_state_topic: "stat/tasmota_743BE6/DPTYPE4ID4"
payload_oscillation_on: "4,1"
payload_oscillation_off: "4,0"
#preset_mode_command_topic: "cmnd/tasmota_743BE6/TuyaSend4"
#preset_modes:
# - "normal"
# - "nature"
# - "sleep mode"
#preset_mode_command_template: "{{ { 'normal': '2,0', 'nature' : '2,1', 'sleep': '2,2'}[value] | default('normal') }}"
#preset_mode_state_topic: "stat/tasmota_743BE6/DPTYPE4ID2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment