MAX! EcoTaster mit Heizungsthermostaten synchronisieren

Begonnen von -kw, 30 Oktober 2023, 10:55:47

Vorheriges Thema - Nächstes Thema

-kw

Hallo zusammen,

ich habe mit einen MAX! EcoTaster gekauft und diesen wie im Wiki beschrieben eingebunden: https://wiki.fhem.de/wiki/MAX#Eco-Taster

define MaxEcoButton MAX PushButton 042290
attr MaxEcoButton model PushButton
attr MaxEcoButton room _Technik->EcoTaster,_Technik->MAX
#   CFGFN     
#   DEF        PushButton 042290
#   FUUID      653f73c4-f33f-86c0-738b-c4ca3fa5bff87768
#   IODev      Max1
#   LASTInputDev Max1
#   MSGCNT     21
#   Max1_MSGCNT 21
#   Max1_TIME  2023-10-30 10:38:39
#   NAME       MaxEcoButton
#   NR         9590
#   NTFY_ORDER 50-MAX_042290
#   STATE      closed
#   SVN        23517
#   TYPE       MAX
#   addr       042290
#   devtype    5
#   eventCount 21
#   type       PushButton
#   READINGS:
#     2023-10-30 10:13:40   IODev           Max1
#     2023-10-30 10:38:39   RSSI            -71
#     2023-10-30 10:38:39   battery         ok
#     2023-10-30 10:38:39   batteryState    ok
#     2023-10-30 10:38:39   gateway         0
#     2023-10-30 10:38:39   onoff           0
#     2023-10-30 10:38:39   peerIDs         000000
#     2023-10-30 10:38:39   peerList        Broadcast
#     2023-10-30 10:38:39   rferror         0
#     2023-10-30 10:38:39   state           closed
#   helper:
#     io:
#       CUL868:
#         raw        Z0C160250042290000000000000
#         rssi       -71
#         time       1698658719.10948
#
setstate MaxEcoButton closed
setstate MaxEcoButton 2023-10-30 10:38:39 .lastact 1698658719.11117
setstate MaxEcoButton 2023-10-30 10:13:40 IODev Max1
setstate MaxEcoButton 2023-10-30 10:38:39 RSSI -71
setstate MaxEcoButton 2023-10-30 10:38:39 battery ok
setstate MaxEcoButton 2023-10-30 10:38:39 batteryState ok
setstate MaxEcoButton 2023-10-30 10:38:39 gateway 0
setstate MaxEcoButton 2023-10-30 10:38:39 onoff 0
setstate MaxEcoButton 2023-10-30 10:38:39 peerIDs 000000
setstate MaxEcoButton 2023-10-30 10:38:39 peerList Broadcast
setstate MaxEcoButton 2023-10-30 10:38:39 rferror 0
setstate MaxEcoButton 2023-10-30 10:38:39 state closed


Öffnen/Schließen funktioniert wunderbar und ändert in fhem auch den Status.

Nun meine Frage: Wie kann ich nun meine Heizungsthermostate schalten?
Ich habe in jedem Zimmer Thermostate von MAX!:

define MAX_Thermostat_Bad MAX HeatingThermostat 06428d
attr MAX_Thermostat_Bad IODev Max1
attr MAX_Thermostat_Bad model HeatingThermostat
attr MAX_Thermostat_Bad room _Technik->Thermostate,_Bad
attr MAX_Thermostat_Bad scanTemp 1
#   DEF        HeatingThermostat 06428d
#   FUUID      5dc69706-f33f-86c0-0c48-cb4ed8c99c9b7ae2
#   FVERSION   10_MAX.pm:v2.0.0-s23517/2021-01-13
#   IODev      Max1
#   LASTInputDev Max1
#   MSGCNT     11
#   Max1_MSGCNT 11
#   Max1_TIME  2023-10-30 09:12:17
#   NAME       MAX_Thermostat_Bad
#   NR         77
#   NTFY_ORDER 50-MAX_Thermostat_Bad
#   STATE      19.0
#   SVN        23517
#   TYPE       MAX
#   TimeSlot   1
#   addr       06428d
#   devtype    1
#   eventCount 14
#   type       HeatingThermostat
#   webCmd     desiredTemperature
#   READINGS:
#     2023-10-30 00:03:06   IODev           Max1
#     2023-10-21 00:59:26   PairedTo        342516
#     2023-10-30 09:12:16   RSSI            -65.5
#     2023-10-21 00:59:26   SerialNr        JEQ0622237
#     2023-10-30 09:12:16   battery         ok
#     2023-10-30 09:12:16   batteryState    ok
#     2023-10-30 09:12:16   desiredTemperature 19.0
#     2023-10-30 08:30:22   deviation       1.1
#     2023-10-21 00:59:34   error           Invalid command/argument  81190000
#     2023-10-21 00:59:26   firmware        1.6
#     2023-10-30 09:12:16   gateway         1
#     2023-04-05 14:20:37   groupid         0
#     2023-10-30 02:03:52   lastTimeSync    2023-10-30 02:03:52
#     2023-10-30 09:12:17   lastcmd         desiredTemperature auto/boost
#     2023-10-30 09:12:16   mode            auto
#     2023-10-30 09:12:12   msgcnt          3
#     2023-10-30 09:12:16   panel           unlocked
#     2023-10-30 08:30:22   peerIDs         000000
#     2023-10-30 08:30:22   peerList        Broadcast
#     2023-10-30 09:12:16   rferror         0
#     2023-10-30 09:12:17   state           19.0
#     2023-10-30 08:30:22   temperature     20.1
#     2023-10-21 00:59:26   testresult      255
#     2023-10-30 09:12:16   valveposition   0
#     2023-10-19 10:12:47   weekprofile-0-Sat-temp 17.0 °C  /  18.0 °C  /  17.0 °C
#     2023-10-19 10:12:47   weekprofile-0-Sat-time 00:00-10:00  /  10:00-17:00  /  17:00-24:00
#     2023-10-19 10:12:47   weekprofile-1-Sun-temp 17.0 °C  /  18.0 °C  /  17.0 °C
#     2023-10-19 10:12:47   weekprofile-1-Sun-time 00:00-10:00  /  10:00-17:00  /  17:00-24:00
#     2023-10-19 10:12:47   weekprofile-2-Mon-temp 17.0 °C  /  19.0 °C  /  17.0 °C
#     2023-10-19 10:12:47   weekprofile-2-Mon-time 00:00-08:30  /  08:30-14:00  /  14:00-24:00
#     2023-10-19 10:12:47   weekprofile-3-Tue-temp 17.0 °C  /  19.0 °C  /  17.0 °C
#     2023-10-19 10:12:47   weekprofile-3-Tue-time 00:00-08:30  /  08:30-14:00  /  14:00-24:00
#     2023-10-19 10:12:47   weekprofile-4-Wed-temp 17.0 °C  /  19.0 °C  /  17.0 °C
#     2023-10-19 10:12:47   weekprofile-4-Wed-time 00:00-08:30  /  08:30-14:00  /  14:00-24:00
#     2023-10-19 10:12:47   weekprofile-5-Thu-temp 17.0 °C  /  19.0 °C  /  17.0 °C
#     2023-10-19 10:12:47   weekprofile-5-Thu-time 00:00-08:30  /  08:30-14:00  /  14:00-24:00
#     2023-10-19 10:12:47   weekprofile-6-Fri-temp 17.0 °C  /  19.0 °C  /  17.0 °C
#     2023-10-19 10:12:47   weekprofile-6-Fri-time 00:00-08:30  /  08:30-14:00  /  14:00-24:00
#   helper:
#     io:
#       CUL868:
#         raw        Z0E03020206428D3425160001180026
#         rssi       -65.5
#         time       1698653536.85046
#
setstate MAX_Thermostat_Bad 19.0
setstate MAX_Thermostat_Bad 2023-10-30 09:12:17 .lastact 1698653537.24817
setstate MAX_Thermostat_Bad 2023-10-19 10:12:47 .weekProfile 447848cc45204520452045204520452045204520452045204520447848cc4520452045204520452045204520452045204520452044664ca84520452045204520452045204520452045204520452044664ca84520452045204520452045204520452045204520452044664ca84520452045204520452045204520452045204520452044664ca84520452045204520452045204520452045204520452044664ca845204520452045204520452045204520452045204520
setstate MAX_Thermostat_Bad 2023-10-30 00:03:06 IODev Max1
setstate MAX_Thermostat_Bad 2023-10-21 00:59:26 PairedTo 342516
setstate MAX_Thermostat_Bad 2023-10-30 09:12:16 RSSI -65.5
setstate MAX_Thermostat_Bad 2023-10-21 00:59:26 SerialNr JEQ0622237
setstate MAX_Thermostat_Bad 2023-10-30 09:12:16 battery ok
setstate MAX_Thermostat_Bad 2023-10-30 09:12:16 batteryState ok
setstate MAX_Thermostat_Bad 2023-10-30 09:12:16 desiredTemperature 19.0
setstate MAX_Thermostat_Bad 2023-10-30 08:30:22 deviation 1.1
setstate MAX_Thermostat_Bad 2023-10-21 00:59:34 error Invalid command/argument  81190000
setstate MAX_Thermostat_Bad 2023-10-21 00:59:26 firmware 1.6
setstate MAX_Thermostat_Bad 2023-10-30 09:12:16 gateway 1
setstate MAX_Thermostat_Bad 2023-04-05 14:20:37 groupid 0
setstate MAX_Thermostat_Bad 2023-10-30 02:03:52 lastTimeSync 2023-10-30 02:03:52
setstate MAX_Thermostat_Bad 2023-10-30 09:12:17 lastcmd desiredTemperature auto/boost
setstate MAX_Thermostat_Bad 2023-10-30 09:12:16 mode auto
setstate MAX_Thermostat_Bad 2023-10-30 09:12:12 msgcnt 3
setstate MAX_Thermostat_Bad 2023-10-30 09:12:16 panel unlocked
setstate MAX_Thermostat_Bad 2023-10-30 08:30:22 peerIDs 000000
setstate MAX_Thermostat_Bad 2023-10-30 08:30:22 peerList Broadcast
setstate MAX_Thermostat_Bad 2023-10-30 09:12:16 rferror 0
setstate MAX_Thermostat_Bad 2023-10-30 09:12:17 state 19.0
setstate MAX_Thermostat_Bad 2023-10-30 08:30:22 temperature 20.1
setstate MAX_Thermostat_Bad 2023-10-21 00:59:26 testresult 255
setstate MAX_Thermostat_Bad 2023-10-30 09:12:16 valveposition 0
setstate MAX_Thermostat_Bad 2023-10-19 10:12:47 weekprofile-0-Sat-temp 17.0 °C  /  18.0 °C  /  17.0 °C
setstate MAX_Thermostat_Bad 2023-10-19 10:12:47 weekprofile-0-Sat-time 00:00-10:00  /  10:00-17:00  /  17:00-24:00
setstate MAX_Thermostat_Bad 2023-10-19 10:12:47 weekprofile-1-Sun-temp 17.0 °C  /  18.0 °C  /  17.0 °C
setstate MAX_Thermostat_Bad 2023-10-19 10:12:47 weekprofile-1-Sun-time 00:00-10:00  /  10:00-17:00  /  17:00-24:00
setstate MAX_Thermostat_Bad 2023-10-19 10:12:47 weekprofile-2-Mon-temp 17.0 °C  /  19.0 °C  /  17.0 °C
setstate MAX_Thermostat_Bad 2023-10-19 10:12:47 weekprofile-2-Mon-time 00:00-08:30  /  08:30-14:00  /  14:00-24:00
setstate MAX_Thermostat_Bad 2023-10-19 10:12:47 weekprofile-3-Tue-temp 17.0 °C  /  19.0 °C  /  17.0 °C
setstate MAX_Thermostat_Bad 2023-10-19 10:12:47 weekprofile-3-Tue-time 00:00-08:30  /  08:30-14:00  /  14:00-24:00
setstate MAX_Thermostat_Bad 2023-10-19 10:12:47 weekprofile-4-Wed-temp 17.0 °C  /  19.0 °C  /  17.0 °C
setstate MAX_Thermostat_Bad 2023-10-19 10:12:47 weekprofile-4-Wed-time 00:00-08:30  /  08:30-14:00  /  14:00-24:00
setstate MAX_Thermostat_Bad 2023-10-19 10:12:47 weekprofile-5-Thu-temp 17.0 °C  /  19.0 °C  /  17.0 °C
setstate MAX_Thermostat_Bad 2023-10-19 10:12:47 weekprofile-5-Thu-time 00:00-08:30  /  08:30-14:00  /  14:00-24:00
setstate MAX_Thermostat_Bad 2023-10-19 10:12:47 weekprofile-6-Fri-temp 17.0 °C  /  19.0 °C  /  17.0 °C
setstate MAX_Thermostat_Bad 2023-10-19 10:12:47 weekprofile-6-Fri-time 00:00-08:30  /  08:30-14:00  /  14:00-24:00


Ich bin mir sehr sicher, dass das nicht einfach out-of-the-box funktioniert. Im Forum habe ich folgendes gefunden: https://forum.fhem.de/index.php?topic=32602.msg252137#msg252137

Mir erscheint das aber bisschen viel Quellcode zu sein für eine Hardware, die nur eine Funktion hat.
Gibt es eine einfache Möglichkeit folgendes zu realisieren:

- EcoTaster AUTO gedrückt: Alle Thermostate in AUTO
- EcoTaster ECO gedrückt: Alle Thermostate auf 17° (oder Eco, wenn es da einen Unterschied gibt)

Vielleicht einen one-liner?
Danke für eure Hilfe :)

Wzut

a. du benötigst ein notify das auf die beiden Möglichkeiten ECO und AUTO bzw onoff 0/1 reagiert und dann deine WTs bzw. HTs schaltet.

b. bitte verschiebe den Thread ins MAX Unterforum
Maintainer der Module: MAX, MPD, UbiquitiMP, UbiquitiOut, SIP, BEOK, readingsWatcher

-kw

Hi Wzut,

danke dir vielmals für deine Antwort. Thread ist verschoben.

Habe nun folgendes vollbracht:

define MAX_EcoTaster_Auto notify MaxEcoButton:* {\
fhem (\
"set MAX_Thermostat_Arbeitszimmer desiredTemperature auto;;\
set telegram_bot message EcoTaster AUTO"\
) if (\
Value("MaxEcoButton") eq "opened"\
)\
}
attr MAX_EcoTaster_Auto disabledAfterTrigger 2
attr MAX_EcoTaster_Auto room _Technik->EcoTaster,_Technik->MAX
#   CFGFN     
#   DEF        MaxEcoButton:* {
# fhem (
# "set MAX_Thermostat_Arbeitszimmer desiredTemperature auto;
# set telegram_bot message EcoTaster AUTO"
# ) if (
# Value("MaxEcoButton") eq "opened"
# )
#}
#   FUUID      653f98e7-f33f-86c0-70bc-189e9dacf317270d
#   NAME       MAX_EcoTaster_Auto
#   NOTIFYDEV  MaxEcoButton
#   NR         12103
#   NTFY_ORDER 50-MAX_EcoTaster_Dummy
#   REGEXP     MaxEcoButton:*
#   STATE      2023-10-30 13:33:51
#   TRIGGERTIME 1698669231.86124
#   TYPE       notify
#   eventCount 21
#   READINGS:
#     2023-10-30 13:31:09   state           active
#     2023-10-30 13:33:51   triggeredByDev  MaxEcoButton
#     2023-10-30 13:33:51   triggeredByEvent opened
#
setstate MAX_EcoTaster_Auto 2023-10-30 13:33:51
setstate MAX_EcoTaster_Auto 2023-10-30 13:31:09 state active
setstate MAX_EcoTaster_Auto 2023-10-30 13:33:51 triggeredByDev MaxEcoButton
setstate MAX_EcoTaster_Auto 2023-10-30 13:33:51 triggeredByEvent opened


Ironischerweise bekomme ich die Telegrambenachrichtung, das Thermostat ändert sich aber nicht. Im Eventmonitor sehe ich folgendes:

2023-10-30 13:33:51.868 MAX MAX_Thermostat_Arbeitszimmer lastcmd: set_desiredTemperature 0
2023-10-30 13:34:03.023 MAX MAX_Thermostat_Arbeitszimmer valveposition: 0
2023-10-30 13:34:03.023 MAX MAX_Thermostat_Arbeitszimmer 17.0
2023-10-30 13:34:03.023 MAX MAX_Thermostat_Arbeitszimmer desiredTemperature: 17.0
2023-10-30 13:34:03.023 MAX MAX_Thermostat_Arbeitszimmer RSSI: -65
2023-10-30 13:34:03.023 MAX MAX_Thermostat_Arbeitszimmer battery: ok
2023-10-30 13:34:03.023 MAX MAX_Thermostat_Arbeitszimmer batteryState: ok
2023-10-30 13:34:03.023 MAX MAX_Thermostat_Arbeitszimmer rferror: 0
2023-10-30 13:34:03.023 MAX MAX_Thermostat_Arbeitszimmer gateway: 1
2023-10-30 13:34:03.023 MAX MAX_Thermostat_Arbeitszimmer mode: manual
2023-10-30 13:34:03.023 MAX MAX_Thermostat_Arbeitszimmer panel: unlocked
2023-10-30 13:34:03.422 MAX MAX_Thermostat_Arbeitszimmer lastcmd: desiredTemperature 17.0
2023-10-30 13:34:03.422 MAX MAX_Thermostat_Arbeitszimmer 17.0

Erkennst du einen Fehler? Aus fhem heraus lässt sich das Thermostat nicht schalten. Bisher lief das über das Wochenprogramm.

define MAX_Thermostat_Arbeitszimmer MAX HeatingThermostat 117d4c
attr MAX_Thermostat_Arbeitszimmer IODev Max1
attr MAX_Thermostat_Arbeitszimmer model HeatingThermostat
attr MAX_Thermostat_Arbeitszimmer room _Arbeitszimmer,_Technik->Thermostate
#   DEF        HeatingThermostat 117d4c
#   FUUID      5dd80a64-f33f-86c0-cc84-3047d0987417115c
#   FVERSION   10_MAX.pm:v2.0.0-s23517/2021-01-13
#   IODev      Max1
#   LASTInputDev Max1
#   MSGCNT     91
#   Max1_MSGCNT 91
#   Max1_TIME  2023-10-30 13:34:03
#   NAME       MAX_Thermostat_Arbeitszimmer
#   NR         79
#   NTFY_ORDER 50-MAX_Thermostat_Arbeitszimmer
#   STATE      17.0
#   SVN        23517
#   TYPE       MAX
#   TimeSlot   2
#   addr       117d4c
#   devtype    1
#   eventCount 243
#   type       HeatingThermostat
#   webCmd     desiredTemperature
#   READINGS:
#     2023-10-30 00:03:06   IODev           Max1
#     2023-10-18 14:40:19   PairedTo        342516
#     2023-10-30 13:34:03   RSSI            -65
#     2023-10-18 14:40:19   SerialNr        LEQ1264637
#     2023-10-30 13:34:03   battery         ok
#     2023-10-30 13:34:03   batteryState    ok
#     2023-10-30 13:34:03   desiredTemperature 17.0
#     2023-10-30 13:08:27   deviation       4.8
#     2023-10-30 12:57:35   ecoTemperature  17
#     2023-10-30 12:57:35   error           invalid or missing value  for READING ecoTemperature
#     2023-10-18 14:40:19   firmware        1.0
#     2023-10-30 13:34:03   gateway         1
#     2023-04-05 14:20:37   groupid         0
#     2023-10-30 03:03:52   lastTimeSync    2023-10-30 03:03:52
#     2023-10-30 13:34:03   lastcmd         desiredTemperature 17.0
#     2023-10-30 13:34:03   mode            manual
#     2023-10-30 13:33:51   msgcnt          105
#     2023-10-30 13:34:03   panel           unlocked
#     2023-10-30 13:08:27   peerIDs         000000
#     2023-10-30 13:08:27   peerList        Broadcast
#     2023-10-30 13:34:03   rferror         0
#     2023-10-30 13:34:03   state           17.0
#     2023-10-30 13:08:27   temperature     21.8
#     2023-10-18 14:40:19   testresult      160
#     2023-10-30 13:34:03   valveposition   0
#     2023-10-19 09:57:11   weekprofile-0-Sat-temp 17.0 °C
#     2023-10-19 09:57:11   weekprofile-0-Sat-time 00:00-24:00
#     2023-10-19 09:57:11   weekprofile-1-Sun-temp 17.0 °C
#     2023-10-19 09:57:11   weekprofile-1-Sun-time 00:00-24:00
#     2023-10-19 09:57:11   weekprofile-2-Mon-temp 17.0 °C  /  20.0 °C  /  17.0 °C
#     2023-10-19 09:57:11   weekprofile-2-Mon-time 00:00-08:30  /  08:30-14:00  /  14:00-24:00
#     2023-10-19 09:57:11   weekprofile-3-Tue-temp 17.0 °C  /  20.0 °C  /  17.0 °C
#     2023-10-19 09:57:11   weekprofile-3-Tue-time 00:00-08:30  /  08:30-14:00  /  14:00-24:00
#     2023-10-19 09:57:11   weekprofile-4-Wed-temp 17.0 °C  /  20.0 °C  /  17.0 °C
#     2023-10-19 09:57:11   weekprofile-4-Wed-time 00:00-08:30  /  08:30-14:00  /  14:00-24:00
#     2023-10-19 09:57:11   weekprofile-5-Thu-temp 17.0 °C  /  20.0 °C  /  17.0 °C
#     2023-10-19 09:57:11   weekprofile-5-Thu-time 00:00-08:30  /  08:30-14:00  /  14:00-24:00
#     2023-10-19 09:57:11   weekprofile-6-Fri-temp 17.0 °C  /  20.0 °C  /  17.0 °C
#     2023-10-19 09:57:11   weekprofile-6-Fri-time 00:00-08:30  /  08:30-14:00  /  14:00-24:00
#   helper:
#     io:
#       CUL868:
#         raw        Z0EEC0202117D4C3425160001190022
#         rssi       -65
#         time       1698669243.01146
#
setstate MAX_Thermostat_Arbeitszimmer 17.0
setstate MAX_Thermostat_Arbeitszimmer 2023-10-30 13:34:03 .lastact 1698669243.41531
setstate MAX_Thermostat_Arbeitszimmer 2023-10-19 09:57:11 .weekProfile 45204520452045204520452045204520452045204520452045204520452045204520452045204520452045204520452045204520446650a845204520452045204520452045204520452045204520446650a845204520452045204520452045204520452045204520446650a845204520452045204520452045204520452045204520446650a845204520452045204520452045204520452045204520446650a845204520452045204520452045204520452045204520
setstate MAX_Thermostat_Arbeitszimmer 2023-10-30 00:03:06 IODev Max1
setstate MAX_Thermostat_Arbeitszimmer 2023-10-18 14:40:19 PairedTo 342516
setstate MAX_Thermostat_Arbeitszimmer 2023-10-30 13:34:03 RSSI -65
setstate MAX_Thermostat_Arbeitszimmer 2023-10-18 14:40:19 SerialNr LEQ1264637
setstate MAX_Thermostat_Arbeitszimmer 2023-10-30 13:34:03 battery ok
setstate MAX_Thermostat_Arbeitszimmer 2023-10-30 13:34:03 batteryState ok
setstate MAX_Thermostat_Arbeitszimmer 2023-10-30 13:34:03 desiredTemperature 17.0
setstate MAX_Thermostat_Arbeitszimmer 2023-10-30 13:08:27 deviation 4.8
setstate MAX_Thermostat_Arbeitszimmer 2023-10-30 12:57:35 ecoTemperature 17
setstate MAX_Thermostat_Arbeitszimmer 2023-10-30 12:57:35 error invalid or missing value  for READING ecoTemperature
setstate MAX_Thermostat_Arbeitszimmer 2023-10-18 14:40:19 firmware 1.0
setstate MAX_Thermostat_Arbeitszimmer 2023-10-30 13:34:03 gateway 1
setstate MAX_Thermostat_Arbeitszimmer 2023-04-05 14:20:37 groupid 0
setstate MAX_Thermostat_Arbeitszimmer 2023-10-30 03:03:52 lastTimeSync 2023-10-30 03:03:52
setstate MAX_Thermostat_Arbeitszimmer 2023-10-30 13:34:03 lastcmd desiredTemperature 17.0
setstate MAX_Thermostat_Arbeitszimmer 2023-10-30 13:34:03 mode manual
setstate MAX_Thermostat_Arbeitszimmer 2023-10-30 13:33:51 msgcnt 105
setstate MAX_Thermostat_Arbeitszimmer 2023-10-30 13:34:03 panel unlocked
setstate MAX_Thermostat_Arbeitszimmer 2023-10-30 13:08:27 peerIDs 000000
setstate MAX_Thermostat_Arbeitszimmer 2023-10-30 13:08:27 peerList Broadcast
setstate MAX_Thermostat_Arbeitszimmer 2023-10-30 13:34:03 rferror 0
setstate MAX_Thermostat_Arbeitszimmer 2023-10-30 13:34:03 state 17.0
setstate MAX_Thermostat_Arbeitszimmer 2023-10-30 13:08:27 temperature 21.8
setstate MAX_Thermostat_Arbeitszimmer 2023-10-18 14:40:19 testresult 160
setstate MAX_Thermostat_Arbeitszimmer 2023-10-30 13:34:03 valveposition 0
setstate MAX_Thermostat_Arbeitszimmer 2023-10-19 09:57:11 weekprofile-0-Sat-temp 17.0 °C
setstate MAX_Thermostat_Arbeitszimmer 2023-10-19 09:57:11 weekprofile-0-Sat-time 00:00-24:00
setstate MAX_Thermostat_Arbeitszimmer 2023-10-19 09:57:11 weekprofile-1-Sun-temp 17.0 °C
setstate MAX_Thermostat_Arbeitszimmer 2023-10-19 09:57:11 weekprofile-1-Sun-time 00:00-24:00
setstate MAX_Thermostat_Arbeitszimmer 2023-10-19 09:57:11 weekprofile-2-Mon-temp 17.0 °C  /  20.0 °C  /  17.0 °C
setstate MAX_Thermostat_Arbeitszimmer 2023-10-19 09:57:11 weekprofile-2-Mon-time 00:00-08:30  /  08:30-14:00  /  14:00-24:00
setstate MAX_Thermostat_Arbeitszimmer 2023-10-19 09:57:11 weekprofile-3-Tue-temp 17.0 °C  /  20.0 °C  /  17.0 °C
setstate MAX_Thermostat_Arbeitszimmer 2023-10-19 09:57:11 weekprofile-3-Tue-time 00:00-08:30  /  08:30-14:00  /  14:00-24:00
setstate MAX_Thermostat_Arbeitszimmer 2023-10-19 09:57:11 weekprofile-4-Wed-temp 17.0 °C  /  20.0 °C  /  17.0 °C
setstate MAX_Thermostat_Arbeitszimmer 2023-10-19 09:57:11 weekprofile-4-Wed-time 00:00-08:30  /  08:30-14:00  /  14:00-24:00
setstate MAX_Thermostat_Arbeitszimmer 2023-10-19 09:57:11 weekprofile-5-Thu-temp 17.0 °C  /  20.0 °C  /  17.0 °C
setstate MAX_Thermostat_Arbeitszimmer 2023-10-19 09:57:11 weekprofile-5-Thu-time 00:00-08:30  /  08:30-14:00  /  14:00-24:00
setstate MAX_Thermostat_Arbeitszimmer 2023-10-19 09:57:11 weekprofile-6-Fri-temp 17.0 °C  /  20.0 °C  /  17.0 °C
setstate MAX_Thermostat_Arbeitszimmer 2023-10-19 09:57:11 weekprofile-6-Fri-time 00:00-08:30  /  08:30-14:00  /  14:00-24:00


-kw

Tja, was soll ich sagen, ich habe fhem neu gestartet, dann ging es :D

Ganz lieben Dank! =)

Wzut

schön das es nun geht, allerdings zwei Dinge die mir persönlich nicht gefallen an deinem notify :
a. warum lässt du bei alle Events des Tasters durch um dann im Ausführungsteil dich auf state opened zu beschränken ?
MaxEcoButton:* -> Value("MaxEcoButton") eq "opened"
Ich hätte direkt auf onoff 1 bzw 0 getriggert und den ganzen if Teil eingespart

b. Warum der Wechsel von FHEM nach Perl um dann von Perl direkt wieder zu FHEM zu wechseln ?
{ -> fhem( statt ohne Klammern direkt set MAX_Thermostat_Arbeitszimmer desiredTemperature auto
vermutlich wegen dem if Zweig ?
Maintainer der Module: MAX, MPD, UbiquitiMP, UbiquitiOut, SIP, BEOK, readingsWatcher

-kw

Das habe ich so umständlich gebaut, da es die einzig mir bekannte funktionierende Notation ist :D
Hinter das if hat sich im Laufe des Tages noch ein else gefunden :)

MaxEcoButton:* {
    if (Value("MaxEcoButton") eq "opened") {
        fhem (
            "set MAX_Thermostat_Arbeitszimmer desiredTemperature auto;
            set MAX_Thermostat_Wohnzimmer desiredTemperature auto;
            set MAX_Thermostat_Bad desiredTemperature auto;
            set telegram_bot message EcoTaster AUTO"
        )
    } else {
        fhem (
            "set MAX_Thermostat_Arbeitszimmer desiredTemperature eco;
            set MAX_Thermostat_Wohnzimmer desiredTemperature eco;
            set MAX_Thermostat_Bad desiredTemperature eco;
            set telegram_bot message EcoTaster ECO"
        )
    }
}

Wenn es dafür eine einfachere Lösung gibt - ich lerne gerne dazu :)

Wzut

Zitat von: -kw am 30 Oktober 2023, 22:50:11Wenn es dafür eine einfachere Lösung gibt
also ich würde :
1. den Taster erweitern :
attr MaxEcoButton event-on-change-reading .*
attr MaxEcoButton eventMap closed:eco opened:auto
eventMap sorgt dafür das STATE nicht mehr opened/close hat sondern direkt auto bzw eco was den nächsten Schritt (notify) wesentlich simpler macht.
Zum einen im Trigger und zum andern im Ausführungsteil.

2. dann kann das notify so ausschauen :
define MAX_EcoTaster_Auto notify MaxEcoButton:(auto|eco) set MAX_Thermostat_Arbeitszimmer,MAX_Thermostat_Wohnzimmer,MAX_Thermostat_Bad desiredTemperature $EVTPART0;;set telegram_bot message EcoTaster $EVTPART0
kein if/else Geschüttel , kein Wechsel FHEM->perl->FHEM und das ganze als Einzeiler :)
Maintainer der Module: MAX, MPD, UbiquitiMP, UbiquitiOut, SIP, BEOK, readingsWatcher

Nuems

8)
Cool. Nicht gefragt und trotzdem genau die Antwort, die ich brauche. :)

-kw

@Wzut:
Sorry, habe deine Antwort jetzt erst gesehen... :(

Super, baue ich so ein, danke dir! =)