Neuigkeiten:

Am Sonntag den 8.12.2024 kann es ab ca. 8:00 Uhr zu kurzzeitigen Einschränkungen / Ausfällen bei den Diensten des FHEM Vereines kommen.
Die Server müssen mal gewartet und dabei neu gestartet werden ;)

Hauptmenü

[gelöst] OpenWB MQTT-Anbindung Auswertung der Readings

Begonnen von schnuddel, 19 August 2024, 19:59:17

Vorheriges Thema - Nächstes Thema

schnuddel

Hallo zusammen,

ich habe eine OpenWB Wallbox über eine MQTT-Bridge in FHEM integriert.
Die OpenWB liefert mir über MQTT auch den Batterieladezustand meiner Batterie an der PV-Anlage. An den komme ich wohl sonst nicht ran (ist eine SMA-PV-Anlage).
Das Ganze läuft über JSON. Über den MQTT-Explorer sehe ich, dass es ein Topic openWB/system/lastlivevalueJson gibt. Der Inhalt sieht so aus:
{
  "timestamp": 1724089870,
  "time": "19:51:10",
  "grid": -0.003,
  "house-power": 1.117,
  "charging-all": 0,
  "pv-all": 0.756,
  "cp0-power": 0,
  "bat-all-power": -0.364,
  "bat-all-soc": 99
}

Leider gibt es auch noch 16 Topics openWB/graph/alllivevaluesJson[0...15].
{"timestamp":1724083251,"time":"18:00:51","grid":-0.035,"house-power":0.01,"charging-all":0.0,"pv-all":0.817,"cp0-power":0.0,"bat-all-power":0.853,"bat-all-soc":85}
Die werden wohl alle in das gleiche Reading bat-all-soc übersetzt, so dass das Reading mal den aktuellen und mal einen früheren Wert enthält, der eigentlich nur für graphische Darstellung generiert wurde.

Wie kann ich denn z. B. mit event-on-change-reading nur den aktuellen Wert filtern und auswerten?

Raspi, ZWave, HUE, Neato Botvac, Squeezebox

Gisbert

Poste doch mal ein list deines Fhem-Devices. Vielleicht wird deine Frage dann verständlicher.
Aktuelles FHEM | PROXMOX | Fujitsu Futro S740 | Debian 12 | UniFi | Homematic, VCCU, HMUART | ESP8266 | ATtiny85 | Wasser-, Stromzähler | tuya local | Wlan-Kamera | SIGNALduino, Flamingo Rauchmelder FA21/22RF | RHASSPY | DEYE | JK-BMS | ESPHome

schnuddel

Gerne doch. Ich denke, ich muss wahrscheinlich hier am json2nameValue($EVENT) was ändern, damit nicht alles ins gleiche Reading geschrieben wird.
MQTT_OpenWB_Bridge:openWB/graph/alllivevaluesJson1:.* { json2nameValue($EVENT) }
Hier der Output des list-Befehls:
Internals:
   CID        MQTT_OpenWB_Bridge
   DEF        MQTT_OpenWB_Bridge
   FUUID      65dc935d-f33f-8848-af72-937e4878dfeb935c
   IODev      MQTT_OpenWB_Bridge
   LASTInputDev MQTT_OpenWB_Bridge
   MQTT_OpenWB_Bridge_MSGCNT 19466858
   MQTT_OpenWB_Bridge_TIME 2024-08-19 20:36:12
   MSGCNT     19466858
   NAME       MQTT2_OpenWB_Client
   NR         461
   STATE     
   TYPE       MQTT2_DEVICE
   eventCount 78976
   READINGS:
     2024-08-19 20:36:11   1               235.18
     2024-08-19 20:36:11   2               234.22
     2024-08-19 20:36:11   3               239.54
     2024-08-19 18:15:51   ClearRfid       1
     2024-08-19 20:36:11   Current         0
     2024-08-16 15:37:17   IODev           MQTT_OpenWB_Bridge
     2024-08-19 20:36:12   alllivevaluesJson16 -
     2024-08-19 20:36:11   average_consumption 28000
     2024-08-19 20:36:12   bat-all-power   -0.781
     2024-08-19 20:36:12   bat-all-soc     93
     2024-08-19 20:36:11   charge_state   
     2024-08-19 20:36:11   charge_template 1
     2024-08-19 20:36:11   chargemode      pv_charging
     2024-08-19 20:36:12   charging-all    0.0
     2024-08-19 20:36:11   charging_ev     
     2024-08-19 20:36:11   charging_ev_prev
     2024-08-19 20:36:11   charging_power_left
     2024-08-19 20:36:11   configured     
     2024-08-19 20:36:12   cp0-power       0.0
     2024-08-19 20:36:11   current         
     2024-08-19 20:36:11   currents_1      0.0
     2024-08-19 20:36:11   currents_2      0.0
     2024-08-19 20:36:11   currents_3      0.0
     2024-08-19 20:35:03   daily_exported 
     2024-08-19 20:35:02   daily_imported 
     2024-08-19 20:35:02   daily_yield_home_consumption
     2024-08-19 18:15:41   energy_to_charge
     2024-08-19 20:36:11   error_counter   
     2024-08-19 07:33:00   ev             
     2024-08-19 20:36:11   ev_template     0
     2024-08-19 20:36:11   evse_current   
     2024-08-19 20:36:11   exported        87.78943697565133
     2024-08-19 20:36:11   fault_state     0
     2024-08-19 20:36:11   fault_str       Kein Fehler.
     2024-08-19 18:15:51   force_soc_update
     2024-08-19 20:36:11   frequency       
     2024-08-19 20:36:12   grid            0.01
     2024-08-19 20:36:10   heartbeat       0
     2024-08-19 20:36:11   home_consumption
     2024-08-19 20:36:12   house-power     1.572
     2024-08-19 20:36:11   icp0_charge_state false
     2024-08-19 20:36:11   icp0_exported   0
     2024-08-19 20:36:11   icp0_phases_in_use 1
     2024-08-19 20:36:11   icp0_plug_state true
     2024-08-19 20:36:11   icp0_power      0
     2024-08-19 20:36:11   id              2
     2024-08-19 20:36:11   imported        4143582.5479749534
     2024-08-19 20:36:11   imported_home_consumption
     2024-08-19 20:36:11   invalid_home_consumption
     2024-07-06 11:17:01   json2nameValueErrorText error parsing (#2) '-'
     2024-07-06 11:17:01   json2nameValueInput -
     2024-08-19 18:15:51   last_tag       
     2024-08-18 18:05:21   limit           
     2024-08-19 20:36:11   log_chargemode_log_entry _
     2024-08-19 20:36:11   log_costs       0
     2024-08-19 20:36:11   log_ev          -1
     2024-08-19 20:36:11   log_imported_at_mode_switch 1183140.99
     2024-08-19 20:36:11   log_imported_at_plugtime 1183140.99
     2024-08-19 20:36:11   log_imported_since_mode_switch 0
     2024-08-19 20:36:11   log_imported_since_plugged 0.0
     2024-08-19 20:36:11   log_prio        false
     2024-08-19 20:36:11   log_range_charged 0
     2024-08-19 07:33:01   log_rfid        0002984714
     2024-08-19 20:36:11   log_time_charged 00:00
     2024-08-19 07:33:01   log_timestamp_start_charging 1723994461.126448
     2024-08-19 20:36:11   module_update_completed
     2024-08-19 20:36:11   name           
     2024-08-19 20:36:10   parentCPlp1     "0"
     2024-08-19 20:36:10   parentWB        localhost
     2024-08-19 20:36:10   parent_cp       
     2024-08-19 20:36:10   parent_ip       localhost
     2024-08-19 18:16:01   phases         
     2024-08-19 20:36:11   phases_in_use   
     2024-08-19 07:33:01   phases_to_use   
     2024-08-19 20:36:11   plug_state     
     2024-08-19 20:36:11   plug_state_prev
     2024-08-19 18:15:51   plug_time       
     2024-08-19 20:36:11   power           1880.6
     2024-08-19 20:36:11   priority        false
     2024-08-19 20:36:12   pv-all          0.781
     2024-08-19 20:36:11   range           0
     2024-08-19 20:36:11   range_charged   0
     2024-08-19 20:36:11   range_unit      km
     2024-08-19 20:36:11   regulate_up     
     2024-08-19 20:36:11   released_surplus
     2024-08-19 20:25:41   required_current
     2024-08-19 20:36:11   reserved_surplus
     2024-08-19 20:36:11   rfid           
     2024-08-19 20:36:11   rfid_timestamp 
     2024-08-19 20:36:11   set_current     
     2024-08-19 20:36:11   soc             0
     2024-08-19 20:36:11   soc_timestamp   
     2024-08-18 18:06:41   state           
     2024-08-19 20:36:11   state_str       
     2024-08-19 18:16:01   submode         
     2024-08-19 20:36:11   switch_on_soc_reached
     2024-08-19 20:36:12   time            20:32:51
     2024-08-19 20:36:11   time_charging_in_use false
     2024-08-19 20:36:12   timestamp       1724092371
     2024-08-18 18:06:41   timestamp_switch_on_off
     2024-08-19 20:36:05   uberschuss      -952
     2024-08-19 20:36:05   uberschussoffset -952
     2024-08-19 20:36:11   vehicle_id     
     2024-08-19 20:36:03   vehicle_update_completed
Attributes:
   autocreate 1
   event-on-change-reading chargemode,icp0_charge_state,icp0_exported,icp0_phases_in_use,icp0_plug_state,icp0_power,charging_power_left:10,bat-all-soc:10
   readingList MQTT_OpenWB_Bridge:openWB/internal_chargepoint/0/data/parent_cp:.* parent_cp
MQTT_OpenWB_Bridge:openWB/set/internal_chargepoint/0/data/parent_cp:.* parent_cp
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/get/voltages:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/get/currents:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/chargepoint/0/get/voltages:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/get/power_factors:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/get/imported:.* imported
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/get/exported:.* exported
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/get/power:.* power
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/get/powers:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/chargepoint/0/get/currents:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/get/frequency:.* frequency
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/get/phases_in_use:.* phases_in_use
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/get/charge_state:.* charge_state
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/get/plug_state:.* plug_state
MQTT_OpenWB_Bridge:openWB/chargepoint/0/get/power_factors:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/get/evse_current:.* evse_current
MQTT_OpenWB_Bridge:openWB/set/internal_chargepoint/0/get/voltages:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/set/internal_chargepoint/0/get/currents:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/set/internal_chargepoint/0/get/frequency:.* frequency
MQTT_OpenWB_Bridge:openWB/set/internal_chargepoint/0/get/power_factors:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/set/internal_chargepoint/0/get/imported:.* imported
MQTT_OpenWB_Bridge:openWB/set/internal_chargepoint/0/get/exported:.* exported
MQTT_OpenWB_Bridge:openWB/set/internal_chargepoint/0/get/power:.* power
MQTT_OpenWB_Bridge:openWB/set/internal_chargepoint/0/get/powers:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/set/internal_chargepoint/0/get/phases_in_use:.* phases_in_use
MQTT_OpenWB_Bridge:openWB/set/internal_chargepoint/0/get/charge_state:.* charge_state
MQTT_OpenWB_Bridge:openWB/set/internal_chargepoint/0/get/plug_state:.* plug_state
MQTT_OpenWB_Bridge:openWB/set/internal_chargepoint/0/get/evse_current:.* evse_current
MQTT_OpenWB_Bridge:openWB/chargepoint/0/get/imported:.* imported
MQTT_OpenWB_Bridge:openWB/chargepoint/0/get/exported:.* exported
MQTT_OpenWB_Bridge:openWB/chargepoint/0/get/powers:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/chargepoint/0/get/frequency:.* frequency
MQTT_OpenWB_Bridge:openWB/chargepoint/0/get/phases_in_use:.* phases_in_use
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/get/fault_str:.* fault_str
MQTT_OpenWB_Bridge:openWB/chargepoint/0/get/plug_state:.* plug_state
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/get/fault_state:.* fault_state
MQTT_OpenWB_Bridge:openWB/chargepoint/0/get/evse_current:.* evse_current
MQTT_OpenWB_Bridge:openWB/internal_chargepoint/0/get/voltages:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/internal_chargepoint/0/get/currents:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/internal_chargepoint/0/get/frequency:.* frequency
MQTT_OpenWB_Bridge:openWB/internal_chargepoint/0/get/power_factors:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/internal_chargepoint/0/get/imported:.* imported
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/set/current:.* current
MQTT_OpenWB_Bridge:openWB/internal_chargepoint/0/get/exported:.* icp0_exported
MQTT_OpenWB_Bridge:openWB/internal_chargepoint/0/get/power:.* icp0_power
MQTT_OpenWB_Bridge:openWB/set/counter/2/get/fault_str:.* fault_str
MQTT_OpenWB_Bridge:openWB/set/counter/2/get/fault_state:.* fault_state
MQTT_OpenWB_Bridge:openWB/internal_chargepoint/0/get/powers:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/set/system/device/module_update_completed:.* module_update_completed
MQTT_OpenWB_Bridge:openWB/internal_chargepoint/0/get/phases_in_use:.* icp0_phases_in_use
MQTT_OpenWB_Bridge:openWB/internal_chargepoint/0/get/charge_state:.* icp0_charge_state
MQTT_OpenWB_Bridge:openWB/internal_chargepoint/0/get/plug_state:.* icp0_plug_state
MQTT_OpenWB_Bridge:openWB/internal_chargepoint/0/get/evse_current:.* evse_current
MQTT_OpenWB_Bridge:openWB/chargepoint/0/get/fault_str:.* fault_str
MQTT_OpenWB_Bridge:openWB/chargepoint/0/get/fault_state:.* fault_state
MQTT_OpenWB_Bridge:openWB/chargepoint/0/set/current:.* current
MQTT_OpenWB_Bridge:openWB/counter/2/get/fault_str:.* fault_str
MQTT_OpenWB_Bridge:openWB/counter/2/get/fault_state:.* fault_state
MQTT_OpenWB_Bridge:openWB/system/device/module_update_completed:.* module_update_completed
MQTT_OpenWB_Bridge:openWB/set/counter/2/get/voltages:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/set/counter/2/get/currents:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/set/counter/2/get/powers:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/set/counter/2/get/power_factors:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/set/counter/2/get/imported:.* imported
MQTT_OpenWB_Bridge:openWB/set/counter/2/get/exported:.* exported
MQTT_OpenWB_Bridge:openWB/set/counter/2/get/power:.* power
MQTT_OpenWB_Bridge:openWB/set/counter/2/get/frequency:.* frequency
MQTT_OpenWB_Bridge:openWB/counter/2/get/voltages:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/counter/2/get/currents:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/counter/2/get/powers:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/counter/2/get/power_factors:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/counter/2/get/imported:.* imported
MQTT_OpenWB_Bridge:openWB/counter/2/get/exported:.* exported
MQTT_OpenWB_Bridge:openWB/counter/2/get/power:.* power
MQTT_OpenWB_Bridge:openWB/counter/2/get/frequency:.* frequency
MQTT_OpenWB_Bridge:openWB/set/pv/get/power:.* power
MQTT_OpenWB_Bridge:openWB/set/pv/get/exported:.* exported
MQTT_OpenWB_Bridge:openWB/set/pv/config/configured:.* configured
MQTT_OpenWB_Bridge:openWB/set/bat/config/configured:.* configured
MQTT_OpenWB_Bridge:openWB/pv/get/power:.* power
MQTT_OpenWB_Bridge:openWB/pv/get/exported:.* exported
MQTT_OpenWB_Bridge:openWB/pv/config/configured:.* configured
MQTT_OpenWB_Bridge:openWB/bat/config/configured:.* configured
MQTT_OpenWB_Bridge:openWB/set/general/ripple_control_receiver/configured:.* configured
MQTT_OpenWB_Bridge:openWB/set/bat/set/charging_power_left:.* charging_power_left
MQTT_OpenWB_Bridge:openWB/set/bat/set/switch_on_soc_reached:.* switch_on_soc_reached
MQTT_OpenWB_Bridge:openWB/set/counter/2/set/error_counter:.* error_counter
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/set/charging_ev:.* charging_ev
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/set/energy_to_charge:.* energy_to_charge
MQTT_OpenWB_Bridge:openWB/chargepoint/0/get/connected_vehicle/soc:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/chargepoint/0/get/connected_vehicle/info:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/chargepoint/0/get/connected_vehicle/config:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/set/chargepoint/get/power:.* power
MQTT_OpenWB_Bridge:openWB/set/chargepoint/get/imported:.* imported
MQTT_OpenWB_Bridge:openWB/set/chargepoint/get/exported:.* exported
MQTT_OpenWB_Bridge:openWB/set/counter/2/set/reserved_surplus:.* reserved_surplus
MQTT_OpenWB_Bridge:openWB/set/counter/2/set/released_surplus:.* released_surplus
MQTT_OpenWB_Bridge:openWB/general/ripple_control_receiver/configured:.* configured
MQTT_OpenWB_Bridge:openWB/set/counter/set/invalid_home_consumption:.* invalid_home_consumption
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/set/plug_state_prev:.* plug_state_prev
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/get/state_str:.* state_str
MQTT_OpenWB_Bridge:openWB/set/internal_chargepoint/0/data/set_current:.* set_current
MQTT_OpenWB_Bridge:openWB/set/isss/Current:.* Current
MQTT_OpenWB_Bridge:openWB/chargepoint/get/power:.* power
MQTT_OpenWB_Bridge:openWB/chargepoint/get/imported:.* imported
MQTT_OpenWB_Bridge:openWB/chargepoint/get/exported:.* exported
MQTT_OpenWB_Bridge:openWB/counter/set/invalid_home_consumption:.* invalid_home_consumption
MQTT_OpenWB_Bridge:openWB/set/graph/lastlivevaluesJson:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/set/system/lastlivevaluesJson:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/chargepoint/0/get/state_str:.* state_str
MQTT_OpenWB_Bridge:openWB/internal_chargepoint/0/data/set_current:.* set_current
MQTT_OpenWB_Bridge:openWB/graph/lastlivevaluesJson:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/system/lastlivevaluesJson:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/graph/alllivevaluesJson:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/graph/alllivevaluesJson1:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/graph/alllivevaluesJson2:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/graph/alllivevaluesJson3:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/graph/alllivevaluesJson4:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/graph/alllivevaluesJson8:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/LegacySmartHome/Status/uberschuss:.* uberschuss
MQTT_OpenWB_Bridge:openWB/graph/alllivevaluesJson16:.* alllivevaluesJson16
MQTT_OpenWB_Bridge:openWB/graph/alllivevaluesJson6:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/graph/alllivevaluesJson13:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/graph/alllivevaluesJson11:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/LegacySmartHome/Status/uberschussoffset:.* uberschussoffset
MQTT_OpenWB_Bridge:openWB/graph/alllivevaluesJson14:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/graph/alllivevaluesJson12:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/graph/alllivevaluesJson7:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/graph/alllivevaluesJson5:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/graph/alllivevaluesJson10:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/graph/alllivevaluesJson9:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/graph/alllivevaluesJson15:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/set/vehicle/set/vehicle_update_completed:.* vehicle_update_completed
MQTT_OpenWB_Bridge:openWB/set/system/time:.* time
MQTT_OpenWB_Bridge:openWB/system/time:.* time
MQTT_OpenWB_Bridge:openWB/set/internal_chargepoint/global_data:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/internal_chargepoint/global_data:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/set/isss/heartbeat:.* heartbeat
MQTT_OpenWB_Bridge:openWB/set/isss/parentWB:.* parentWB
MQTT_OpenWB_Bridge:openWB/set/isss/parentCPlp1:.* parentCPlp1
MQTT_OpenWB_Bridge:openWB/set/counter/set/home_consumption:.* home_consumption
MQTT_OpenWB_Bridge:openWB/set/counter/set/simulation:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/set/counter/set/imported_home_consumption:.* imported_home_consumption
MQTT_OpenWB_Bridge:openWB/counter/set/home_consumption:.* home_consumption
MQTT_OpenWB_Bridge:openWB/counter/set/simulation:.* { json2nameValue($EVENT) }
MQTT_OpenWB_Bridge:openWB/counter/set/imported_home_consumption:.* imported_home_consumption
MQTT_OpenWB_Bridge:openWB/set/counter/2/get/daily_imported:.* daily_imported
MQTT_OpenWB_Bridge:openWB/set/counter/2/get/daily_exported:.* daily_exported
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/get/daily_imported:.* daily_imported
MQTT_OpenWB_Bridge:openWB/counter/2/get/daily_imported:.* daily_imported
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/get/daily_exported:.* daily_exported
MQTT_OpenWB_Bridge:openWB/set/chargepoint/get/daily_imported:.* daily_imported
MQTT_OpenWB_Bridge:openWB/set/chargepoint/get/daily_exported:.* daily_exported
MQTT_OpenWB_Bridge:openWB/counter/2/get/daily_exported:.* daily_exported
MQTT_OpenWB_Bridge:openWB/set/pv/get/daily_exported:.* daily_exported
MQTT_OpenWB_Bridge:openWB/set/pv/4/get/daily_exported:.* daily_exported
MQTT_OpenWB_Bridge:openWB/set/counter/set/daily_yield_home_consumption:.* daily_yield_home_consumption
MQTT_OpenWB_Bridge:openWB/chargepoint/0/get/daily_imported:.* daily_imported
MQTT_OpenWB_Bridge:openWB/chargepoint/0/get/daily_exported:.* daily_exported
MQTT_OpenWB_Bridge:openWB/chargepoint/get/daily_imported:.* daily_imported
MQTT_OpenWB_Bridge:openWB/chargepoint/get/daily_exported:.* daily_exported
MQTT_OpenWB_Bridge:openWB/pv/get/daily_exported:.* daily_exported
MQTT_OpenWB_Bridge:openWB/pv/4/get/daily_exported:.* daily_exported
MQTT_OpenWB_Bridge:openWB/counter/set/daily_yield_home_consumption:.* daily_yield_home_consumption
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/get/rfid:.* rfid
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/get/rfid_timestamp:.* rfid_timestamp
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/get/soc:.* soc
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/get/soc_timestamp:.* soc_timestamp
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/get/vehicle_id:.* vehicle_id
MQTT_OpenWB_Bridge:openWB/set/internal_chargepoint/0/get/rfid:.* rfid
MQTT_OpenWB_Bridge:openWB/chargepoint/0/get/rfid:.* rfid
MQTT_OpenWB_Bridge:openWB/chargepoint/0/get/rfid_timestamp:.* rfid_timestamp
MQTT_OpenWB_Bridge:openWB/chargepoint/0/get/soc:.* soc
MQTT_OpenWB_Bridge:openWB/chargepoint/0/get/soc_timestamp:.* soc_timestamp
MQTT_OpenWB_Bridge:openWB/chargepoint/0/get/vehicle_id:.* vehicle_id
MQTT_OpenWB_Bridge:openWB/internal_chargepoint/0/get/rfid:.* rfid
MQTT_OpenWB_Bridge:openWB/set/pv/4/get/fault_str:.* fault_str
MQTT_OpenWB_Bridge:openWB/set/pv/4/get/fault_state:.* fault_state
MQTT_OpenWB_Bridge:openWB/pv/4/get/fault_str:.* fault_str
MQTT_OpenWB_Bridge:openWB/pv/4/get/fault_state:.* fault_state
MQTT_OpenWB_Bridge:openWB/set/bat/6/get/fault_str:.* fault_str
MQTT_OpenWB_Bridge:openWB/set/bat/6/get/fault_state:.* fault_state
MQTT_OpenWB_Bridge:openWB/bat/6/get/fault_str:.* fault_str
MQTT_OpenWB_Bridge:openWB/bat/6/get/fault_state:.* fault_state
MQTT_OpenWB_Bridge:openWB/set/pv/4/get/power:.* power
MQTT_OpenWB_Bridge:openWB/set/pv/4/get/exported:.* exported
MQTT_OpenWB_Bridge:openWB/set/pv/4/get/currents:.* { json2nameValue($EVENT, 'currents_', $JSONMAP) }
MQTT_OpenWB_Bridge:openWB/set/bat/6/get/power:.* power
MQTT_OpenWB_Bridge:openWB/set/bat/6/get/soc:.* soc
MQTT_OpenWB_Bridge:openWB/set/bat/6/get/imported:.* imported
MQTT_OpenWB_Bridge:openWB/set/bat/6/get/exported:.* exported
MQTT_OpenWB_Bridge:openWB/pv/4/get/power:.* power
MQTT_OpenWB_Bridge:openWB/pv/4/get/exported:.* exported
MQTT_OpenWB_Bridge:openWB/pv/4/get/currents:.* { json2nameValue($EVENT, 'currents_', $JSONMAP) }
MQTT_OpenWB_Bridge:openWB/bat/6/get/power:.* power
MQTT_OpenWB_Bridge:openWB/bat/6/get/soc:.* soc
MQTT_OpenWB_Bridge:openWB/bat/6/get/imported:.* imported
MQTT_OpenWB_Bridge:openWB/bat/6/get/exported:.* exported
MQTT_OpenWB_Bridge:openWB/set/pv/get/fault_state:.* fault_state
MQTT_OpenWB_Bridge:openWB/set/pv/get/fault_str:.* fault_str
MQTT_OpenWB_Bridge:openWB/pv/get/fault_state:.* fault_state
MQTT_OpenWB_Bridge:openWB/pv/get/fault_str:.* fault_str
MQTT_OpenWB_Bridge:openWB/set/bat/set/regulate_up:.* regulate_up
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/set/charging_ev_prev:.* charging_ev_prev
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/set/log:.* { json2nameValue($EVENT, 'log_', $JSONMAP) }
MQTT_OpenWB_Bridge:openWB/chargepoint/0/set/log:.* { json2nameValue($EVENT, 'log_', $JSONMAP) }
MQTT_OpenWB_Bridge:openWB/set/bat/6/get/daily_imported:.* daily_imported
MQTT_OpenWB_Bridge:openWB/set/bat/6/get/daily_exported:.* daily_exported
MQTT_OpenWB_Bridge:openWB/bat/6/get/daily_imported:.* daily_imported
MQTT_OpenWB_Bridge:openWB/bat/6/get/daily_exported:.* daily_exported
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/control_parameter/required_current:.* required_current
MQTT_OpenWB_Bridge:openWB/set/bat/get/soc:.* soc
MQTT_OpenWB_Bridge:openWB/bat/get/soc:.* soc
MQTT_OpenWB_Bridge:openWB/set/bat/get/power:.* power
MQTT_OpenWB_Bridge:openWB/bat/get/power:.* power
MQTT_OpenWB_Bridge:openWB/set/bat/get/imported:.* imported
MQTT_OpenWB_Bridge:openWB/bat/get/imported:.* imported
MQTT_OpenWB_Bridge:openWB/set/bat/get/daily_imported:.* daily_imported
MQTT_OpenWB_Bridge:openWB/bat/get/daily_imported:.* daily_imported
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/control_parameter/state:.* state
MQTT_OpenWB_Bridge:openWB/set/bat/get/exported:.* exported
MQTT_OpenWB_Bridge:openWB/bat/get/exported:.* exported
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/control_parameter/timestamp_switch_on_off:.* timestamp_switch_on_off
MQTT_OpenWB_Bridge:openWB/set/bat/get/daily_exported:.* daily_exported
MQTT_OpenWB_Bridge:openWB/bat/get/daily_exported:.* daily_exported
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/config/ev:.* ev
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/set/rfid:.* rfid
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/set/plug_time:.* plug_time
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/set/phases_to_use:.* phases_to_use
MQTT_OpenWB_Bridge:openWB/chargepoint/0/set/rfid:.* rfid
MQTT_OpenWB_Bridge:openWB/set/vehicle/0/get/force_soc_update:.* force_soc_update
MQTT_OpenWB_Bridge:openWB/chargepoint/0/set/phases_to_use:.* phases_to_use
MQTT_OpenWB_Bridge:openWB/vehicle/0/get/force_soc_update:.* force_soc_update
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/control_parameter/chargemode:.* chargemode
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/control_parameter/phases:.* phases
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/control_parameter/submode:.* submode
MQTT_OpenWB_Bridge:openWB/set/internal_chargepoint/last_tag:.* last_tag
MQTT_OpenWB_Bridge:openWB/internal_chargepoint/last_tag:.* last_tag
MQTT_OpenWB_Bridge:openWB/set/isss/ClearRfid:.* ClearRfid
MQTT_OpenWB_Bridge:openWB/set/vehicle/2/get/force_soc_update:.* force_soc_update
MQTT_OpenWB_Bridge:openWB/vehicle/2/get/force_soc_update:.* force_soc_update
MQTT_OpenWB_Bridge:openWB/set/chargepoint/0/control_parameter/limit:.* limit
   room       MQTT2_DEVICE
Raspi, ZWave, HUE, Neato Botvac, Squeezebox

schnuddel

Ich habe bei den Readings, die für die Graphen bereitgestellt werden, ein Prefix hinzugefügt wie hier:
MQTT_OpenWB_Bridge:openWB/graph/alllivevaluesJson6:.* { json2nameValue($EVENT,'graph_') }Damit war das Problem gelöst.
Raspi, ZWave, HUE, Neato Botvac, Squeezebox

ch.eick

#4
Hallo zusammen,
Das sieht verdächtig nach der openWB Version 2 aus. Ich habe gerade begonnen meine zwei Ladepunkte auf die Version 2 umzustellen und leider da erst gesehen, dass die mqtts sich total geändert haben.

Wie weit seit ihr da bisher gekommen?
Habt ihr schon sinnvolle set Register erstellt?
Kann man beim auspacken der json noch die Werte formatieren z.B. auf 2 Nachkommastellen?

Ich würde es gerne so gestalten wie meine Definition von Version 1, die ich ins Wiki gestellt habe.

VG   Christian
RPI4; Docker; CUNX; Eltako FSB61NP; SamsungTV H-Serie; Sonos; Vallox; Luxtronik; 3x FB7490; Stromzähler mit DvLIR; wunderground; Plenticore 10 mit BYD; EM410; SMAEM; Modbus TCP
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/ch.eick