[gelöst] gecko intouch2 Poolsteuerung

Begonnen von dyna, 22 April 2024, 18:06:45

Vorheriges Thema - Nächstes Thema

dyna

Moin Zusammen,

ich bin gerade dabei meine ersten Schritte mit MQTT zu gehen und komme jetzt nicht weiter.
Die Steuerung eines Whirlpools habe ich wie hier https://github.com/kalinrow/geckoclient beschrieben erledigt.
In FHEM habe ich den internen MQTT2-Server aktiviert.
Hier das Listing
define MQTT_Broker MQTT2_SERVER 1883 global
attr MQTT_Broker autocreate complex
attr MQTT_Broker group Core
attr MQTT_Broker icon mqtt_text
attr MQTT_Broker room Netz
attr MQTT_Broker sortby 04
#   CONNECTS   21
#   Clients    :MQTT2_DEVICE:MQTT_GENERIC_BRIDGE:
#   ClientsKeepOrder 1
#   DEF        1883 global
#   FD         21
#   FUUID      662677fd-f33f-a551-3080-e4a7735c9fe78b38
#   NAME       MQTT_Broker
#   NR         642
#   PORT       1883
#   STATE      Initialized
#   TYPE       MQTT2_SERVER
#   eventCount 41
#   MatchList:
#     1:MQTT2_DEVICE ^.
#     2:MQTT_GENERIC_BRIDGE ^.
#   READINGS:
#     2024-04-22 17:37:26   nrclients       1
#     2024-04-22 17:31:53   state           Initialized
#   clients:
#     MQTT_Broker_192.168.67.17_52785 1
#   retain:
#
setstate MQTT_Broker 2024-04-22 17:37:26 nrclients 1
setstate MQTT_Broker 2024-04-22 17:31:53 state Initialized

Das Device wurde automatisch angelegt
define Whirlpool MQTT2_DEVICE geckoclient
attr Whirlpool readingList geckoclient:whirlpool/blowers/state:.* { json2nameValue($EVENT, 'state_', $JSONMAP) }\
geckoclient:whirlpool/filter_status/state:.* { json2nameValue($EVENT, 'state_', $JSONMAP) }\
geckoclient:whirlpool/water_heater/state:.* { json2nameValue($EVENT, 'state_', $JSONMAP) }\
geckoclient:whirlpool/lights/state:.* { json2nameValue($EVENT, 'state_', $JSONMAP) }\
geckoclient:whirlpool/pumps/state:.* { json2nameValue($EVENT, 'state_', $JSONMAP) }\
geckoclient:whirlpool/water_care/state:.* { json2nameValue($EVENT, 'state_', $JSONMAP) }\
geckoclient:whirlpool/ozone_mode/state:.* { json2nameValue($EVENT, 'state_', $JSONMAP) }\
geckoclient:whirlpool/smart_winter_mode/state:.* { json2nameValue($EVENT, 'state_', $JSONMAP) }\
geckoclient:whirlpool/reminders/state:.* { json2nameValue($EVENT, 'state_', $JSONMAP) }
attr Whirlpool room Draussen->Pool
#   CFGFN     
#   CID        geckoclient
#   DEF        geckoclient
#   FUUID      6626843a-f33f-a551-43f6-eafaed6274b101f5
#   IODev      MQTT_Broker
#   LASTInputDev MQTT_Broker
#   MQTT_Broker_CONN MQTT_Broker_192.168.67.17_52785
#   MQTT_Broker_MSGCNT 54
#   MQTT_Broker_TIME 2024-04-22 18:03:55
#   MSGCNT     54
#   NAME       Whirlpool
#   NR         650
#   STATE      ???
#   TYPE       MQTT2_DEVICE
#   eventCount 64
#   READINGS:
#     2024-04-22 17:37:30   IODev           MQTT_Broker
#     2024-04-22 17:37:30   state_Blower    OFF
#     2024-04-22 18:03:55   state_ChangeWater 64
#     2024-04-22 18:03:55   state_CheckSpa  704
#     2024-04-22 17:37:30   state_Circulating_Pump ON
#     2024-04-22 18:03:55   state_CleanFilter 34
#     2024-04-22 17:37:30   state_Filter_Status_Clean true
#     2024-04-22 17:37:30   state_Filter_Status_Purge false
#     2024-04-22 17:37:30   state_Lights    OFF
#     2024-04-22 17:37:30   state_Ozone_Mode off
#     2024-04-22 17:37:30   state_Pump_1    OFF
#     2024-04-22 17:37:30   state_Pump_2    OFF
#     2024-04-22 18:03:55   state_RinseFilter 4
#     2024-04-22 17:37:30   state_Smart_Winter_Mode_Active false
#     2024-04-22 17:37:30   state_Smart_Winter_Mode_Risk no
#     2024-04-22 18:03:55   state_Time      22.04.2024, 18:03:55
#     2024-04-22 17:37:30   state_Waterfall ON
#     2024-04-22 17:37:30   state_current_operation Cooling
#     2024-04-22 17:37:30   state_current_temperature 37.0
#     2024-04-22 17:37:30   state_mode      1
#     2024-04-22 17:37:30   state_mode_txt_ Standard
#     2024-04-22 17:37:30   state_modes_1_text Away From Home
#     2024-04-22 17:37:30   state_modes_1_value 0
#     2024-04-22 17:37:30   state_modes_2_text Standard
#     2024-04-22 17:37:30   state_modes_2_value 1
#     2024-04-22 17:37:30   state_modes_3_text Energy Saving
#     2024-04-22 17:37:30   state_modes_3_value 2
#     2024-04-22 17:37:30   state_modes_4_text Super Energy Saving
#     2024-04-22 17:37:30   state_modes_4_value 3
#     2024-04-22 17:37:30   state_modes_5_text Weekender
#     2024-04-22 17:37:30   state_modes_5_value 4
#     2024-04-22 17:37:30   state_real_target_temperature 30.0
#     2024-04-22 17:37:30   state_target_temperature 30.0
#     2024-04-22 17:37:30   state_temperature_unit °C
#   hmccu:
#
setstate Whirlpool 2024-04-22 17:37:30 IODev MQTT_Broker
setstate Whirlpool 2024-04-22 17:37:30 state_Blower OFF
setstate Whirlpool 2024-04-22 18:03:55 state_ChangeWater 64
setstate Whirlpool 2024-04-22 18:03:55 state_CheckSpa 704
setstate Whirlpool 2024-04-22 17:37:30 state_Circulating_Pump ON
setstate Whirlpool 2024-04-22 18:03:55 state_CleanFilter 34
setstate Whirlpool 2024-04-22 17:37:30 state_Filter_Status_Clean true
setstate Whirlpool 2024-04-22 17:37:30 state_Filter_Status_Purge false
setstate Whirlpool 2024-04-22 17:37:30 state_Lights OFF
setstate Whirlpool 2024-04-22 17:37:30 state_Ozone_Mode off
setstate Whirlpool 2024-04-22 17:37:30 state_Pump_1 OFF
setstate Whirlpool 2024-04-22 17:37:30 state_Pump_2 OFF
setstate Whirlpool 2024-04-22 18:03:55 state_RinseFilter 4
setstate Whirlpool 2024-04-22 17:37:30 state_Smart_Winter_Mode_Active false
setstate Whirlpool 2024-04-22 17:37:30 state_Smart_Winter_Mode_Risk no
setstate Whirlpool 2024-04-22 18:03:55 state_Time 22.04.2024, 18:03:55
setstate Whirlpool 2024-04-22 17:37:30 state_Waterfall ON
setstate Whirlpool 2024-04-22 17:37:30 state_current_operation Cooling
setstate Whirlpool 2024-04-22 17:37:30 state_current_temperature 37.0
setstate Whirlpool 2024-04-22 17:37:30 state_mode 1
setstate Whirlpool 2024-04-22 17:37:30 state_mode_txt_ Standard
setstate Whirlpool 2024-04-22 17:37:30 state_modes_1_text Away From Home
setstate Whirlpool 2024-04-22 17:37:30 state_modes_1_value 0
setstate Whirlpool 2024-04-22 17:37:30 state_modes_2_text Standard
setstate Whirlpool 2024-04-22 17:37:30 state_modes_2_value 1
setstate Whirlpool 2024-04-22 17:37:30 state_modes_3_text Energy Saving
setstate Whirlpool 2024-04-22 17:37:30 state_modes_3_value 2
setstate Whirlpool 2024-04-22 17:37:30 state_modes_4_text Super Energy Saving
setstate Whirlpool 2024-04-22 17:37:30 state_modes_4_value 3
setstate Whirlpool 2024-04-22 17:37:30 state_modes_5_text Weekender
setstate Whirlpool 2024-04-22 17:37:30 state_modes_5_value 4
setstate Whirlpool 2024-04-22 17:37:30 state_real_target_temperature 30.0
setstate Whirlpool 2024-04-22 17:37:30 state_target_temperature 30.0
setstate Whirlpool 2024-04-22 17:37:30 state_temperature_unit °C


Jetzt komme ich leider nicht mehr weiter, da ich nicht weiß welches eine passendes Template ist oder was ich machen muss, falls es dieses Template noch nicht gibt.

Insbesondere weiß ich nicht wie ich die Set-Befehle umsetzen kann

Since version 0.6.x the SPA is controlled by only one control topic %prefix%/control. The message has been transferred into a JSON string. The different items can be controlled as following
Item         JSON String                             Comment
Lights         {"lights":"off|on"}    
Temperature {"temp":TEMP}                             TEMP is in steps of 0.5
Pumps         {"pump":"off|low|high","number":PUMPNUMBER} Not all SPA support 'low' value
Blower         {"blower":"off|high"}    
Watercare   {"watercare":"MODE"}                     See below for possible MODE values
Refresh All {"refresh":"all"}    

Watercare mode is one of the values below (you can use either the integer or the string value):

    0 = "Away From Home"
    1 = "Standard"
    2 = "Energy Saving"
    3 = "Super Energy Saving"
    4 = "Weekender"


Viele Grüße
Jens

dyna

Moin Zusammen,

ich habs selbst rausgefunden.

setList mit
temperature whirlpool/control {"temp":$EVTPART1}\
pump whirlpool/control {"pump":"$EVTPART2","number":$EVTPART1}

passt für mich.

Temperatur und Pumpen sind so über fhem steuerbar.

Grüße
Jens

whoopigoldberg

Zitat von: dyna am 23 April 2024, 09:54:04Moin Zusammen,

ich habs selbst rausgefunden.

setList mit
temperature whirlpool/control {"temp":$EVTPART1}\
pump whirlpool/control {"pump":"$EVTPART2","number":$EVTPART1}

passt für mich.

Temperatur und Pumpen sind so über fhem steuerbar.

Grüße
Jens

Thank you for sharing, I was also facing this problem and now I found the solution from you