Thanks @kevin,
Yeah I had been referring to the Emonhub tab. I’m getting a log line like this:
> 2015-12-6 21:58:04 MQTT INFO Received mqtt message: emonhub/rx/5/values 588,0,588,247.54,0,0,0,0,0,0,36968
Which is all exactly as I’d expect.
My openhab.cfg sets the listening thus:
> # URL to the MQTT broker, e.g. tcp://localhost:1883 or ssl://localhost:8883
> mqtt:mymosquitto.url=tcp://localhost:1883
And my items are as follows:
> String GridPower { mqtt="<[mymosquitto:emonhub/rx/5/values:state:REGEX((.?),.)]" }
> Number PulseCount { mqtt="<[mymosquitto:emonhub/rx/5/values:state:REGEX(.?,.?,.?,.?,.?,.?,.?,.?,.?,.?,(.?),.)]" }
Which, even if I’ve cocked up the number of REGEX skips, should still return me a value.
I’m wondering whether anything is getting sent between the two Raspberry Pi’s. If I use mosquitto in a shell on the openHAB Pi, and subscribe to what I understand should be the topic title:
> mosquitto_sub -d -t emonhub
I tried ‘emonPi’ and ‘emoncms’ too. As well as ‘emonhub/rx/5/’. But as I understand it it should be ‘emonhub’
I don’t see any messages from the emonPi at all.