Beiträge von Wayfarer

    The configuration shows both methods for the plant sensors as for the switch bot as well. The switch bot is used by me as a door opener (Türöffner) and I use a shell command to operate it. This is done with homebridge-cmdtrigger.


    The rest is the mqttthing configuration for three plants (Dracaena, Fittonia, and Schnittlauch):


    thanks,

    its works 8)

    it seems mqttthing doesn't support combined sensors yet

    but it is not a big problem, i think

    I don't use the FlowerCare plugin but a Python script to get the sensor data. This allows the plant sensors to be queried and the Switchbot to be operated - simultaneously.


    I use a program called miflora-mqtt-daemon.py for this purpose. This program queries the status of the sensors and sends them to a MQTT server. I simply installed mosquitto and started it without further configuration. To get the data into Homebridge I installed the plugin homebridge-mqttthing that queries the MQTT server.


    Ok, this is not a simple solution, even if it is easy to install and configure. On the other hand it's not more complex than stopping and starting instances.

    your method looks much more better :thumbup:

    i have to try it

    Could you please show example config for homebridge-mqttthing plugin

    Hello guys :)

    sorry for English.

    This is the only place i found with useful information about SwitchBot & HomeKit.

    First of all, thanks for article and for discussion.

    I have 2 SwitchBots and I have FlowerCare plugin. As you know, they are not working simultaneously on the one Raspberry Pi.

    I found temporary solution, how to do that.


    Idea is, if you want to use SwitchBot, you need to stop FlowerCare before it and start it again after using SwitchBot.


    How to do this:


    1. Move FlowerCare plugin to dedicated Homebridge instance (on the same RPi) If you don't know hot to do it, read this:

    Externer Inhalt gist.github.com
    Inhalte von externen Seiten werden ohne Ihre Zustimmung nicht automatisch geladen und angezeigt.
    Durch die Aktivierung der externen Inhalte erklären Sie sich damit einverstanden, dass personenbezogene Daten an Drittplattformen übermittelt werden. Mehr Informationen dazu haben wir in unserer Datenschutzerklärung zur Verfügung gestellt.

    2. Create virtual switch (with plugin cmdSwitch2)

    this is my example code for switch

    {

    "name": "HB-6",

    "on_cmd": "sudo -n systemctl start homebridge@6",

    "off_cmd": "sudo -n systemctl stop homebridge@6",

    "state_cmd": "sudo -n systemctl status homebridge@6 | grep -i 'active (running)'"

    }

    Now you can control FlowerCare HB instance by this switch, you can stop it & start in again.


    I created simple automation:

    1. Stop FlowerCare Homebridge

    2. Wait 5 sec

    3. start SwitchBot

    4. Wait 2 sec

    5. Start FlowerCare

    That's all)


    I know this solution is not very good, but it's really work ?(