Skip to content

Daemon connects and collects data but does not publish to openhab #147

@boilermanc

Description

@boilermanc

Hi all, I posted this on the openhab forum but thought I would add this over here since its miflora specific.

I had this setup running just fine and then literally it just stopped updating. I’ll explain…

I have two pi’s running. One is the main pi and then one in a greenhouse (right next door) that is a pi zero. The pi zero just has the mqtt and miflora setup. It connects to the sensors and sends the data through mqtt just fine. it publishes to the same ip/broker as the main pi.

[2021-10-13 11:52:10] Connecting to MQTT broker ...
[2021-10-13 11:52:10] MQTT connection established

Adding sensor to device list and testing connection ...
Name:          "Sensor1"
Internal name: "Sensor1"
Device name:   "Flower care"
MAC address:   C4:7C:8D:67:59:ED
Firmware:      3.3.1
[2021-10-13 11:52:13] Initial connection to Mi Flora sensor "Sensor1" (C4:7C:8D:67:59:ED) successful

Adding sensor to device list and testing connection ...
Name:          "Sensor4"
Internal name: "Sensor4"
Device name:   "Flower care"
MAC address:   C4:7C:8D:67:5B:1F
Firmware:      3.3.1
[2021-10-13 11:52:16] Initial connection to Mi Flora sensor "Sensor4" (C4:7C:8D:67:5B:1F) successful

[2021-10-13 11:52:16] Announcing Mi Flora devices to MQTT broker for auto-discovery ...

[2021-10-13 11:52:16] Retrieving data from sensor "Sensor1" ...
[2021-10-13 11:52:25] Result: {"light": 95, "temperature": 14.6, "moisture": 7, "conductivity": 0, "battery": 100}
[2021-10-13 11:52:25] Publishing to MQTT topic "miflora/Sensor1"

[2021-10-13 11:52:26] Retrieving data from sensor "Sensor4" ...
[2021-10-13 11:52:30] Result: {"light": 3, "temperature": 14.6, "moisture": 14, "conductivity": 47, "battery": 45}
[2021-10-13 11:52:30] Publishing to MQTT topic "miflora/Sensor4"`

Nothing is showing in the log for the pi zero. Earlier I would get the confirmation that the message had come across like this:

2021-10-12 14:53:02.208 [INFO ] [openhab.event.ChannelTriggeredEvent ] - mqtt:broker:b57b164b67:sensor_4 triggered {"light": 902, "temperature": 17.9, "moisture": 0, "conductivity": 0, "battery": 100}
2021-10-12 14:53:02.231 [INFO ] [openhab.event.ChannelTriggeredEvent ] - mqtt:broker:b57b164b67:sensor_1 triggered {"light": 902, "temperature": 17.9, "moisture": 0, "conductivity": 0, "battery": 100}

Those numbers look the same because I had the same topic setup. Now fixed.

On the pi zero the mqtt broker is online and i have two channels, Sensor 1 and Sensor 2. They are both setup as “Triggers” and publish to a topic like this:

mqtt:broker:b57b164b67:sensor_4

topic: miflora/Sensor4

when that publishes of course it is on the same mqtt broker as the main pi and I have all my channels and things setup there to publish to a sitemap. again, all that worked fine. yesterday afternoon it just stopped publishing the updates to the pi zero log. I rebooted no joy. i test whether the miflora is running it is as you see in the log above but it does not publish in the openhab log and nothing is updating in the sitemap. Its like its running on the pi just publishing but not transitioning to openhab for lack of better description.

I have tried various reboot timings to see if something is not syncing. I think at a minimum I should be seeing the updates in pi zero log but nada.

thoughts?

thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions