Hallo zusammen,
dies ist sicher eine Anfängerfrage und kann auch gerne ins Anfängerforum verschoben werden.
Am Laufen habe ich den FHEM MQTT Server und bisher ein Device (Wasseruhr) damit verbunden. Empfang der Topcis funktioniert seit einwandfrei.
Jetzt möchte ich das Reading power meines Stromzählers per MQTT (an evcc) übergeben. Dafür habe ich das device MQTT_GENERIC_BRIDGE angelegt und im Stromzähler das Attribut mqttPublish power:topic=keller/strom/zaehler. Da die Counts der Bridge bisher 0 zählen, vermute ich das noch etwas an meiner Konfiguration fehlt.
Kann mir jemand eine Starthilfe geben?
Auf der Empfänger-Seite (evcc), wäre die Subscription einfach keller/strom/zaehler?
Danke Ingo
list ITR_Stromzaehler
Internals:
FUUID xxx
NAME ITR_Stromzaehler
NR 1291
STATE Aktuell: 263.0 W, Zählerstand 1.8.0: 10433 kWh seit 24.9., 07:27.
TYPE dummy
READINGS:
2021-09-24 07:27:29 1.8.0_Verbrauch 10433282.9
2021-09-24 07:27:29 2.8.0_Einspeisung 0
2021-09-24 07:27:29 ManufID2 ITR
2021-09-24 07:27:30 power 263
Attributes:
group UG_Technik
icon icoBlitz
mqttPublish power:topic=keller/strom/zaehler
room 0_Keller
list mqttGenericBridge
Internals:
CFGFN
FUUID xxx
IODev MQTT2_FHEM_Server
NAME mqttGenericBridge
NR 27575
NTFY_ORDER 50-mqttGenericBridge
STATE dev: 1 in: 0 out: 0
TYPE MQTT_GENERIC_BRIDGE
devspec .*
prefix mqtt
READINGS:
2021-09-23 20:23:53 IODev MQTT2_FHEM_Server
2021-09-23 21:31:35 device-count 1
2021-09-23 20:23:52 incoming-count 0
2021-09-23 20:23:52 outgoing-count 0
2021-09-23 20:23:52 updated-reading-count 0
2021-09-23 20:23:52 updated-set-count 0
devices:
ITR_Stromzaehler:
:alias:
:publish:
power:
mode R
topic keller/strom/zaehler
globalDeviceExcludes:
globalReadingExcludes:
globalTypeExcludes:
Attributes:
room 999_Kommunikation
stateFormat dev: device-count in: incoming-count out: outgoing-count
list MQTT2_FHEM_Server
Internals:
CONNECTS 9
Clients :MQTT2_DEVICE:MQTT_GENERIC_BRIDGE:
ClientsKeepOrder 1
DEF 1883 global
FD 73
FUUID xxx
NAME MQTT2_FHEM_Server
NR 1233
PORT 1883
STATE Initialized
TYPE MQTT2_SERVER
MatchList:
1:MQTT2_DEVICE ^.
2:MQTT_GENERIC_BRIDGE ^.
READINGS:
2021-09-24 07:14:28 RETAIN {"wasserzaehler/connection":"connection lost","wasserzaehler/main/error":"Neg. Rate - Read: 362.1181 - Raw: 362.11812 - Pre: 362.1182 "}
2021-09-23 21:33:05 nrclients 1
2021-09-20 16:10:51 state Initialized
clients:
MQTT2_FHEM_Server_192.168.xxx.xxx_54274 1
retain:
wasserzaehler/connection:
ts 1632147100.17658
val connection lost
wasserzaehler/main/error:
ts 1632460468.13069
val Neg. Rate - Read: 362.1181 - Raw: 362.11812 - Pre: 362.1182
Attributes:
room 999_Kommunikation