Mirabella Genio Smart Home

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.

No seriously, please - how can I continue to use the Genio app, but ALSO control my Mirabella lights, with HomeAssistant, is this possible?

Did you try the Tuya integration?

I did and it’s not working.
I edited /usr/share/hassio/homeasistant/configuration.yaml and I added the following

tuya:
username: [email protected]
password: password
country_code: 61

saved file
rebooted, no sign of Tuya in my HA?

I also tried adding platform: tuya at the end.

How do I “search” for Tuya apps? Where’s the log to see if the credentials I put in, even worked?
I see no reference to the word “Tuya” in my entities or devices.

the tuya integration doesnt support all items and this is why they probably dont show up

To be clear, I don’t have any tuya devices added yet.

(Yes I know that’s ridiculous…)

I just want the tuya plugin working so when I add my Mirabella globes it works

EDIT:

Ok yep as soon as the devices were added to the Tuya app and the plugin correctly configured in the configuration.yaml file - they auto added lovely!
Sorry / thanks all.

Important question!
Is there a way on the front page of HA to tell ALL GLOBES IN HOUSE to be the same colour, in one go? I can individually control them - but it would be nice to set a theme for the whole house.?

create a group for the lights.
then you can control the colour/temp/brightness using the group

image

Thanks for that, I found the guide, did it, it worked - cool.

I don’t suppose there’s a way to tell my system “whatever youi do, make the Xioami gateway MUCH DIMMER than the Mirabella” ? it’s so much brighter than the 2 proper globes

Hi there, beginner question here.
I have been trying to flash a Mirabella Genio bulb from Bunnings using the OTA method with a raspi and the bin file created using ESPHome. I have been following the cookbook but am stuck on actually running the Tuya Convert startup script. I have made sure everything is updated, but cannot seem to get progress. Has anyone any advice on this?
If this is a tuya-convert problem, which I suspect it is, then please feel free to tell me to go over to their github site!
thanks, Phil in Perth

pi@raspberrypi:~/tuya-convert $ ./start_flash.sh 
Checking for network interface wlan0... Found.
Checking UDP port 53... Occupied by dnsmasq with PID 496.
Port 53 is needed to resolve DNS queries
Do you wish to terminate dnsmasq? [y/N] y
Attempting to stop dnsmasq.service
Checking UDP port 67... Available.
Checking TCP port 80... Available.
Checking TCP port 443... Available.
Checking UDP port 6666... Available.
Checking UDP port 6667... Available.
Checking TCP port 1883... Occupied by mosquitto with PID 482.
Port 1883 is needed to run MQTT
Do you wish to terminate mosquitto? [y/N] y
Attempting to stop mosquitto.service
Checking TCP port 8886... Available.
======================================================
  Starting AP in a screen.

Hey Phil, did you use an Android phone or tablet to connect to the vtrust-flash wifi AP that Tuya-convert creates? Once you do that you need to put the bulb into pairing mode, generally by power cycling it a few times until it starts flashing