Note de ce sujet :
  • Moyenne : 0 (0 vote(s))
  • 1
  • 2
  • 3
  • 4
  • 5
MQTT + accueil
#1
Hello

Unfortunately my French isn't as good as my English, but hopefully one can help me...

I want to setup 'un routeur photovoltaïque" for an electrical heater for domestic hot water by using a SSR-40 DA. At the moment I only installed the software version 15 on a ESP-32-WROOM, configured WiFi and setup MQTT. But I'm in doubt if I setup it correctly.

As 'Source des mesures de puissance' I took MQTT with 'MQTT Topic Puissance' as 'emon/household/PT' (emon from https://emoncms.org/, a system that is already running).

But for the ''Paramètres serveur MQTT' I'm in doubt:
  • 'MQTT Préfixe de découverte (1 seul mot ex : homeassistant )': I just took 'emon', because I have the topic ''emon/household/PT''?
  • 'MQTT Préfixe de publication (1 seul mot ex : homeassistant )'. I just took 'emon', because I have the topic ''emon/household/PT''?
  • 'MQTT Device Name / Nom routeur (1 seul mot ex : routeur_rms )': I just took the default routeur_rms. But does this value matter somewhere?
  • 'Souscrire au forçage des Actions via le serveur MQTT' tranlates as 'Subscribe to the forcing of the Actions via the MQTT server', but I don't know what this means.

I guess I'm in doubt because I'm mixing up what I want to discover (la puissance de ma maison on positive ou negative watt) and what I want to publish. If I look with MQTT explorer, I see a topic emon/routeur_rms/Available, with value 'online'. But maybe the routeur can publish other important values as well? But I don't know which :-).

If I look at 'Données brutes', I see the correct 'Données puissances recues par MQTT' (namely the same value as MQTT explorer shows). But at the page 'Accueil'
  • If 'emon/household/PT' is -750, I would expect 'Puissance Active (Pw)' > Injectée to be -750 W as wel, but it is 0 W.
  • I also would expect the graph 'Puissance Active Données Maison sur 10 mn en W' at the page 'Accueil' to change with the value of emon/household/PT changing. But it is jus a red horizontal line at zero...

I think I am misunderstanding something... Who could bring light in the darkness?
Répondre
#2
If you can see the power figures in the page données brutes you are not too far to success.

Can you attach a picture of the données brutes page and the MQTT explorer. I want to check if the syntax of the message is correct.

Regards

André
Répondre
#3
Hello André

Glad to read that I'm not far from succes Smile . I attached two screenshots as an attachment.

Kind regards


Pièces jointes Miniature(s)
       
Répondre
#4
Hi,
It looks like PT doesn't have the right format, it should be a json value similar to the one for PuissanceMaison on this screenshot:
https://f1atb.fr/wp-content/uploads/2024...174946.png
"Pw" is mandatory but "Pf" is not.
Hope this helps.
Répondre
#5
Mike, this helps a lot! After a Node-RED flow that takes emon/household/PT to send it through a change node I can now see the graph. Thanks!

André, because of the extra step (read MQTT, change value, publish to MQTT again), I probably have a little bit of lag. Would it be possible in a future version to have more flexibility in filling out the desired information? Eg.:

Code :
MQTT Topic Puissance: emon/household/PT       #The value is directly in the topic, eg. -115
MQTT Topic Puissance: emon/routeur_rms/PT.Pw  #The value is in a JSON string, eg. {{"Pw": -115, "Pva": -110, "Pf": 0.5}}
MQTT Topic Puissance: emon/household.PT       #The value is in a JSON string, eg. {{"PT": -115, "FR": 0.5}}

MQTT Topic facteur de puissance: emon/household/FR              #The value is directly in the topic, eg. 0.5
MQTT Topic facteur de puissance: emon/routeur_rms/PT.Pf         #The value is in a JSON string, eg. {{"Pw": -115, "Pva": -110, "Pf": 0.5}}

MQTT Topic Volt-Ampère:                        #empty, so the user has no interest in this value
Répondre
#6
I will see
Répondre


Atteindre :


Utilisateur(s) parcourant ce sujet : 1 visiteur(s)