Mirabella Genio Smart Home

Finally managed to flash this Mirabella Genio GU10. I started off using v2 of Tuya-Convert. I spend ages resolving all the errors on the PI but could not get it to flash. I started 3 times with fresh Stretch versions but had no luck. I also tried the old version but still no luck. I had given up as I spend countless hours without success. I decided to give it a last go. I had a fresh Stretch that only had version 2 of Tuya-Convert installed. I created a new directory. Downloaded the original Tuya-Convert. I ran the ā€œinstall_prereq.shā€ and put my GU10 in programming mode. After a few seconds it stopped blinking so my first reaction was, here we go again, but after 15 seconds it went off and started flashing. Now I have 3 GU10ā€™s on Tasmota. I struggled to find a template on blakadder but found this one to work.

{"NAME":"GenioGU10","GPIO":[0,0,0,0,38,37,0,0,41,39,40,0,0],"FLAG":0,"BASE":18}
2 Likes

Did you manage to make it work? I have the same bulb. flashed using tuya-convert2 with out any issues. Btu bulb doesnā€™t light up. It is not like it is bricked or anything. I can still change the esp code and reflash. I think I am using the wrong gpio pins. I am using the config on esphome site for cool/warm (see below). Please let me know if you manged to make it work. Thanks

esphome:
  name: mirabella_genio_cwww_1
  platform: ESP8266
  board: esp01_1m

wifi:
  ssid: 'WIFI'
  password: 'WIFIPASS'

logger:

api:

ota:

output:
  - platform: esp8266_pwm
    id: output_warm_white
    pin: GPIO13
  - platform: esp8266_pwm
    id: output_daylight
    pin: GPIO5

light:
  - platform: cwww
    name: "Mirabella Genio Smart Bulb"
    id: light
    cold_white: output_daylight
    warm_white: output_warm_white
    cold_white_color_temperature: 6500 K
    warm_white_color_temperature: 2700 K

    # Ensure the light turns on by default if the physical switch is actuated.
    restore_mode: ALWAYS_ON

I did manage to flash it using the old Tuya-convert. I put Tasmota on it and used this template.

{"NAME":"Genio Candle","GPIO":[0,0,0,0,140,37,0,0,38,142,141,0,0],"FLAG":0,"BASE":18}

Iā€™m not that familiar with EspHome but I think your ā€œoutput_warm_whiteā€ GPIO should be 12

1 Like

Thanks Johan. That worked.

1 Like

Nice one Kanga_who!!
I can confirm this is working too. I was going to suggest creating a Pull Request on the Blakadder GitHub but I can see you already have

1 Like

Sure did!

I must have submitted that config on the same day as the other guy did, but he had beat me too it, so his went up. I tried his config a few days later, and it didnā€™t work for me.

Figured it was time to correct it. :wink:

Iā€™m in the same boat you were: I flashed a gu10 bulb (with adjustable colour temperature) with the incorrect pin set (13 instead of 12). The bulb looks alive (I can see it on my network and interact with it in home assistant), however I canā€™t figure out how to upload the fixed firmware.

Iā€™m using these instructions: https://esphome.io/cookbook/mirabella-genio-bulb.html#adding-to-home-assistant

Obviously with it not lighting up itā€™s hard to know if itā€™s flashing and ready to accept the new firmware, however Iā€™ve tried about a dozen times and I still canā€™t get it to connect. Iā€™ve had success with a monochromatic bulb so my setup is working, itā€™s just that I canā€™t get tuya-convert to reconnect to the bulb. Any suggestions? Do I even need to use tuya-convert to upload firmware now I have esphome on the bulb?

The Mirabella Genio smart Xmas lights have arrived at Kmart. Has anyone had a chance to pull one apart?

Hey team,

I have picked up some of these, 2 of them and my wife and I use the Genio app with them, it seems fine.

I am curious if I can get them to talk to HomeAssistant for me, while ALSO being able to still be used by Genio (for my wife usability, nice and simple) ?

Can I do that somehow?

Iā€™m thinking of getting some next week. Very cheap for outdoor rated lights

So I was feeling adventurous and my wife wanted to put up the tree last nightā€¦
So we got some of those mirabella lights. Tried them in the genio app to get a feeling for them. Removed them from the app. Booted up a pi with fresh install of buster lite and OTA latest tuya convert.
The plug flashes green(slow) when no wifi ap, had to hold the button for fast green light flashing. loaded tasmota 7.0.0.3(default) with tuya convert.

Best config so far has beenā€¦

{"NAME":"SmartLedChain","GPIO":[0,0,0,0,157,17,0,0,37,38,39,0,0],"FLAG":0,"BASE":18}

So gpio4 ledlink, gpio5 is the button, gpio12 is pwm?, gpio13 is dummy pwm?, gpio14 is pwm?

This of course breaks the modes/functions that were in the original firmware. However scheme 4 gives a simple flicker setting and the dimmer, toggle, and timer(with time set) work correctly. I havenā€™t bothered to set the button up properly yet as I havenā€™t figured out way to get the modes back. Tasmota schemes 0-4 work, but are fairly limited , I was hoping the higher up schemes might fire, but they give an error/unknown result (which makes sense as they are for addressable LEDs).

So if anyone is good with making rules for what seems to be HSBcolor schemes in tasmota, feel free to jump in, I can only get them to dim so far that way, although tasmota rules are not my one of my strengths. something like event#fade ā€¦ or event#flicker comes to mind, but iā€™m not sure how do the pulses etc.

So in the meantime if you want more than 1 schemeā€¦ leave them in the genio app. Oh and I didnā€™t need to pull it apart to flash it, just wanted a look.

tree lights with star


4 Likes

So if these are not addressable LEDā€™s is each LED a set colour and the only thing you can change is the flashing pattern?

EDIT: the reason I ask, I would rather go with ESPhome than Tasmota and thinking that this might work. ESPhome lets you build your own effects so that could hopefully also workā€¦

Yeah just the flashing pattern and brightness are addressable.
Although I am not sure how those light effects in esphome would work with these lights. I havenā€™t figured out what the schemes in tasmota are doing. Besides Iā€™d have to bring them into HA with esphome to get a timer to work, or atleast include it in .yaml

Timers are all I really wanted and just click options in tasmota.

EDIT: Alot(all) of these effects in esphome are for addressable LEDs, Changing the RGB on these lights only adjusts the total brightness afaik.

Scheme 1 to 4 from tas commands work. but schemes 6-12 are not usable.
Dimmer changes produce this in tas console.

15:02:28 RSL: stat/tasmota/RESULT = {"POWER":"ON","Dimmer":59,"Color":"969696","HSBColor":"0,0,59","Channel":[59,59,59]}

So this the GPIO that is actually connected to the LEDā€™s and the others donā€™t actually do anything? Iā€™m thinking of getting some and giving ESPhome a crack using the PWM light component. I guess it should work based on your findings

Ledlink is the transformer LED, the pairing status led. GPIO 12 and 14 can be addressed as relays and flick half the lights on/off, so having 2 pwm set you can adjust the brightness of half the lights. Which is why I put the third pwm in to act as a dummy, which drags tasmota to a single brightness control. Iā€™ll add a screenie to explain more.

So this is with 3 pwms(1 dummy) set. Which allows scheme 1-4 to be used.
3pwm

And this is why I put the dummy in.Because 2pwm change the behaviour of Tasmota
2pwm

This is probably the best explanation Iā€™ve seen so far of how these work. Not sure how best to get that into tasmota or esphome.

Interesting! Thanks for sharing that. So from my quick read (didnā€™t watch the CRO videos) I guess we need to be careful not to try and provide an output from both PWM outputs at the same time since this would try to run polarity in both directions so to speakā€¦a dead short

Correct, full power on both channels at the same time doesnā€™t work and cuts the lights out.

If both GPIO 12 and 14 are:
Relays:

  • You can control both channels individually, but not both at once, due to short.

PWMs:

  • you need the first channel open to open run the second channel, full power canā€™t be done(shorts). But you can run channel 1 around 70% dimmer and channel 2 flick on and off by shifting from around 60% dimmer to 80% dimmer. Which I assume is enough to change the polarityā€¦ I could be totally wrong though.

Trying to fully understand how that H-bridge works is cooking my brainā€¦ itā€™s been too many years since I studied electronics like that. Iā€™ve been trying to get more info on these 2 wire LED strings as well but not having much luck. Iā€™m thinking we need to have the two PWM outputs running at the same frequency but opposite polarities to function correctly? Or is it that one should be at minimum frequency while the other is adjusted across its range for one string and then the opposite for the other string / half?

yeah not really sure, sounds rightā€¦ I donā€™t have an oscilloscope to look further.
On the scheme 4 random both channels flickering mode. it jumps around pos to neg on a multimeter.

NingBo Golden power might help dunno. I didnā€™t have flash installed to view their stuff, if its even there.
NingBo Golden power.