Hallo,
ich habe zur Steuerung meines Saugroboters aktuell einen Counter, der jeden Tag hochgezählt wird und bei erreichen eines bestimmten Wertes die Reinigung auslöst (zusätzlich zur abwesenheitsregel z.b. im Urlaubs- oder Krankheitsfall wenn dauerhaft jemand zu Hause ist).
Nun habe ich in letzter Zeit öfters eine Raumreinigung statt einer Komplettreinigung gemacht und würde den Counter für jedes Zimmer separat steuern. Soweit alles kein Problem.
Da ich aber zur Auswertung und zur Anzeige an verschiedenen Stellen nur auf einen einzelnen Wert zurückgreifen/prüfen kann muss ich prüfen ob einer der Zähler für die einzelnen Räume einen bestimmten Wert erreicht hat, also den Maximalwert der einzelnen Räume.
Leider war meine Suche zu max, maximal, perl etc. bisher ohne großen Erfolg. Habe nur die Max-Heizungssteuerung und verweise auf Readingsgroups gefunden.
Kann mir vielleicht jemand einen Tipp für einen Link oder Suchbegriff nennen?
Hier das List des aktuellen Devices für den Sauroboter wo auch die Counter drin enthalten sind:
Internals:
DEF 192.168.178.158 66554a4c3263616776466e7639514f76
FD 47
FUUID 6125ef98-f33f-6c14-9271-d487c11a1c65b384
FVERSION 72_XiaomiDevice.pm:0.230210/2020-10-25
NAME unit_wz_saugroboter
NR 108
STATE Status: Docked <br> Letzte Reinigung: 3 Tage
TYPE XiaomiDevice
hardware Linux
mac 64:90:C1:14:98:64
model roborock.vacuum.a10
token 66554a4c3263616776466e7639514f76
OLDREADINGS:
2021-12-27 11:42:50 FTUI_start on
2021-12-27 12:11:12 batteryPercent 99
2021-12-21 18:36:39 consumables_filter 44
2021-12-15 20:36:38 consumables_main_brush 72
2021-12-24 12:36:39 consumables_sensors 71
2021-12-20 16:36:39 consumables_side_brush 58
2021-12-25 08:00:00 counter 2
2021-12-11 23:36:35 device_uptime 20.20
2021-12-26 22:03:42 dnd on
2021-12-24 11:17:46 event segment_clean_succ
2021-12-24 12:22:46 history_0 2021-12-24 12:11:42: 9.56m² in 0.15h, finished cleaning
2021-12-24 12:22:46 history_1 2021-12-24 11:30:12: 10.17m² in 0.18h, finished cleaning
2021-12-24 12:22:46 history_2 2021-12-24 11:18:03: 2.64m² in 0.05h, finished cleaning
2021-12-24 12:22:46 history_3 2021-12-24 11:14:22: 3.45m² in 0.06h, finished cleaning
2021-12-24 12:22:46 history_4 2021-12-24 11:08:03: 5.45m² in 0.10h, finished cleaning
2021-12-24 12:22:46 history_5 2021-12-23 08:55:41: 30.51m² in 0.53h, finished cleaning
2021-12-24 12:22:46 history_6 2021-12-22 11:02:12: 26.82m² in 0.51h, finished cleaning
2021-12-24 12:22:46 history_7 2021-12-21 17:09:04: 26.92m² in 0.51h, finished cleaning
2021-12-24 12:22:46 history_8 2021-12-20 15:36:36: 27.99m² in 0.53h, finished cleaning
2021-12-24 12:22:46 history_9 2021-12-20 07:53:06: 17.70m² in 0.33h, finished cleaning
2021-12-27 11:38:42 in_cleaning yes
2021-12-27 11:38:42 in_fresh_state no
2021-12-24 12:21:16 in_returning yes
2021-12-27 11:48:12 last_clean_area 5.79
2021-12-27 11:48:12 last_clean_time 0.09
2021-12-24 12:22:46 last_timestamp 1640344302
2021-12-27 11:49:42 lock_status on
2021-12-24 12:11:37 segment segment 19
2021-12-27 11:49:42 state Charging
2021-12-24 12:22:46 total_clean_area 4658.13
2021-12-24 12:22:46 total_clean_time 84.02
2021-12-24 12:22:46 total_cleans 291
2021-12-21 23:36:35 wifi_rssi -41
READINGS:
2021-12-27 11:43:00 FTUI_start off
2020-12-01 13:44:19 app_bom A.03.0097
2020-12-01 13:44:19 app_language en
2020-12-01 13:44:19 app_location de
2020-12-01 13:44:19 app_logserver awsde0.fds.api.xiaomi.com
2020-12-01 13:44:19 app_name custom_A.03.0097_CE
2020-12-01 13:44:19 app_timezone Europe/Berlin
2020-12-01 13:44:19 app_wifiplan DE
2021-12-02 17:26:01 autostart_person on
2021-12-07 20:57:50 autostart_times off
2021-06-06 22:42:55 autostart_times_interval 2
2021-08-22 18:22:01 autostart_wiping off
2021-12-27 12:16:12 batteryPercent 100
2020-12-01 14:19:23 batteryState ok
2020-12-01 13:44:19 carpet_high 500
2020-12-01 13:44:19 carpet_integral 450
2020-12-01 13:44:19 carpet_low 400
2020-12-01 13:44:19 carpet_mode on
2020-12-01 13:44:19 carpet_stall_time 10
2021-05-20 19:34:36 cleaning_command segment 16
2021-05-08 16:32:05 cleaning_mode auto
2021-12-23 09:36:39 consumables_filter 43
2021-12-23 09:36:39 consumables_main_brush 71
2021-12-27 12:28:38 consumables_sensors 70
2021-12-23 09:36:39 consumables_side_brush 57
2021-12-26 08:00:00 counter 3
2021-12-27 15:11:25 counter_bad 0
2021-12-27 15:11:18 counter_diele 0
2021-12-27 15:11:12 counter_kueche 0
2021-12-27 15:11:05 counter_schlafzimmer 0
2021-12-27 15:10:59 counter_wohnzimmer 0
2020-11-15 16:25:05 current_sound chinese
2021-11-10 11:05:56 device_firmware 3.5.8_6186
2020-12-01 13:44:19 device_fw_features 111,112,113,114,115,116,117,118,119,120,121,122,123,124,125
2021-12-25 03:28:35 device_uptime 0.06
2021-12-27 08:03:42 dnd off
2020-12-01 13:44:19 dnd_enabled on
2021-04-24 18:49:12 dnd_end 08:00
2021-04-24 18:49:12 dnd_start 22:00
2021-05-29 10:14:48 error none
2021-10-07 14:20:05 error_code None
2021-12-27 11:49:42 event back_to_dock
2021-05-08 16:32:05 fan_power 106
2021-12-27 11:49:42 history_0 2021-12-27 11:42:53: 5.92m² in 0.10h, finished cleaning
2021-12-27 11:49:42 history_1 2021-12-27 11:33:55: 9.53m² in 0.14h, finished cleaning
2021-12-27 11:49:42 history_2 2021-12-24 12:11:42: 9.56m² in 0.15h, finished cleaning
2021-12-27 11:49:42 history_3 2021-12-24 11:30:12: 10.17m² in 0.18h, finished cleaning
2021-12-27 11:49:42 history_4 2021-12-24 11:18:03: 2.64m² in 0.05h, finished cleaning
2021-12-27 11:49:42 history_5 2021-12-24 11:14:22: 3.45m² in 0.06h, finished cleaning
2021-12-27 11:49:42 history_6 2021-12-24 11:08:03: 5.45m² in 0.10h, finished cleaning
2021-12-27 11:49:42 history_7 2021-12-23 08:55:41: 30.51m² in 0.53h, finished cleaning
2021-12-27 11:49:42 history_8 2021-12-22 11:02:12: 26.82m² in 0.51h, finished cleaning
2021-12-27 11:49:42 history_9 2021-12-21 17:09:04: 26.92m² in 0.51h, finished cleaning
2021-12-27 11:49:42 in_cleaning no
2021-12-27 11:49:42 in_fresh_state yes
2021-12-24 12:22:46 in_returning no
2020-12-01 14:19:23 lab_status yes
2021-12-27 11:49:42 last_clean_area 5.92
2021-12-27 11:49:42 last_clean_time 0.10
2021-12-27 11:49:42 last_timestamp 1640601773
2021-05-12 09:22:35 link 18
2021-12-27 11:51:12 lock_status off
2020-11-15 16:25:29 log_upload_status 9
2020-12-01 14:19:23 map_present yes
2021-10-09 17:42:36 mop_forbidden_enable no
2021-05-20 19:34:30 power off
2021-12-27 11:42:49 segment segment 16
2020-11-30 14:36:08 serial_number R0402S01502669
2021-12-27 12:16:12 state Docked
2021-08-25 09:29:17 state_old 0
2020-11-30 14:36:08 timezone Europe/Berlin
2021-12-27 11:49:42 total_clean_area 4673.57
2021-12-27 11:49:42 total_clean_time 84.26
2021-12-27 11:49:42 total_cleans 293
2021-06-22 14:30:01 volume 90
2021-10-09 17:42:36 water_box_carriage_status no
2021-05-08 16:32:05 water_box_mode auto
2021-10-09 17:42:36 water_box_status no
2020-11-30 22:32:46 wifi_auth_fail_count 0
2020-11-30 22:32:46 wifi_conn_fail_count 0
2020-11-30 22:32:46 wifi_conn_success_count 1
2020-11-30 22:32:46 wifi_dhcp_fail_count 0
2021-12-24 23:36:35 wifi_rssi -42
2021-02-21 20:57:42 wifi_state online
helper:
ConnectionState connected
cleanrecord 10
crypt AES
delay 60
dev 132a
historydays 10
id 9c81
ip 192.168.178.158
last_read 1640614272
packetid 11678
port 54321
sequence -3
timers 0
token 66554a4c3263616776466e7639514f76
day:
history:
packet:
11675 get_status
11676 get_status
11677 get_status
Attributes:
alias Saugroboter
event-on-change-reading .*
group Geräte
icon vacuum_top
oldreadings .*
room Wohnung->Wohnzimmer
stateFormat Status: state <br> Letzte Reinigung: counter Tage
subType VacuumCleaner
timestamp-on-change-reading .*
userReadings state_old { OldReadingsVal("Saugroboter", "state", ReadingsVal("Saugroboter", "state", 0)) }
verbose 1
Moin,
vielleicht hilft das.
LG
Andreas
hilft was?
Fehlt da was in dem Post?
und sowas:
DOIF: https://fhem.de/commandref_DE.html#DOIF_aggregation (https://fhem.de/commandref_DE.html#DOIF_aggregation)
#max höchster Wert
sorry
https://forum.fhem.de/index.php?topic=98382.0