Finally! A Tasmota WiFi Dimmer Smart Switch



Looking for a MQTT WiFi Dimmer Switch that works with Tasmota for local control that works with HomeAssistant and many other home automation solutions?  Check out this dimmer smart switch here on Amazon - Oittm Dimmer Switch.  If they don't ship to your country/area try this variant here on Amazon.

This is a 1 gang US sized WiFi dimmer smart switch with Tasmota firmware! No cloud or internet necessary.  All local control.

The WiFi controller is an ESP8266 chip ready to be flashed with Tasmota firmware.  I've coded the serial communications necessary into the Tasmota firmware and compiled the firmware for you.

Flash with a standard USB ESP8266 capable flasher device.  Do NOT connect it to mains power while flashing.  Flashing this device will void the warranty, do so at your own risk!

Firmware - https://github.com/digiblur/TuyaDimmer-Tasmota/raw/master/TuyaDimmer_Tasmota_6216.bin

Or you can snag one of the latest nightly builds here: http://thehackbox.org/tasmota/

Example HomeAssistant YAML Configuration:

- platform: mqtt
  name: "TuyaDimTest"
  state_topic: "stat/TuyaDimTest/POWER"
  command_topic: "cmnd/TuyaDimTest/POWER"
  availability_topic: "tele/TuyaDimTest/LWT"
  brightness_state_topic: "stat/TuyaDimTest/RESULT"
  brightness_command_topic: "cmnd/TuyaDimTest/Dimmer"
  brightness_scale: 100
  brightness_value_template: >
    {% if value_json.Dimmer is defined %}
      {{ value_json.Dimmer }}
    {% else %}
      {% if state_attr('light.tuyadimtest','brightness') == none %}
        0
      {% else %}
        {{ state_attr('light.tuyadimtest','brightness') / 255 * 100 }}
      {% endif %}
    {% endif %}
  qos: 1
  payload_on: "ON"
  payload_off: "OFF"
  payload_available: "Online"
  payload_not_available: "Offline"
  retain: false


GitHub - https://github.com/digiblur/TuyaDimmer-Tasmota

Comments

Popular posts from this blog

Smart Laundry Notifications with a Sonoff S31 & Home Assistant

Part 1 - How to Expand Tasmota/Sonoff Devices with the I2C Protocol - I²C