Replies: 6 comments 5 replies
-
Telegraf seems to have a problem with the INPUT parser. Message sniffed on Mosquitto:
I mean, all is normaly! Telegraf daemon status
This is complete! Telegraf configuration input/output
Using the troubleshooting commands I can get measurements into the database. It really seems to be a Telegraf input parser problem. The mpp-solar command is QPGS0 and the protocol is PI30. I experimented with the input topic. I don't fully understand the documentary yet: https://github.com/influxdata/telegraf/tree/master/plugins/inputs/mqtt_consumer But I think I need to look into it more. But maybe someone had a similar problem? |
Beta Was this translation helpful? Give feedback.
-
What output module are you using?
I think from memory telegraf needs a different message format
…On Sat, Jan 4, 2025, 07:14 Frank Langer ***@***.***> wrote:
Telegraf seems to have a problem with the INPUT parser.
Maybe someone will see it:
*Message sniffed on Mosquitto:*
*EASUN SPL5K/status/parallel_instance_number/value valid EASUN
SPL5K/status/serial_number/value 55355535553555 EASUN
SPL5K/status/work_mode/value Line Mode EASUN SPL5K/status/fault_code/value
No fault EASUN SPL5K/status/grid_voltage/value 231.7 EASUN
SPL5K/status/grid_voltage/unit V EASUN SPL5K/status/grid_frequency/value
49.97 EASUN SPL5K/status/grid_frequency/unit Hz EASUN
SPL5K/status/ac_output_voltage/value 231.7 EASUN
SPL5K/status/ac_output_voltage/unit V EASUN
SPL5K/status/ac_output_frequency/value 49.97 EASUN
SPL5K/status/ac_output_frequency/unit Hz EASUN
SPL5K/status/ac_output_apparent_power/value 208 EASUN
SPL5K/status/ac_output_apparent_power/unit VA EASUN
SPL5K/status/ac_output_active_power/value 163 EASUN
SPL5K/status/ac_output_active_power/unit W EASUN
SPL5K/status/load_percentage/value 4 EASUN
SPL5K/status/load_percentage/unit % EASUN
SPL5K/status/battery_voltage/value 54.6 EASUN
SPL5K/status/battery_voltage/unit V EASUN
SPL5K/status/battery_charging_current/value 0 EASUN
SPL5K/status/battery_charging_current/unit A EASUN
SPL5K/status/battery_capacity/value 100 EASUN
SPL5K/status/battery_capacity/unit % EASUN
SPL5K/status/pv_input_voltage/value 0.0 EASUN
SPL5K/status/pv_input_voltage/unit V EASUN
SPL5K/status/total_charging_current/value 0 EASUN
SPL5K/status/total_charging_current/unit A EASUN
SPL5K/status/total_ac_output_apparent_power/value 208 EASUN
SPL5K/status/total_ac_output_apparent_power/unit VA EASUN
SPL5K/status/total_output_active_power/value 163 EASUN
SPL5K/status/total_output_active_power/unit W EASUN
SPL5K/status/total_ac_output_percentage/value 4 EASUN
SPL5K/status/total_ac_output_percentage/unit % EASUN
SPL5K/status/is_scc_ok/value 0 EASUN SPL5K/status/is_scc_ok/unit bool EASUN
SPL5K/status/is_ac_charging/value 1 EASUN SPL5K/status/is_ac_charging/unit
bool EASUN SPL5K/status/is_scc_charging/value 0 EASUN
SPL5K/status/is_scc_charging/unit bool EASUN
SPL5K/status/is_battery_over_voltage/value 0 EASUN
SPL5K/status/is_battery_over_voltage/unit bool EASUN
SPL5K/status/is_battery_under_voltage/value 0 EASUN
SPL5K/status/is_battery_under_voltage/unit bool EASUN
SPL5K/status/is_line_lost/value 0 EASUN SPL5K/status/is_line_lost/unit bool
EASUN SPL5K/status/is_load_on/value 1 EASUN SPL5K/status/is_load_on/unit
bool EASUN SPL5K/status/is_configuration_changed/value 0 EASUN
SPL5K/status/is_configuration_changed/unit bool EASUN
SPL5K/status/output_mode/value single machine EASUN
SPL5K/status/charger_source_priority/value Solar first EASUN
SPL5K/status/max_charger_current/value 20 EASUN
SPL5K/status/max_charger_current/unit A EASUN
SPL5K/status/max_charger_range/value 110 EASUN
SPL5K/status/max_charger_range/unit A EASUN
SPL5K/status/max_ac_charger_current/value 2 EASUN
SPL5K/status/max_ac_charger_current/unit A EASUN
SPL5K/status/pv_input_current/value 0 EASUN
SPL5K/status/pv_input_current/unit A EASUN
SPL5K/status/battery_discharge_current/value 0 EASUN
SPL5K/status/battery_discharge_current/unit A*
I mean, all is normaly!
*Telegraf daemon status*
***@***.***:~ $ sudo systemctl status telegraf.service
● telegraf.service - Telegraf
Loaded: loaded (/lib/systemd/system/telegraf.service; enabled; preset:
enabled)
Active: active (running) since Fri 2025-01-03 07:19:43 CET; 11h ago
Docs: https://github.com/influxdata/telegraf
Main PID: 42654 (telegraf)
Tasks: 10 (limit: 767)
CPU: 5min 7.816s
CGroup: /system.slice/telegraf.service
└─42654 /usr/bin/telegraf -config /etc/telegraf/telegraf.conf
-config-directory /etc/telegraf/telegraf.d
Jan 03 19:03:44 raspberrypi3 telegraf[42654]: 2025-01-03T18:03:44Z E!
[inputs.mqtt_consumer] Error in plugin: metric parse error: expected tag at
1:2: "0"
Jan 03 19:03:44 raspberrypi3 telegraf[42654]: 2025-01-03T18:03:44Z E!
[inputs.mqtt_consumer] Error in plugin: metric parse error: expected tag at
1:2: "A"
Jan 03 19:03:44 raspberrypi3 telegraf[42654]: 2025-01-03T18:03:44Z E!
[inputs.mqtt_consumer] Error in plugin: metric parse error: expected tag at
1:2: "0"
Jan 03 19:03:44 raspberrypi3 telegraf[42654]: 2025-01-03T18:03:44Z *E!
[inputs.mqtt_consumer]* Error in plugin: metric parse error: expected tag
at 1:2: "A"
Jan 03 19:03:45 raspberrypi3 telegraf[42654]: 2025-01-03T18:03:45Z D!
[outputs.influxdb] Buffer fullness: 0 / 10000 metrics
Jan 03 19:03:55 raspberrypi3 telegraf[42654]: 2025-01-03T18:03:55Z D!
[outputs.influxdb] Buffer fullness: 0 / 10000 metrics
Jan 03 19:04:05 raspberrypi3 telegraf[42654]: 2025-01-03T18:04:05Z D!
[outputs.influxdb] Buffer fullness: 0 / 10000 metrics
Jan 03 19:04:15 raspberrypi3 telegraf[42654]: 2025-01-03T18:04:15Z D!
[outputs.influxdb] Buffer fullness: 0 / 10000 metrics
Jan 03 19:04:25 raspberrypi3 telegraf[42654]: 2025-01-03T18:04:25Z D!
[outputs.influxdb] Buffer fullness: 0 / 10000 metrics
Jan 03 19:04:35 raspberrypi3 telegraf[42654]: 2025-01-03T18:04:35Z D!
[outputs.influxdb] Buffer fullness: 0 / 10000 metrics
***@***.***:~ $_
—
Reply to this email directly, view it on GitHub
<#523 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJVKNUR7VRXLKWY2MJUMTL2I3HQ7AVCNFSM6AAAAABUNEGIY6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNZSHAYDQNQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Ie try the influx2_mqtt output module
…On Sat, Jan 4, 2025, 12:01 John Blance ***@***.***> wrote:
What output module are you using?
I think from memory telegraf needs a different message format
On Sat, Jan 4, 2025, 07:14 Frank Langer ***@***.***> wrote:
> Telegraf seems to have a problem with the INPUT parser.
> Maybe someone will see it:
>
> *Message sniffed on Mosquitto:*
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *EASUN SPL5K/status/parallel_instance_number/value valid EASUN
> SPL5K/status/serial_number/value 55355535553555 EASUN
> SPL5K/status/work_mode/value Line Mode EASUN SPL5K/status/fault_code/value
> No fault EASUN SPL5K/status/grid_voltage/value 231.7 EASUN
> SPL5K/status/grid_voltage/unit V EASUN SPL5K/status/grid_frequency/value
> 49.97 EASUN SPL5K/status/grid_frequency/unit Hz EASUN
> SPL5K/status/ac_output_voltage/value 231.7 EASUN
> SPL5K/status/ac_output_voltage/unit V EASUN
> SPL5K/status/ac_output_frequency/value 49.97 EASUN
> SPL5K/status/ac_output_frequency/unit Hz EASUN
> SPL5K/status/ac_output_apparent_power/value 208 EASUN
> SPL5K/status/ac_output_apparent_power/unit VA EASUN
> SPL5K/status/ac_output_active_power/value 163 EASUN
> SPL5K/status/ac_output_active_power/unit W EASUN
> SPL5K/status/load_percentage/value 4 EASUN
> SPL5K/status/load_percentage/unit % EASUN
> SPL5K/status/battery_voltage/value 54.6 EASUN
> SPL5K/status/battery_voltage/unit V EASUN
> SPL5K/status/battery_charging_current/value 0 EASUN
> SPL5K/status/battery_charging_current/unit A EASUN
> SPL5K/status/battery_capacity/value 100 EASUN
> SPL5K/status/battery_capacity/unit % EASUN
> SPL5K/status/pv_input_voltage/value 0.0 EASUN
> SPL5K/status/pv_input_voltage/unit V EASUN
> SPL5K/status/total_charging_current/value 0 EASUN
> SPL5K/status/total_charging_current/unit A EASUN
> SPL5K/status/total_ac_output_apparent_power/value 208 EASUN
> SPL5K/status/total_ac_output_apparent_power/unit VA EASUN
> SPL5K/status/total_output_active_power/value 163 EASUN
> SPL5K/status/total_output_active_power/unit W EASUN
> SPL5K/status/total_ac_output_percentage/value 4 EASUN
> SPL5K/status/total_ac_output_percentage/unit % EASUN
> SPL5K/status/is_scc_ok/value 0 EASUN SPL5K/status/is_scc_ok/unit bool EASUN
> SPL5K/status/is_ac_charging/value 1 EASUN SPL5K/status/is_ac_charging/unit
> bool EASUN SPL5K/status/is_scc_charging/value 0 EASUN
> SPL5K/status/is_scc_charging/unit bool EASUN
> SPL5K/status/is_battery_over_voltage/value 0 EASUN
> SPL5K/status/is_battery_over_voltage/unit bool EASUN
> SPL5K/status/is_battery_under_voltage/value 0 EASUN
> SPL5K/status/is_battery_under_voltage/unit bool EASUN
> SPL5K/status/is_line_lost/value 0 EASUN SPL5K/status/is_line_lost/unit bool
> EASUN SPL5K/status/is_load_on/value 1 EASUN SPL5K/status/is_load_on/unit
> bool EASUN SPL5K/status/is_configuration_changed/value 0 EASUN
> SPL5K/status/is_configuration_changed/unit bool EASUN
> SPL5K/status/output_mode/value single machine EASUN
> SPL5K/status/charger_source_priority/value Solar first EASUN
> SPL5K/status/max_charger_current/value 20 EASUN
> SPL5K/status/max_charger_current/unit A EASUN
> SPL5K/status/max_charger_range/value 110 EASUN
> SPL5K/status/max_charger_range/unit A EASUN
> SPL5K/status/max_ac_charger_current/value 2 EASUN
> SPL5K/status/max_ac_charger_current/unit A EASUN
> SPL5K/status/pv_input_current/value 0 EASUN
> SPL5K/status/pv_input_current/unit A EASUN
> SPL5K/status/battery_discharge_current/value 0 EASUN
> SPL5K/status/battery_discharge_current/unit A*
>
> I mean, all is normaly!
>
> *Telegraf daemon status*
> ***@***.***:~ $ sudo systemctl status telegraf.service
> ● telegraf.service - Telegraf
> Loaded: loaded (/lib/systemd/system/telegraf.service; enabled; preset:
> enabled)
> Active: active (running) since Fri 2025-01-03 07:19:43 CET; 11h ago
> Docs: https://github.com/influxdata/telegraf
> Main PID: 42654 (telegraf)
> Tasks: 10 (limit: 767)
> CPU: 5min 7.816s
> CGroup: /system.slice/telegraf.service
> └─42654 /usr/bin/telegraf -config /etc/telegraf/telegraf.conf
> -config-directory /etc/telegraf/telegraf.d
>
> Jan 03 19:03:44 raspberrypi3 telegraf[42654]: 2025-01-03T18:03:44Z E!
> [inputs.mqtt_consumer] Error in plugin: metric parse error: expected tag at
> 1:2: "0"
> Jan 03 19:03:44 raspberrypi3 telegraf[42654]: 2025-01-03T18:03:44Z E!
> [inputs.mqtt_consumer] Error in plugin: metric parse error: expected tag at
> 1:2: "A"
> Jan 03 19:03:44 raspberrypi3 telegraf[42654]: 2025-01-03T18:03:44Z E!
> [inputs.mqtt_consumer] Error in plugin: metric parse error: expected tag at
> 1:2: "0"
> Jan 03 19:03:44 raspberrypi3 telegraf[42654]: 2025-01-03T18:03:44Z *E!
> [inputs.mqtt_consumer]* Error in plugin: metric parse error: expected
> tag at 1:2: "A"
> Jan 03 19:03:45 raspberrypi3 telegraf[42654]: 2025-01-03T18:03:45Z D!
> [outputs.influxdb] Buffer fullness: 0 / 10000 metrics
> Jan 03 19:03:55 raspberrypi3 telegraf[42654]: 2025-01-03T18:03:55Z D!
> [outputs.influxdb] Buffer fullness: 0 / 10000 metrics
> Jan 03 19:04:05 raspberrypi3 telegraf[42654]: 2025-01-03T18:04:05Z D!
> [outputs.influxdb] Buffer fullness: 0 / 10000 metrics
> Jan 03 19:04:15 raspberrypi3 telegraf[42654]: 2025-01-03T18:04:15Z D!
> [outputs.influxdb] Buffer fullness: 0 / 10000 metrics
> Jan 03 19:04:25 raspberrypi3 telegraf[42654]: 2025-01-03T18:04:25Z D!
> [outputs.influxdb] Buffer fullness: 0 / 10000 metrics
> Jan 03 19:04:35 raspberrypi3 telegraf[42654]: 2025-01-03T18:04:35Z D!
> [outputs.influxdb] Buffer fullness: 0 / 10000 metrics
> ***@***.***:~ $_
>
> —
> Reply to this email directly, view it on GitHub
> <#523 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAJVKNUR7VRXLKWY2MJUMTL2I3HQ7AVCNFSM6AAAAABUNEGIY6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNZSHAYDQNQ>
> .
> You are receiving this because you are subscribed to this thread.Message
> ID: ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
-
It shouldn't stop telegraf from starting - even if mqtt messages are
completely wrong.
What format messages did you get?
What errors did you get on telegraf?
…On Sat, Jan 4, 2025, 21:56 Frank Langer ***@***.***> wrote:
Thank you for your answer. I tried it.
But the telegraph service didn't start.
I think, the problem is my topic design.
I'll be dealing with it throughout the day today.
—
Reply to this email directly, view it on GitHub
<#523 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJVKNTYWN7WV7UVVGQWRI32I6O4BAVCNFSM6AAAAABUNEGIY6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNZTGIYTEMQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
It's a wildcard for mqtt topics, in this instance it means all topics that
start with /EASUN/status no matter how many more parts there are
…On Sat, Jan 4, 2025, 22:04 Frank Langer ***@***.***> wrote:
Which function have the "#" - sign in topic-directive?
—
Reply to this email directly, view it on GitHub
<#523 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJVKNXEWXYSPMKCTEB7QAL2I6PZZAVCNFSM6AAAAABUNEGIY6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNZTGIYTMMQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
What did you change that stopped the telegraf service?
I was talking about changes at the mppsolar end of the pipeline
…On Sat, Jan 4, 2025, 22:13 John Blance ***@***.***> wrote:
It's a wildcard for mqtt topics, in this instance it means all topics that
start with /EASUN/status no matter how many more parts there are
On Sat, Jan 4, 2025, 22:04 Frank Langer ***@***.***> wrote:
> Which function have the "#" - sign in topic-directive?
>
> —
> Reply to this email directly, view it on GitHub
> <#523 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAJVKNXEWXYSPMKCTEB7QAL2I6PZZAVCNFSM6AAAAABUNEGIY6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNZTGIYTMMQ>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
-
Hints:
Inverter: EASUN SPL5K (also labeld as POWLAND or EFFEKTA AX-M or K 5K)
Raspberry Pi: 3B+ (connect with USB-Cabel on EASUN)
RaspbianOS [since 12/2024]: Bookworm (based on Debian 12 Bookworm)
UseCase: I use the fabulous mppsolar-package to configuration of my equipment & monitor working conditions.
Security: Think about your Usecase! Expose this Constellation never ever in Internet! Use safe passwords for admin-users or use ssh-key-based procedures for operation system and web server applications, use also the transport layer security from grafana. Is your usecase bigger as the home wi-fi, you should it leave security-professionals. In particular, the database and Grafana should be examined more closely.
Documentation:
OS-Image-Installation (Lite without Desktop and other) with Raspberry Pi Imager Tool on a 64 GB SDCARD (Don't forget the previous settings for Password, WLAN and SSH!)
After first login you should actualize your operating system.
Than you install by
sudo apt install python3-full libsystemd-dev
before you execute the pip-Installer.
In my Envoiment i use the installation command
sudo pip3 install --break-system-packages mppsolar[systemd]
As next, i follow the original docu: https://github.com/jblance/mpp-solar/blob/3b500bd494477c1d3b0824823f8a43aa9a135711/docs/service-README.md
As next, i follow also the documentation for MQTT ...: https://github.com/jblance/mpp-solar/blob/3b500bd494477c1d3b0824823f8a43aa9a135711/docs/MQTT_Influx_Grafana.md
Note 1 General:
both repos from grafana and influxdb have problems with gpg-Security,
you should fix them, as the project docu describe:
https://packages.grafana.com/oss/
https://repos.influxdata.com/debian/
Note 2 to InfluxDB: before you use the database-Client influx per command, you must install them with
sudo apt install influxdb-client
sequal follows
Beta Was this translation helpful? Give feedback.
All reactions