Mars Hydro

Good evening everyone,
has anyone ever looked into integrating the Mars Hydro devices? I saw that the AC Infinity Controller was integrated.
Greetings spalter

Hello everyone,

I’m also very interested in integrating Mars Hydro devices into Home Assistant. If there’s any progress or development on this topic, I would appreciate updates. Additionally, if there’s any way I can assist or contribute to making this integration possible, please let me know.

Thank you!

1 Like

Has anyone seen any progress made for bluetooth MH dimmer integration? I, too, am looking to integrate a few rooms up to my controller instead of just killing power to the socket.

1 Like

Not necessarily for Mars Hydro, but I depending on your driver, you can use an ESP32 with a 0-10v converter. More info here

I have all the kit built, but no light available to test it on yet, it’s busy :wink:
There are other methods, using mosfets/octocouplers etc. but this seemed the simplest.
Atb

Any progress? Interested in integrating mars hydro smart led (as FC- Evo series)

The Mars Hydro app offers an option to share the system with others. I guess there is no option to connect to the API by sniffing the traffic because of encryption? :pleading_face:

1 Like

I hope I’m in the right place.

I have the MarsHydro FC-E1500 with the Bluetooth stick. Since I would also like to use the lamp in HA (Home Assistant), I opened the stick and saw that it only contains an ESP32 WROOM-32E connected to a USB, with the pins for reflashing clearly labeled. Since I have no idea about this kind of thing, I would like to post the pictures I took, and maybe someone has an idea on how to integrate or reflash it.es I took, and maybe someone has an idea on how to integrate or reflash it.


Hi guys,

I have 2 FC6500 EVOs. Its gen.1 smart grow light from Mars Hydro. Dimmer box in light already contains ESP32 chip.

I took some pictures but can’t find them right now. Have to check them later using my PC. Writing this with my phone.

Mars Hydro app SUCKS. Just look at the comments.

I wondered since it has ESP32 in it, maybe you could flash it to Esphome? I can’t tinker with it because my grow is still due for few weeks.

App shows some kind of ID but I don’t understand much about cloud platforms.
I tried putting it in pairing mode and add it to ewlink and smartlife apps without progress.

Can anyone help how to proceed?

I took interest also in this. Mars hydro uses ESP32 wroom in integrated smart dimmer box.

If you want to control light intensity, easiest route is using lights 12v as VIN and then PWM to 0-10v module.

i completely reverse engenieered the whole api of the androdi app by man in the middle attacking my own network with an decryption certificate.

After that printed out the api calls, wrote a python script to implement and test functionalities.

  • logging in via username and password
  • get device ids
  • get state of device (turned on / off / brightness value)
  • turn on and off lamp
  • set brightness of lamp

last days i started creating my own integration and managed to do so, i can now control the lamp which is connected to the mars hydro cloud via app.

some screenshots (can only post one since im a newly registered here)

everything works fine for me, but seems integrating officially into hass needs some verification like bronze status or silver aswell as some security features and so on.

this is alpha alpha version, goal for me is to control the brightness in relation to the watt generated by my solar system.

so in case my solar system gets 300w ++ i can set my lamp to 100% since its an FC 3000 with 300w.

ill keep you guys updated, this was round about 3days work of 6 hours daily

2 Likes

cant post more than 1 screenshot in one post (cause newbi) so i do post by post.

controlling the lamp now works fine in my dashboard. i can turn it on and off aswell as setting the brightness.

also automation for controlling my usecase works fine.
with that you will be able to set the light schedule for turning the light on and off via automations aswell.

- id: '1736865121316'
  alias: Automatic Brightness Adjustment Based on PV Power
  description: Adjust the brightness of the light based on solar power.
  trigger:
    - platform: time_pattern
      minutes: "/10"  # Check every 10 minutes
  condition:
    - condition: numeric_state
      entity_id: sensor.hoymiles_gateway_solarh_5347040_real_power_total_increasing
      above: 0  # Only run if solar power is positive
  action:
    - service: system_log.write
      data:
        message: "Current solar power: {{ states('sensor.hoymiles_gateway_solarh_5347040_real_power_total_increasing') }} W"
        level: info
    - service: light.turn_on
      target:
        entity_id: light.mars_hydro_brightness_light
      data:
        brightness_pct: >
          {% set solar_power = states('sensor.hoymiles_gateway_solarh_5347040_real_power_total_increasing') | float %}
          {% if solar_power >= 300 %}
            100.0
          {% elif solar_power >= 270 %}
            90.0
          {% elif solar_power >= 240 %}
            80.0
          {% elif solar_power >= 210 %}
            70.0
          {% else %}
            60.0
          {% endif %}
    - delay: "00:00:01"  # Short delay to ensure the value has been updated
    - service: system_log.write
      data:
        message: "Set light brightness to: {{ state_attr('light.mars_hydro_brightness_light', 'brightness') }}"
        level: info

2 Likes

:slight_smile:

2 Likes

Thank You so much, this sounds amazing.

HACS integration worked already, I just need to get the USB Dongle out of the box and App going today - I am so excited :slight_smile:

1 Like

Any feedback apperciated :slight_smile: thanks!

Installed the Dongle on the Light and registered myself in the App… put the credentials into the Homeassistant integration and everything works great! I love it!

So far I changed from just turning the socket on and off to now having a somewhat slow sunrise and sunset - still fiddeling with the automation since I am just bad at all of this, but it is really cool to control the light directly in homeassistant! :smiling_face_with_three_hearts:

I do have a question… as an internet beggar who would like to choose something… and as someone who barely is able to use hacs integrations… it says on the github page that Additional devices are “not yet” supported.

Do you have plans on making it possible to control more than one light or maybe even other devices from the marshydro app?

I do have a marshydro Fan which apparently is controllable via bluetooth and the marshydro app - as I found out yesterday :slight_smile: and it would be a dream to homeassistant-control that one too.

Thanks again for doing any of this!

1 Like

Thanks for your feedback :slight_smile: sunrise should be easy possible. You can take my automation posted before to get some hints how to implement the automation.

Sure thing, do you have more than one light or just one light and one fan?
i try to implement more devices aswell a fan support but since i dont have an account which controls a fan or more devices, im not able to fetch the api responses for that case.

i might get an account with a fan soon, so i can implement that aswell :slight_smile:

//edit

added fan support

Hillarious… that was very quick! And what a nice update, I wish I had even more marshydro peripherals!

I’ve updated the integration and devices etc… the fan is working great - I connected the fans temp/humidity probe and use the data in addition to my other hygrometers. I was a little stumped with the 25% min speed, I thought I was doing something wrong at first.

I do only have one MarsHydro LED at the moment, and sadly they don’t make a small enough LED Panel with smart capabilities for my propagation tent :slight_smile: but controlling the big light and fan is already so amazingly fun!

I am also looking into maybe getting solar power with a battery pack (my growlights are on at night) for my balcony now, since the systems are cheaper than I thought… and the idea to generate some energy for the growlight with the sun is also really appealing.

1 Like

Awesome! Thanks!! :clap::clap::clap::clap::clap:

Hi!

I have an Ifresh fan, and i can login to the cloud with my credentials, and i can see one of my two fans, but everything is unavaible. Is this maybe a compatibility issue? Thanks for the reply

Did you login with the app after using the Integration?

Mars Hydro api only allows one login, so when you Set it up in home assistant, it’s not possible to use the app anymore.

Just reload the Integration and they should be available again