I got this lamp but also I find out that it is not supported, it’s a new product so I’m not that surprised
It appears in the configuration as
Mi Smart Computer Monitor Light Bar 1S - yeelink.light.lamp22
Model MJGJD02YL
Only accessible via cn AFAIK
I will gladly provide help, or welcome any tips how can I make it work with current integration, I can write code but I’m not strong with Python or HA code base
There is no way to integrate the desk lamp 1s into HA, as Xiaomi stopped the local api for xiaomi branded products.
You have to flash this lamp with esp home.
Have a look at here:
Unfortunately, the process will render your remote useless (shame, it’s a nice remote) but I still think it’s worth it.
And you are right, dissembling is messy, I scratch the paint off the ends of my tube while dissembling, it’s very easy to scratch paint, I ended up printing 2 plastic caps to cover those scratched ends, so, do yourself a favor and get those pliers with non-marring grips … or be prepared for some 3d printing
No, I didn’t save those 3D files, it was an easy and fast print, basically, a cylinder printed in vase mode I did a few iterations on it to get a tighter fit, I think it wouldn’t print the same on the other printer.
I printed those in black PLA, I was worried that they will annoy me (the original look is awesome) but I stopped noticing them very quickly, and during nighttime, while the lamp is on you don’t notice them at all because of the light.
I finally perform it today on 2 Desk Lamp S1, without breaking anything. Very happy for this modification.
I use this SP10 probes to avoid solder on tests points.
I also tried to use ESPHome instead of tasmota, not as tasmota is not good, but just all my others boards are now with ESPHome.
But at the moment I didn’t success to run with ESPHome.
I guees didn’t set the right config for the ESP32solo1 board.
I tried this ESP32solo1 config.
SP10 was useful to flash every-time I break the boot…
I have also include the zigbee Tuya Smart Knob - ERS-10TZBVK-AA as replacement for the origin remote control. Not as great than the original remote but it’s ok to toggle and dim/bright quickly
So there is no way to control this Light Bar with Home Assistant instead of opening and flashing it with another firmware? Or has this changed in the meantime? It would be no problem for me if the connection is made over the cloud.
Very unlikely, as it has been a year since I flashed it I never considered going back to the original firmware. I spend a lot of time researching different approaches and by that time it was the only option.
I have no idea if support for that device was added in HA Xiaomi plugin, and since those are not that popular. I can only imagine you are here because you spend your time browsing the internet for solutions.
However, maybe you can try Yeelight integration since nowadays there is a very similar lamp YLTD003 and this lamp is supported by HA, maybe, by some chance, it will also work with MJGJD02YL.
It’s a long shot, please come back with a result here, for sure it will help others in future
Retrieved the device token for the lamp with vevs modded Mi Home app, like mentioned here.
Added the device with “host/token” to Home Assistant. (This was my initial problem. With the “Mi Account” option it added the device, but it wasn’t controllable.)
Now I just need to find out how I get back the color temperature slider of the deprecated version of the custom component. The new one has a color picker (probably because of the Yeelight YLTD001/YLTD003).
Ok, sorted that out too, had to make this adjustment to the entity through the “customize.yaml”.
Thanks for your post! I have the Xiaomi 1S monitor light, and just added it (using the token). It works well
Do you know if it’s possible to add the remote? It apparently uses 2.4Ghz to communicate. I’m wondering if we can add the remote and then control it with events in HA. That would be amazing…
You might try setting up a Milight hub to read the RF signals and pass them to HA. I don’t have the Light Bar, but do use a few MiLight remotes as inputs to HA to control lights and automations.
This worked wonderfully. After that, I was able to set up the light bar in the Home Assistant with the Xioami Miot Auto integration of HACS. I selected the “Setup with host/token” mode. All the information I needed for this was made available to me via the Windows app.
I had to search a bit on how to modify the customize.yaml. I am running HA as a docker container, so I had to initially add a reference in the config/configuration.yaml and then create the config/customize.yaml.
I used the following commands:
# Copy configuration.yaml from container
docker cp <YOUR CONTAINER ID>:/config/configuration.yaml .
# Edit configuration.yaml:
nano configuration.yaml
# add the following
homeassistant:
customize: !include customize.yaml
# copy back in
docker cp configuration.yaml <YOUR CONTAINER ID>:/config/configuration.yaml
# Create customize.yaml
printf "# CUSTOMIZE DEVICES\nlight.yeelink_lamp22_XXXX_light:\n color_mode: 'color_temp'" > customize.yaml
# then copy in container
docker cp customize.yaml <YOUR CONTAINER ID>:/config/customize.yaml
# Delete files outside the container
rm customize.yaml
rm configuration.yaml
Lastly, you can now get the device IP and token from vevs’ Mi Home mod at:
My Light Bar > 3 dots top right corner > Additional Settings > Network Info