Upgrading a Verve Design oyster light with Tasmota and connecting it to Apple HomeKit

Aren’t there already Tuya plugins for Homebridge?

Assumed knowledge

Advantages of this solution

Disadvantages

Shortfalls

Steps

1. Flashing Tasmota onto the TYWE2L

The TYWE2L.

Over-the-air firmware upgrade: fail.

Flashing the TYWE2L

RPi   /   TYWE2L
----------------
GND GND
TX RX
RX TX
GND IO0
--- 3V3
⚠️ Be extremely careful when soldering onto the TX, RX and IO0 pads on the back of the PCB. Handle the chip with care. These copper pads can be easily ripped off if you tug enough on the wire leaving you no other place to connect up to TX, RX or IO0.

2. Configure Tasmota for the Hana light

3. Set up an MQTT Broker

What is MQTT?

4. Setting up homebridge-mqttthing

{
"type": "lightbulb-ColTemp",
"name": "Bathroom Ceiling",
"username": "******",
"password": "******",
"mqttOptions": {
"keepalive": 30
},
"mqttPubOptions": {
"retain": true
},
"logMqtt": true,
"topics": {
"getOnline": "tele/tasmota_11B064/LWT",
"setOn": "cmnd/tasmota_11B064/POWER",
"getOn": {
"topic": "stat/tasmota_11B064/RESULT",
"apply": "return JSON.parse(message).POWER;"
},
"setBrightness": "cmnd/tasmota_11B064/Dimmer",
"getBrightness": {
"topic": "stat/tasmota_11B064/RESULT",
"apply": "return JSON.parse(message).Dimmer;"
},
"setColorTemperature": "cmnd/tasmota_11B064/CT",
"getColorTemperature": {
"topic": "stat/tasmota_11B064/RESULT",
"apply": "return JSON.parse(message).CT;"
}
},
"onlineValue": "Online",
"offlineValue": "Offline",
"onValue": "ON",
"offValue": "OFF",
"minColorTemperature": 153,
"maxColorTemperature": 500,
"accessory": "mqttthing"
}

Results

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store