Hi folks,
Stumped once again.
So I purchased 4 of these bulbs:
And followed the following WIKI to upload a firmware compatible with HA:
All sorts of problems doing that with compiling the build code. Issue raised with the maker.
So I decided to give one a try instead:
Far better success, everything uploads, supports MQTT discovery, HA sees the bulb, but doesn’t interact. It seems as if MQTT isn’t communicating correctly with the command/state topics.
Now, I’m not very familiar with MQTT coding and how it all works, but I wanted to try it without MQTT discovery, and have full control over the command and state topics within HA using the MQTT Json Light component.
Question, is, the current code looks like this:
///////////////////////////////////////////////////////////////////////////
// MQTT
///////////////////////////////////////////////////////////////////////////
#define MQTT_USERNAME ""
#define MQTT_PASSWORD ""
#define MQTT_SERVER ""
#define MQTT_SERVER_PORT 1883
// enable Home Assistant MQTT Discovery feature
#define MQTT_HOME_ASSISTANT_SUPPORT
#if defined(MQTT_HOME_ASSISTANT_SUPPORT)
// template: <discovery prefix>/light/<chip ID>/config, status, state or set
#define MQTT_CONFIG_TOPIC_TEMPLATE "%s/light/%s/config"
#define MQTT_HOME_ASSISTANT_DISCOVERY_PREFIX "homeassistant"
#endif
#define MQTT_STATE_TOPIC_TEMPLATE "%s/rgbw/state"
#define MQTT_COMMAND_TOPIC_TEMPLATE "%s/rgbw/set"
#define MQTT_STATUS_TOPIC_TEMPLATE "%s/rgbw/status" // MQTT connection: alive/dead
#define MQTT_STATE_ON_PAYLOAD "ON"
#define MQTT_STATE_OFF_PAYLOAD "OFF"
#define MQTT_CONNECTION_TIMEOUT 5000
How exactly would I change it so I can manually use my own command/state topics. I understand commenting out the HA discovery line, but the rest is beyond me.
I’d troubleshoot, but for those who may have these bulbs… you have to solder 5 very tiny wires to the bulbs, using a FTDI adapter to flash the firmware, unsolder then plug in to test. I’ve already ruined 2 bulbs from constant soldering!
Any help would be much appreicated!