Domochip / gardena2mqtt

Gateway to control GARDENA Smart system devices through MQTT
GNU General Public License v3.0
10 stars 4 forks source link

[Question] Does this work with HA #1

Open el97 opened 2 years ago

el97 commented 2 years ago

First of... Great work with this! I'm a bit new to MQTT and programming overall so I have some questions. How well does this work with Home Assistant and the Mosquitto MQTT broker (https://github.com/home-assistant/addons/tree/master/mosquitto)? Do I need to use any more kind of software other than that?

nce commented 2 years ago

Can't say much about HA, but can confirm that it's working with the usual mqtt clients. I publish to your mentioned mosquitto mqtt broker just fine:

gardena2mqtt/GARDENA smart Garden/Gemuese {"datetime": "2022-05-28 05:01:03", "id": "xxxx-07af-xxxx-b5bf-c9dfa361eec1", "type": "SOIL_SENSOR", "battery_level": 58, "battery_state": "OK", "name": "Gemuese", "rf_link_level": 90, "rf_link_state": "ONLINE", "serial": "xxxx", "model_type": "GARDENA smart Sensor", "soil_humidity": 85, "soil_temperature": 8}

Payload is in json and parsable by - in my case - telegraf for influxdb input. For development purpose i have another subscriber temporary running with mosquitto_sub -h mqtt -v -t 'gardena2mqtt/#

The data has a bit of a delay; I usually don't get instant messages when interacting with the gardena equipment, but for my usecase thats fine.

I havn't tried publishing to trigger actions though...

Domochip commented 1 month ago

Hey, @el97,

I've just implemented a first version reporting the lawn mower status to HA. If you can test it, it would be great or if you are using different Gardena devices, It can be interesting for me to knwo what devices and what are you doing with in order to code proper HA actions.

thanks