amsreader-firmware icon indicating copy to clipboard operation
amsreader-firmware copied to clipboard

No ENTSO-E data published on MQTT

Open tb205gti opened this issue 1 year ago • 6 comments

Describe your problem

ENTSO-E values not being pushed on MQTT.

I have selected the json payload, but I do not get any ENTSO-E data published in the json structure, nor can I find any description of what it is supposed to look like on the wiki. Only for raw format. If I select RAW I still do not get any pricing data published on MQTT. MQTT is working fine for meter data.

Hardware information:

  • Country: Denmark
  • Meter: Kamstrup
  • Encryption enabled yes
  • AMS reader: POW-K+
  • M-bus adapter (if applicable): none

Relevant firmware information:

  • Version: 2.1.7
  • MQTT: yes
  • HAN GPIO: GPIO16
  • HAN baud and parity: 2400 8N1
  • Temperature sensors : none
  • ENTSO-E API enabled: yes

tb205gti avatar Sep 22 '22 19:09 tb205gti

I believe the pricing payload is currently only generated if the Home Assistant MQTT payload format is selected. Please see https://github.com/gskjold/AmsToMqttBridge/issues/262

ArnieO avatar Sep 23 '22 07:09 ArnieO

Actually it is the other way around, only JSON and RAW has prices. It should be published in separate JSON ~~when prices are updated once per day~~ when current hour price change on top of the hour.

Format shown here: https://github.com/gskjold/AmsToMqttBridge/wiki/Message-formats#prices

gskjold avatar Sep 23 '22 07:09 gskjold

So the topic is the same - but with a different payload? or is the price structure appended to the normal json object?

tb205gti avatar Sep 23 '22 09:09 tb205gti

Same topic, different payload with format as show in previous link

gskjold avatar Sep 23 '22 10:09 gskjold

Was this resolved? Tested locally and seems to work fine here

gskjold avatar Sep 25 '22 09:09 gskjold

Works just fine here as well (version 2.1.6), the prices gets transmitted as JSON via MQTT at the start of every hour.

Maybe mention the fact that the prices only get sent at the start of every hour on the wiki page for MQTT Configuration (or on some other page)? I couldn't find it documented anywhere.

dalpil avatar Sep 25 '22 11:09 dalpil

I think it is a good idea to document it - right now it is not documented and I was going mad trying to figure out why i did not get any data :)

tb205gti avatar Sep 25 '22 18:09 tb205gti

Added to wiki https://github.com/gskjold/AmsToMqttBridge/wiki/MQTT-configuration#json-mode

gskjold avatar Sep 27 '22 18:09 gskjold