Readings extrahieren per dummy oder notify

Begonnen von uwirt, 14 August 2024, 09:19:27

Vorheriges Thema - Nächstes Thema

uwirt

Zuerst hatte ich mir zwei separate JsonMod Devices erstellt (eco_json_1 und eco_json_2) welche mittels readingList die jeweiligen Readings ausfilterte, die ich benötige. Ich muss das so tun weil ich die Readings danach mit Cacti/rrd darstellen lasse. Cacti erlaubt da nur eine limitierte Anzahl von Werten. Da diese beiden API-Calls praktisch immer gleichzeitig laufen blockiert dies die Webseite manchmal:
setstate eco_json_1 2024-08-14 09:15:00 msg Operation too frequent

Deshalb möchte ich mit einem call alle readings mit eco_json laden und jeweils einen Teil davon in ein anderes Device übertragen. Ich habe gelesen, dass man dies mit dummy oder notify lösen kann. Was wäre der bessere Weg und ich wäre froh um ein Beispiel.

define eco_json JsonMod https://api.ecowitt.net/api/v3/device/real_time?application_key=key&api_key=api_key&call_back=all
attr eco_json devStateStyle style="text-align:right"
attr eco_json interval */5 * * * *
attr eco_json readingList complete()
attr eco_json room ecowitt
#   API_LAST_MSG 200
#   API_LAST_RES 1723620427.49158
#   CFGFN     
#   DEF        https://api.ecowitt.net/api/v3/device/real_time?application_key=key&api_key=api_key&mac=mac&call_back=all
#   FUUID      66bc5681-f33f-c144-6fd8-c5e23a4b947589b5
#   NAME       eco_json
#   NEXT       2024-08-14 09:30:00
#   NR         152
#   SOURCE     https://api.ecowitt.net/api/v3/device/real_time?application_key=key&api_key=api_key&mac=mac&call_back=all (200)
#   STATE      ???
#   SVN        28481 2024-02-05 22:14:33 UTC
#   TYPE       JsonMod
#   eventCount 273
#   CONFIG:
#     IN_REQUEST 0
#     SOURCE     https://api.ecowitt.net/api/v3/device/real_time?application_key=key&api_key=api_key&mac=mac&call_back=all
#     SECRET:
#   OLDREADINGS:
#   READINGS:
#     2024-08-14 09:27:07   code            0
#     2024-08-14 09:27:07   data.battery.aqi_combo_sensor.time 1723620392
#     2024-08-14 09:27:07   data.battery.aqi_combo_sensor.unit
#     2024-08-14 09:27:07   data.battery.aqi_combo_sensor.value 6
#     2024-08-14 09:27:07   data.battery.haptic_array_battery.time 1723620392
#     2024-08-14 09:27:07   data.battery.haptic_array_battery.unit V
#     2024-08-14 09:27:07   data.battery.haptic_array_battery.value 3.22
#     2024-08-14 09:27:07   data.battery.haptic_array_capacitor.time 1723620392
#     2024-08-14 09:27:07   data.battery.haptic_array_capacitor.unit V
#     2024-08-14 09:27:07   data.battery.haptic_array_capacitor.value 4.0
#     2024-08-14 09:27:07   data.battery.leaf_wetness_sensor_ch1.time 1723620392
#     2024-08-14 09:27:07   data.battery.leaf_wetness_sensor_ch1.unit V
#     2024-08-14 09:27:07   data.battery.leaf_wetness_sensor_ch1.value 1.60
#     2024-08-14 09:27:07   data.battery.lightning_sensor.time 1723620392
#     2024-08-14 09:27:07   data.battery.lightning_sensor.unit
#     2024-08-14 09:27:07   data.battery.lightning_sensor.value 5
#     2024-08-14 09:27:07   data.co2_aqi_combo.24_hours_average.time 1723620392
#     2024-08-14 09:27:07   data.co2_aqi_combo.24_hours_average.unit ppm
#     2024-08-14 09:27:07   data.co2_aqi_combo.24_hours_average.value 876
#     2024-08-14 09:27:07   data.co2_aqi_combo.co2.time 1723620392
#     2024-08-14 09:27:07   data.co2_aqi_combo.co2.unit ppm
#     2024-08-14 09:27:07   data.co2_aqi_combo.co2.value 822
#     2024-08-14 09:27:07   data.indoor.humidity.time 1723620392
#     2024-08-14 09:27:07   data.indoor.humidity.unit %
#     2024-08-14 09:27:07   data.indoor.humidity.value 32
#     2024-08-14 09:27:07   data.indoor.temperature.time 1723620392
#     2024-08-14 09:27:07   data.indoor.temperature.unit ºF
#     2024-08-14 09:27:07   data.indoor.temperature.value 84.9
#     2024-08-14 09:27:07   data.leaf_ch1.leaf_wetness.time 1723620392
#     2024-08-14 09:27:07   data.leaf_ch1.leaf_wetness.unit %
#     2024-08-14 09:27:07   data.leaf_ch1.leaf_wetness.value 0
#     2024-08-14 09:27:07   data.lightning.count.time 1723620392
#     2024-08-14 09:27:07   data.lightning.count.unit
#     2024-08-14 09:27:07   data.lightning.count.value 0
#     2024-08-14 09:27:07   data.outdoor.app_temp.time 1723620392
#     2024-08-14 09:27:07   data.outdoor.app_temp.unit ºF
#     2024-08-14 09:27:07   data.outdoor.app_temp.value 62.5
#     2024-08-14 09:27:07   data.outdoor.dew_point.time 1723620392
#     2024-08-14 09:27:07   data.outdoor.dew_point.unit ºF
#     2024-08-14 09:27:07   data.outdoor.dew_point.value 56.3
#     2024-08-14 09:27:07   data.outdoor.feels_like.time 1723620392
#     2024-08-14 09:27:07   data.outdoor.feels_like.unit ºF
#     2024-08-14 09:27:07   data.outdoor.feels_like.value 61.2
#     2024-08-14 09:27:07   data.outdoor.humidity.time 1723620392
#     2024-08-14 09:27:07   data.outdoor.humidity.unit %
#     2024-08-14 09:27:07   data.outdoor.humidity.value 84
#     2024-08-14 09:27:07   data.outdoor.temperature.time 1723620392
#     2024-08-14 09:27:07   data.outdoor.temperature.unit ºF
#     2024-08-14 09:27:07   data.outdoor.temperature.value 61.2
#     2024-08-14 09:27:07   data.pm10_aqi_combo.24_hours_aqi.time 1723620392
#     2024-08-14 09:27:07   data.pm10_aqi_combo.24_hours_aqi.unit µg/m³
#     2024-08-14 09:27:07   data.pm10_aqi_combo.24_hours_aqi.value 2
#     2024-08-14 09:27:07   data.pm10_aqi_combo.pm10.time 1723620392
#     2024-08-14 09:27:07   data.pm10_aqi_combo.pm10.unit µg/m³
#     2024-08-14 09:27:07   data.pm10_aqi_combo.pm10.value 2
#     2024-08-14 09:27:07   data.pm10_aqi_combo.real_time_aqi.time 1723620392
#     2024-08-14 09:27:07   data.pm10_aqi_combo.real_time_aqi.unit µg/m³
#     2024-08-14 09:27:07   data.pm10_aqi_combo.real_time_aqi.value 1
#     2024-08-14 09:27:07   data.pm1_aqi_combo.24_hours_aqi.time 1723620392
#     2024-08-14 09:27:07   data.pm1_aqi_combo.24_hours_aqi.unit µg/m³
#     2024-08-14 09:27:07   data.pm1_aqi_combo.24_hours_aqi.value 8
#     2024-08-14 09:27:07   data.pm1_aqi_combo.pm1.time 1723620392
#     2024-08-14 09:27:07   data.pm1_aqi_combo.pm1.unit µg/m³
#     2024-08-14 09:27:07   data.pm1_aqi_combo.pm1.value 1
#     2024-08-14 09:27:07   data.pm1_aqi_combo.real_time_aqi.time 1723620392
#     2024-08-14 09:27:07   data.pm1_aqi_combo.real_time_aqi.unit µg/m³
#     2024-08-14 09:27:07   data.pm1_aqi_combo.real_time_aqi.value 5
#     2024-08-14 09:27:07   data.pm25_aqi_combo.24_hours_aqi.time 1723620392
#     2024-08-14 09:27:07   data.pm25_aqi_combo.24_hours_aqi.unit µg/m³
#     2024-08-14 09:27:07   data.pm25_aqi_combo.24_hours_aqi.value 9
#     2024-08-14 09:27:07   data.pm25_aqi_combo.pm25.time 1723620392
#     2024-08-14 09:27:07   data.pm25_aqi_combo.pm25.unit µg/m³
#     2024-08-14 09:27:07   data.pm25_aqi_combo.pm25.value 1
#     2024-08-14 09:27:07   data.pm25_aqi_combo.real_time_aqi.time 1723620392
#     2024-08-14 09:27:07   data.pm25_aqi_combo.real_time_aqi.unit µg/m³
#     2024-08-14 09:27:07   data.pm25_aqi_combo.real_time_aqi.value 6
#     2024-08-14 09:27:07   data.pm4_aqi_combo.24_hours_aqi.time 1723620392
#     2024-08-14 09:27:07   data.pm4_aqi_combo.24_hours_aqi.unit µg/m³
#     2024-08-14 09:27:07   data.pm4_aqi_combo.24_hours_aqi.value 10
#     2024-08-14 09:27:07   data.pm4_aqi_combo.pm4.time 1723620392
#     2024-08-14 09:27:07   data.pm4_aqi_combo.pm4.unit µg/m³
#     2024-08-14 09:27:07   data.pm4_aqi_combo.pm4.value 1
#     2024-08-14 09:27:07   data.pm4_aqi_combo.real_time_aqi.time 1723620392
#     2024-08-14 09:27:07   data.pm4_aqi_combo.real_time_aqi.unit µg/m³
#     2024-08-14 09:27:07   data.pm4_aqi_combo.real_time_aqi.value 6
#     2024-08-14 09:27:07   data.pressure.absolute.time 1723620392
#     2024-08-14 09:27:07   data.pressure.absolute.unit inHg
#     2024-08-14 09:27:07   data.pressure.absolute.value 25.79
#     2024-08-14 09:27:07   data.pressure.relative.time 1723620392
#     2024-08-14 09:27:07   data.pressure.relative.unit inHg
#     2024-08-14 09:27:07   data.pressure.relative.value 25.79
#     2024-08-14 09:27:07   data.rainfall_piezo.daily.time 1723620392
#     2024-08-14 09:27:07   data.rainfall_piezo.daily.unit in
#     2024-08-14 09:27:07   data.rainfall_piezo.daily.value 0.02
#     2024-08-14 09:27:07   data.rainfall_piezo.event.time 1723620392
#     2024-08-14 09:27:07   data.rainfall_piezo.event.unit in
#     2024-08-14 09:27:07   data.rainfall_piezo.event.value 0.92
#     2024-08-14 09:27:07   data.rainfall_piezo.hourly.time 1723620392
#     2024-08-14 09:27:07   data.rainfall_piezo.hourly.unit in
#     2024-08-14 09:27:07   data.rainfall_piezo.hourly.value 0.00
#     2024-08-14 09:27:07   data.rainfall_piezo.monthly.time 1723620392
#     2024-08-14 09:27:07   data.rainfall_piezo.monthly.unit in
#     2024-08-14 09:27:07   data.rainfall_piezo.monthly.value 1.39
#     2024-08-14 09:27:07   data.rainfall_piezo.rain_rate.time 1723620392
#     2024-08-14 09:27:07   data.rainfall_piezo.rain_rate.unit in/hr
#     2024-08-14 09:27:07   data.rainfall_piezo.rain_rate.value 0.00
#     2024-08-14 09:27:07   data.rainfall_piezo.weekly.time 1723620392
#     2024-08-14 09:27:07   data.rainfall_piezo.weekly.unit in
#     2024-08-14 09:27:07   data.rainfall_piezo.weekly.value 1.36
#     2024-08-14 09:27:07   data.rainfall_piezo.yearly.time 1723620392
#     2024-08-14 09:27:07   data.rainfall_piezo.yearly.unit in
#     2024-08-14 09:27:07   data.rainfall_piezo.yearly.value 1.39
#     2024-08-14 09:27:07   data.solar_and_uvi.solar.time 1723620392
#     2024-08-14 09:27:07   data.solar_and_uvi.solar.unit W/m²
#     2024-08-14 09:27:07   data.solar_and_uvi.solar.value 197.1
#     2024-08-14 09:27:07   data.solar_and_uvi.uvi.time 1723620392
#     2024-08-14 09:27:07   data.solar_and_uvi.uvi.unit
#     2024-08-14 09:27:07   data.solar_and_uvi.uvi.value 1
#     2024-08-14 09:27:07   data.t_rh_aqi_combo.humidity.time 1723620392
#     2024-08-14 09:27:07   data.t_rh_aqi_combo.humidity.unit %
#     2024-08-14 09:27:07   data.t_rh_aqi_combo.humidity.value 63
#     2024-08-14 09:27:07   data.t_rh_aqi_combo.temperature.time 1723620392
#     2024-08-14 09:27:07   data.t_rh_aqi_combo.temperature.unit ºF
#     2024-08-14 09:27:07   data.t_rh_aqi_combo.temperature.value 67.8
#     2024-08-14 09:27:07   data.wind.wind_direction.time 1723620392
#     2024-08-14 09:27:07   data.wind.wind_direction.unit º
#     2024-08-14 09:27:07   data.wind.wind_direction.value 177
#     2024-08-14 09:27:07   data.wind.wind_gust.time 1723620392
#     2024-08-14 09:27:07   data.wind.wind_gust.unit mph
#     2024-08-14 09:27:07   data.wind.wind_gust.value 2.7
#     2024-08-14 09:27:07   data.wind.wind_speed.time 1723620392
#     2024-08-14 09:27:07   data.wind.wind_speed.unit mph
#     2024-08-14 09:27:07   data.wind.wind_speed.value 1.1
#     2024-08-14 09:27:07   msg             success
#     2024-08-14 09:27:07   time            1723620427
#   hmccu:
#
setstate eco_json 2024-08-14 09:27:07 .computedReadings data.pm4_aqi_combo.24_hours_aqi.value,data.pm1_aqi_combo.pm1.time,data.rainfall_piezo.daily.value,data.pm4_aqi_combo.real_time_aqi.time,data.outdoor.app_temp.value,data.rainfall_piezo.yearly.time,data.battery.lightning_sensor.value,data.wind.wind_gust.value,data.co2_aqi_combo.co2.time,data.pm25_aqi_combo.24_hours_aqi.time,data.pm4_aqi_combo.pm4.unit,data.battery.leaf_wetness_sensor_ch1.time,data.wind.wind_direction.value,data.pm4_aqi_combo.real_time_aqi.unit,data.pressure.absolute.value,data.battery.haptic_array_battery.value,data.t_rh_aqi_combo.temperature.unit,data.rainfall_piezo.daily.unit,data.solar_and_uvi.uvi.unit,code,data.rainfall_piezo.rain_rate.value,data.pm4_aqi_combo.pm4.time,data.indoor.temperature.value,data.outdoor.dew_point.time,data.pm25_aqi_combo.real_time_aqi.value,data.pm1_aqi_combo.pm1.unit,data.battery.lightning_sensor.time,data.pm1_aqi_combo.24_hours_aqi.time,data.outdoor.dew_point.value,data.co2_aqi_combo.co2.value,data.t_rh_aqi_combo.humidity.time,data.outdoor.humidity.time,data.pressure.relative.unit,data.pm1_aqi_combo.24_hours_aqi.unit,data.t_rh_aqi_combo.humidity.value,data.outdoor.humidity.unit,data.pressure.absolute.time,data.battery.aqi_combo_sensor.time,data.t_rh_aqi_combo.temperature.value,data.rainfall_piezo.event.value,data.indoor.humidity.unit,data.solar_and_uvi.uvi.value,data.pm25_aqi_combo.24_hours_aqi.value,data.rainfall_piezo.monthly.value,data.pm1_aqi_combo.real_time_aqi.time,data.lightning.count.value,data.pm10_aqi_combo.pm10.unit,data.wind.wind_speed.time,data.pm25_aqi_combo.real_time_aqi.unit,data.pm4_aqi_combo.24_hours_aqi.time,data.wind.wind_gust.unit,data.pm4_aqi_combo.24_hours_aqi.unit,msg,data.pm10_aqi_combo.real_time_aqi.time,data.pm25_aqi_combo.24_hours_aqi.unit,data.pm4_aqi_combo.real_time_aqi.value,data.solar_and_uvi.solar.time,data.pm10_aqi_combo.pm10.time,data.outdoor.humidity.value,data.pressure.absolute.unit,data.outdoor.dew_point.unit,data.rainfall_piezo.event.time,data.leaf_ch1.leaf_wetness.unit,data.rainfall_piezo.weekly.value,data.battery.leaf_wetness_sensor_ch1.unit,data.pm1_aqi_combo.pm1.value,data.indoor.temperature.unit,data.pm25_aqi_combo.pm25.value,data.battery.aqi_combo_sensor.unit,data.wind.wind_direction.time,data.leaf_ch1.leaf_wetness.value,data.pressure.relative.time,data.pm25_aqi_combo.pm25.time,data.rainfall_piezo.rain_rate.time,data.rainfall_piezo.daily.time,data.rainfall_piezo.monthly.unit,data.battery.haptic_array_battery.time,data.outdoor.app_temp.unit,data.rainfall_piezo.rain_rate.unit,data.pm10_aqi_combo.24_hours_aqi.value,data.battery.haptic_array_battery.unit,data.wind.wind_speed.value,data.outdoor.feels_like.unit,data.outdoor.feels_like.time,data.leaf_ch1.leaf_wetness.time,data.battery.haptic_array_capacitor.value,data.battery.lightning_sensor.unit,data.pm10_aqi_combo.24_hours_aqi.time,data.battery.haptic_array_capacitor.unit,data.pm25_aqi_combo.real_time_aqi.time,data.rainfall_piezo.hourly.value,time,data.solar_and_uvi.solar.unit,data.battery.leaf_wetness_sensor_ch1.value,data.pm4_aqi_combo.pm4.value,data.pm10_aqi_combo.real_time_aqi.unit,data.outdoor.temperature.value,data.rainfall_piezo.hourly.time,data.indoor.humidity.time,data.co2_aqi_combo.24_hours_average.value,data.t_rh_aqi_combo.temperature.time,data.lightning.count.unit,data.outdoor.app_temp.time,data.outdoor.temperature.time,data.t_rh_aqi_combo.humidity.unit,data.outdoor.temperature.unit,data.rainfall_piezo.monthly.time,data.rainfall_piezo.event.unit,data.rainfall_piezo.hourly.unit,data.indoor.temperature.time,data.outdoor.feels_like.value,data.wind.wind_speed.unit,data.pm10_aqi_combo.real_time_aqi.value,data.wind.wind_direction.unit,data.pm1_aqi_combo.real_time_aqi.unit,data.battery.aqi_combo_sensor.value,data.pm25_aqi_combo.pm25.unit,data.pm1_aqi_combo.24_hours_aqi.value,data.pm1_aqi_combo.real_time_aqi.value,data.indoor.humidity.value,data.solar_and_uvi.solar.value,data.pm10_aqi_combo.pm10.value,data.lightning.count.time,data.pm10_aqi_combo.24_hours_aqi.unit,data.wind.wind_gust.time,data.rainfall_piezo.yearly.value,data.rainfall_piezo.weekly.time,data.rainfall_piezo.weekly.unit,data.pressure.relative.value,data.solar_and_uvi.uvi.time,data.battery.haptic_array_capacitor.time,data.co2_aqi_combo.24_hours_average.unit,data.co2_aqi_combo.24_hours_average.time,data.co2_aqi_combo.co2.unit,data.rainfall_piezo.yearly.unit
setstate eco_json 2024-08-14 09:27:07 code 0
setstate eco_json 2024-08-14 09:27:07 data.battery.aqi_combo_sensor.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.battery.aqi_combo_sensor.unit
setstate eco_json 2024-08-14 09:27:07 data.battery.aqi_combo_sensor.value 6
setstate eco_json 2024-08-14 09:27:07 data.battery.haptic_array_battery.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.battery.haptic_array_battery.unit V
setstate eco_json 2024-08-14 09:27:07 data.battery.haptic_array_battery.value 3.22
setstate eco_json 2024-08-14 09:27:07 data.battery.haptic_array_capacitor.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.battery.haptic_array_capacitor.unit V
setstate eco_json 2024-08-14 09:27:07 data.battery.haptic_array_capacitor.value 4.0
setstate eco_json 2024-08-14 09:27:07 data.battery.leaf_wetness_sensor_ch1.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.battery.leaf_wetness_sensor_ch1.unit V
setstate eco_json 2024-08-14 09:27:07 data.battery.leaf_wetness_sensor_ch1.value 1.60
setstate eco_json 2024-08-14 09:27:07 data.battery.lightning_sensor.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.battery.lightning_sensor.unit
setstate eco_json 2024-08-14 09:27:07 data.battery.lightning_sensor.value 5
setstate eco_json 2024-08-14 09:27:07 data.co2_aqi_combo.24_hours_average.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.co2_aqi_combo.24_hours_average.unit ppm
setstate eco_json 2024-08-14 09:27:07 data.co2_aqi_combo.24_hours_average.value 876
setstate eco_json 2024-08-14 09:27:07 data.co2_aqi_combo.co2.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.co2_aqi_combo.co2.unit ppm
setstate eco_json 2024-08-14 09:27:07 data.co2_aqi_combo.co2.value 822
setstate eco_json 2024-08-14 09:27:07 data.indoor.humidity.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.indoor.humidity.unit %
setstate eco_json 2024-08-14 09:27:07 data.indoor.humidity.value 32
setstate eco_json 2024-08-14 09:27:07 data.indoor.temperature.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.indoor.temperature.unit ºF
setstate eco_json 2024-08-14 09:27:07 data.indoor.temperature.value 84.9
setstate eco_json 2024-08-14 09:27:07 data.leaf_ch1.leaf_wetness.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.leaf_ch1.leaf_wetness.unit %
setstate eco_json 2024-08-14 09:27:07 data.leaf_ch1.leaf_wetness.value 0
setstate eco_json 2024-08-14 09:27:07 data.lightning.count.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.lightning.count.unit
setstate eco_json 2024-08-14 09:27:07 data.lightning.count.value 0
setstate eco_json 2024-08-14 09:27:07 data.outdoor.app_temp.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.outdoor.app_temp.unit ºF
setstate eco_json 2024-08-14 09:27:07 data.outdoor.app_temp.value 62.5
setstate eco_json 2024-08-14 09:27:07 data.outdoor.dew_point.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.outdoor.dew_point.unit ºF
setstate eco_json 2024-08-14 09:27:07 data.outdoor.dew_point.value 56.3
setstate eco_json 2024-08-14 09:27:07 data.outdoor.feels_like.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.outdoor.feels_like.unit ºF
setstate eco_json 2024-08-14 09:27:07 data.outdoor.feels_like.value 61.2
setstate eco_json 2024-08-14 09:27:07 data.outdoor.humidity.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.outdoor.humidity.unit %
setstate eco_json 2024-08-14 09:27:07 data.outdoor.humidity.value 84
setstate eco_json 2024-08-14 09:27:07 data.outdoor.temperature.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.outdoor.temperature.unit ºF
setstate eco_json 2024-08-14 09:27:07 data.outdoor.temperature.value 61.2
setstate eco_json 2024-08-14 09:27:07 data.pm10_aqi_combo.24_hours_aqi.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.pm10_aqi_combo.24_hours_aqi.unit µg/m³
setstate eco_json 2024-08-14 09:27:07 data.pm10_aqi_combo.24_hours_aqi.value 2
setstate eco_json 2024-08-14 09:27:07 data.pm10_aqi_combo.pm10.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.pm10_aqi_combo.pm10.unit µg/m³
setstate eco_json 2024-08-14 09:27:07 data.pm10_aqi_combo.pm10.value 2
setstate eco_json 2024-08-14 09:27:07 data.pm10_aqi_combo.real_time_aqi.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.pm10_aqi_combo.real_time_aqi.unit µg/m³
setstate eco_json 2024-08-14 09:27:07 data.pm10_aqi_combo.real_time_aqi.value 1
setstate eco_json 2024-08-14 09:27:07 data.pm1_aqi_combo.24_hours_aqi.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.pm1_aqi_combo.24_hours_aqi.unit µg/m³
setstate eco_json 2024-08-14 09:27:07 data.pm1_aqi_combo.24_hours_aqi.value 8
setstate eco_json 2024-08-14 09:27:07 data.pm1_aqi_combo.pm1.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.pm1_aqi_combo.pm1.unit µg/m³
setstate eco_json 2024-08-14 09:27:07 data.pm1_aqi_combo.pm1.value 1
setstate eco_json 2024-08-14 09:27:07 data.pm1_aqi_combo.real_time_aqi.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.pm1_aqi_combo.real_time_aqi.unit µg/m³
setstate eco_json 2024-08-14 09:27:07 data.pm1_aqi_combo.real_time_aqi.value 5
setstate eco_json 2024-08-14 09:27:07 data.pm25_aqi_combo.24_hours_aqi.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.pm25_aqi_combo.24_hours_aqi.unit µg/m³
setstate eco_json 2024-08-14 09:27:07 data.pm25_aqi_combo.24_hours_aqi.value 9
setstate eco_json 2024-08-14 09:27:07 data.pm25_aqi_combo.pm25.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.pm25_aqi_combo.pm25.unit µg/m³
setstate eco_json 2024-08-14 09:27:07 data.pm25_aqi_combo.pm25.value 1
setstate eco_json 2024-08-14 09:27:07 data.pm25_aqi_combo.real_time_aqi.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.pm25_aqi_combo.real_time_aqi.unit µg/m³
setstate eco_json 2024-08-14 09:27:07 data.pm25_aqi_combo.real_time_aqi.value 6
setstate eco_json 2024-08-14 09:27:07 data.pm4_aqi_combo.24_hours_aqi.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.pm4_aqi_combo.24_hours_aqi.unit µg/m³
setstate eco_json 2024-08-14 09:27:07 data.pm4_aqi_combo.24_hours_aqi.value 10
setstate eco_json 2024-08-14 09:27:07 data.pm4_aqi_combo.pm4.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.pm4_aqi_combo.pm4.unit µg/m³
setstate eco_json 2024-08-14 09:27:07 data.pm4_aqi_combo.pm4.value 1
setstate eco_json 2024-08-14 09:27:07 data.pm4_aqi_combo.real_time_aqi.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.pm4_aqi_combo.real_time_aqi.unit µg/m³
setstate eco_json 2024-08-14 09:27:07 data.pm4_aqi_combo.real_time_aqi.value 6
setstate eco_json 2024-08-14 09:27:07 data.pressure.absolute.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.pressure.absolute.unit inHg
setstate eco_json 2024-08-14 09:27:07 data.pressure.absolute.value 25.79
setstate eco_json 2024-08-14 09:27:07 data.pressure.relative.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.pressure.relative.unit inHg
setstate eco_json 2024-08-14 09:27:07 data.pressure.relative.value 25.79
setstate eco_json 2024-08-14 09:27:07 data.rainfall_piezo.daily.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.rainfall_piezo.daily.unit in
setstate eco_json 2024-08-14 09:27:07 data.rainfall_piezo.daily.value 0.02
setstate eco_json 2024-08-14 09:27:07 data.rainfall_piezo.event.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.rainfall_piezo.event.unit in
setstate eco_json 2024-08-14 09:27:07 data.rainfall_piezo.event.value 0.92
setstate eco_json 2024-08-14 09:27:07 data.rainfall_piezo.hourly.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.rainfall_piezo.hourly.unit in
setstate eco_json 2024-08-14 09:27:07 data.rainfall_piezo.hourly.value 0.00
setstate eco_json 2024-08-14 09:27:07 data.rainfall_piezo.monthly.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.rainfall_piezo.monthly.unit in
setstate eco_json 2024-08-14 09:27:07 data.rainfall_piezo.monthly.value 1.39
setstate eco_json 2024-08-14 09:27:07 data.rainfall_piezo.rain_rate.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.rainfall_piezo.rain_rate.unit in/hr
setstate eco_json 2024-08-14 09:27:07 data.rainfall_piezo.rain_rate.value 0.00
setstate eco_json 2024-08-14 09:27:07 data.rainfall_piezo.weekly.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.rainfall_piezo.weekly.unit in
setstate eco_json 2024-08-14 09:27:07 data.rainfall_piezo.weekly.value 1.36
setstate eco_json 2024-08-14 09:27:07 data.rainfall_piezo.yearly.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.rainfall_piezo.yearly.unit in
setstate eco_json 2024-08-14 09:27:07 data.rainfall_piezo.yearly.value 1.39
setstate eco_json 2024-08-14 09:27:07 data.solar_and_uvi.solar.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.solar_and_uvi.solar.unit W/m²
setstate eco_json 2024-08-14 09:27:07 data.solar_and_uvi.solar.value 197.1
setstate eco_json 2024-08-14 09:27:07 data.solar_and_uvi.uvi.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.solar_and_uvi.uvi.unit
setstate eco_json 2024-08-14 09:27:07 data.solar_and_uvi.uvi.value 1
setstate eco_json 2024-08-14 09:27:07 data.t_rh_aqi_combo.humidity.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.t_rh_aqi_combo.humidity.unit %
setstate eco_json 2024-08-14 09:27:07 data.t_rh_aqi_combo.humidity.value 63
setstate eco_json 2024-08-14 09:27:07 data.t_rh_aqi_combo.temperature.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.t_rh_aqi_combo.temperature.unit ºF
setstate eco_json 2024-08-14 09:27:07 data.t_rh_aqi_combo.temperature.value 67.8
setstate eco_json 2024-08-14 09:27:07 data.wind.wind_direction.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.wind.wind_direction.unit º
setstate eco_json 2024-08-14 09:27:07 data.wind.wind_direction.value 177
setstate eco_json 2024-08-14 09:27:07 data.wind.wind_gust.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.wind.wind_gust.unit mph
setstate eco_json 2024-08-14 09:27:07 data.wind.wind_gust.value 2.7
setstate eco_json 2024-08-14 09:27:07 data.wind.wind_speed.time 1723620392
setstate eco_json 2024-08-14 09:27:07 data.wind.wind_speed.unit mph
setstate eco_json 2024-08-14 09:27:07 data.wind.wind_speed.value 1.1
setstate eco_json 2024-08-14 09:27:07 msg success
setstate eco_json 2024-08-14 09:27:07 time 1723620427

FHEM / Ubuntu / fitlet2
HomeMatic: CCU3|HmIP-STHD|HmIP-PCBS|HmIP-PCBS2|HmIP-PCBS-BAT|HM-WDC7000|HM-WDS100-C6-O|HM-WDS40|HM-LC-Sw1-FM|HM-LC-RGBW-WM|HM-ES-PMSw1-Pl|HM-ES-TX-WM
NAS: DS218+|DS209j|DS216+II|DS412+
Devices: Panasonic Webcams|Withings|Gardena Smart|Tuya

betateilchen

warum brauchst Du ein zweites device zur Aufnahme von readings?
-----------------------
Formuliere die Aufgabe möglichst einfach und
setze die Lösung richtig um - dann wird es auch funktionieren.
-----------------------
Lesen gefährdet die Unwissenheit!

uwirt

#2
Das habe ich versucht zu erklären. Ich importiere die Readings-Werte in Cacti mit einem Perl-Script um die Werte danach grafisch darzustellen. Dieses Script lädt alle Readings von einem Device. Wenn ich das alles mit einem JsonMod device löse, dann sind das genau 26 Readings. Cacti erlaubt in der Abfrage einen String von höchstens 512 Zeichen. Das ist nur etwas mehr als die Hälfte der Readings die mir im API-Call wichtig sind. Deshalb versuche ich die Readings auf zwei Devices zu verteilen.

uw@IoT-Chalet:~$ perl /usr/share/cacti/site/scripts/fhem-getstate.pl -s 'localhost' -d 'eco_json_1'
ew_hap_dir:203 ew_hap_eve:0.92 ew_hap_gus:3.8 ew_hap_rat:0.00 ew_hap_spe:1.3 ew_hap_uvi:0 ew_ind_prs:875.042699998776 ew_lea_bat:1.60 ew_lea_wet:0 ew_lig_bat:5 ew_lig_cou:0 ew_out_dew:14.4 ew_out_hum:85 ew_out_tmp:17.0


Lösung:
Ich habe die Ableseintervalle (attr interval) für die beiden JsonMod devices auf
5,15,25,35,45,55 * * * *bzw.
0,10,20,30,40,50 * * * *gesetzt.
Damit wird eine zu schnelles Abfrage-Intervall umgangen.
FHEM / Ubuntu / fitlet2
HomeMatic: CCU3|HmIP-STHD|HmIP-PCBS|HmIP-PCBS2|HmIP-PCBS-BAT|HM-WDC7000|HM-WDS100-C6-O|HM-WDS40|HM-LC-Sw1-FM|HM-LC-RGBW-WM|HM-ES-PMSw1-Pl|HM-ES-TX-WM
NAS: DS218+|DS209j|DS216+II|DS412+
Devices: Panasonic Webcams|Withings|Gardena Smart|Tuya