Bestway LayZSpar Wirlpool

Begonnen von Tueftler1983, 11 Mai 2024, 23:53:16

Vorheriges Thema - Nächstes Thema

Tueftler1983

Das hatte ich immer "überlesen" was mir aufgefallen war war lazy statt layz
Zitat von: Christian83 am 12 Mai 2024, 18:04:42Okay. Habe ich nicht gesehen. Dann kann ich dir leider nicht weiterhelfen.

Deswegen war mir das r nicht aufgefallen, Auber auch ohne das bekomme ich es nicht hin

Christian83

Hi,

Kannst du denn überhaupt Daten auslesen?
Also kommt vom Gerät überhaupt was an deinem MQTT_Device an?

Tueftler1983

Ja Daten bekomme ich, ich habe jetzt im Spa Modul die Client-ID und Basic-Tropic umbenannt von Lay-Z-Spa Modul in spa

Da Fhem in der setlist auf jeden Fall ein Problem mit dem LEERZEICHEN hatte.

Bringt mich aber immer noch nicht weiter.

Internals:
   CFGFN     
   CID        spa
   DEF        spa
   FUUID      66423127-f33f-91a4-d07a-0166d68976c8990a
   IODev      MQTT2_FHEM_Server
   LASTInputDev MQTT2_FHEM_Server
   MQTT2_FHEM_Server_CONN MQTT2_FHEM_Server_192.168.2.150_50192
   MQTT2_FHEM_Server_MSGCNT 39
   MQTT2_FHEM_Server_TIME 2024-05-13 18:16:31
   MSGCNT     39
   NAME       MQTT2_spa
   NR         5510
   STATE      1:0
2:0
3:0
4:0
29 °C
   TYPE       MQTT2_DEVICE
   eventCount 89
   READINGS:
     2024-05-13 18:16:31   AIR             0
     2024-05-13 18:16:31   AIRTIME         5642
     2024-05-13 18:16:31   AMB             40
     2024-05-13 18:16:31   AMBC            40
     2024-05-13 18:16:31   AMBF            104
     2024-05-13 18:16:31   BRT             6
     2024-05-13 18:16:31   CH1             32
     2024-05-13 18:16:31   CH2             50
     2024-05-13 18:16:31   CH3             57
     2024-05-13 18:16:31   CLINT           14
     2024-05-13 18:16:31   CLTIME          1715250060
     2024-05-13 18:16:31   CONTENT         OTHER
     2024-05-13 18:16:31   COST            11.13430691
     2024-05-13 18:16:31   DBG              192 1 254 183 254 223 254 9 255 245 255 good pkt:0
     2024-05-13 18:16:31   ERR             0
     2024-05-13 18:16:31   FINT            30
     2024-05-13 18:16:31   FLT             0
     2024-05-13 18:16:31   FTIME           1715250056
     2024-05-13 18:16:31   FW              2024-04-27-001
     2024-05-13 18:16:31   GOD             0
     2024-05-13 18:16:31   GRN             0
     2024-05-13 18:16:31   HASGOD          false
     2024-05-13 18:16:31   HASJETS         false
     2024-05-13 18:16:31   HEATINGTIME     73531
     2024-05-13 18:16:31   HJT             0
     2024-05-13 17:26:31   IODev           MQTT2_FHEM_Server
     2024-05-13 18:16:31   IP              192.168.2.150
     2024-05-13 18:16:31   JETTIME         0
     2024-05-13 18:16:31   KWH             41.23817062
     2024-05-13 18:16:31   KWHD            41.24728535
     2024-05-13 18:16:31   LCK             1
     2024-05-13 17:26:32   MAC_Address     CC:50:E3:6B:70:30
     2024-05-13 18:16:31   MODEL           MIAMI2021
     2024-05-13 18:16:31   MQTT            0
     2024-05-13 17:26:32   MQTT_Connect_Count 9
     2024-05-13 18:16:31   PUMPTIME        88837
     2024-05-13 18:16:31   PWR             1
     2024-05-13 18:16:31   RED             0
     2024-05-13 18:16:31   RS              Not ready
     2024-05-13 18:16:31   RSSI            -68
     2024-05-13 18:16:31   SSID            GartenAP
     2024-05-13 17:26:31   Status          Alive
     2024-05-13 18:16:31   T2R             4.905910015
     2024-05-13 18:16:31   TGT             39
     2024-05-13 18:16:31   TGTC            39
     2024-05-13 18:16:31   TGTF            102
     2024-05-13 18:16:31   TIME            1715616990
     2024-05-13 18:16:31   TMP             29
     2024-05-13 18:16:31   TMPC            29
     2024-05-13 18:16:31   TMPF            84
     2024-05-13 18:16:31   UNT             1
     2024-05-13 18:16:31   UPTIME          340722
     2024-05-13 18:16:31   VTM             31.0423317
     2024-05-13 18:16:31   VTMC            31.0423317
     2024-05-13 18:16:31   VTMF            87.87619781
     2024-05-13 18:16:31   WATT            2
     2024-05-13 17:27:25   act_t           spa/message
     2024-05-13 17:27:25   act_tpl         {% if value_json.RED == 1 %}heating{% elif value_json.GRN == 1 %}idle{% elif value_json.FLT == 1 %}fan{% else %}off{% endif %}
     2024-05-13 17:27:20   assumed_state   0
     2024-05-13 17:27:25   avty_t          spa/Status
     2024-05-13 17:26:33   button          NOBTN
     2024-05-13 17:27:23   cmd_t           spa/command
     2024-05-13 17:26:38   cmd_tpl         {CMD:12,VALUE:{{ value | int }},XTIME:0,INTERVAL:0}
     2024-05-13 17:27:25   curr_temp_t     spa/message
     2024-05-13 17:27:25   curr_temp_tpl   {{ value_json.TMPF }}
     2024-05-13 17:27:23   dev_cla         restart
     2024-05-13 17:27:25   dev_configuration_url http://192.168.2.150
     2024-05-13 17:27:25   dev_connections_1_1 mac
     2024-05-13 17:27:25   dev_connections_1_2 CC:50:E3:6B:70:30
     2024-05-13 17:27:25   dev_identifiers 7041072
     2024-05-13 17:27:25   dev_manufacturer Visualapproach
     2024-05-13 17:27:25   dev_model       MIAMI2021
     2024-05-13 17:27:25   dev_name        spa WiFi controller
     2024-05-13 17:27:25   dev_sw_version  2024-04-27-001
     2024-05-13 17:27:20   expire_after    700
     2024-05-13 17:27:23   icon            mdi:restart
     2024-05-13 18:16:31   loopfq          463130
     2024-05-13 17:26:38   max             8
     2024-05-13 17:27:25   max_temp        104
     2024-05-13 17:26:38   min             0
     2024-05-13 17:27:25   min_temp        68
     2024-05-13 17:26:38   mode            slider
     2024-05-13 17:27:25   mode_cmd_t      spa/command_batch
     2024-05-13 17:27:25   mode_cmd_tpl    [{CMD:3,VALUE:{%if value == "heat" %}1{% else %}0{% endif %},XTIME:0,INTERVAL:0},{CMD:4,VALUE:{%if value == "fan_only" %}1{% elif value == "heat" %}1{% else %}0{% endif %},XTIME:0,INTERVAL:0}]
     2024-05-13 17:27:25   mode_stat_t     spa/message
     2024-05-13 17:27:25   mode_stat_tpl   {% if value_json.RED == 1 %}heat{% elif value_json.GRN == 1 %}heat{% else %}off{% endif %}
     2024-05-13 17:27:25   modes_1         fan_only
     2024-05-13 17:27:25   modes_2         off
     2024-05-13 17:27:25   modes_3         heat
     2024-05-13 17:27:25   name            spa temperature control
     2024-05-13 17:27:23   payload_press   {CMD:6,VALUE:true,XTIME:0,INTERVAL:0}
     2024-05-13 17:27:25   pl_avail        Alive
     2024-05-13 17:27:25   pl_not_avail    Dead
     2024-05-13 17:27:20   pl_off          {CMD:17,VALUE:false,XTIME:0,INTERVAL:0}
     2024-05-13 17:27:20   pl_on           {CMD:17,VALUE:true,XTIME:0,INTERVAL:0}
     2024-05-13 17:27:25   precision       1
     2024-05-13 17:26:32   reboot_reason   Power On
     2024-05-13 17:26:32   reboot_time     2024-05-11 09:44:01Z
     2024-05-13 17:27:20   stat_t          spa/message
     2024-05-13 17:26:52   state_class     measurement
     2024-05-13 17:27:20   state_off       0
     2024-05-13 17:27:20   state_on        1
     2024-05-13 17:29:03   subscriptions   spa/command spa/command_batch
     2024-05-13 17:27:25   temp_cmd_t      spa/command
     2024-05-13 17:27:25   temp_cmd_tpl    {CMD:0,VALUE:{{ value|int }},XTIME:0,INTERVAL:0}
     2024-05-13 17:27:25   temp_stat_t     spa/message
     2024-05-13 17:27:25   temp_stat_tpl   {{ value_json.TGTF }}
     2024-05-13 17:27:25   temp_unit       F
     2024-05-13 17:27:25   uniq_id         climate.spa_climate7041072
     2024-05-13 17:27:13   unit_of_meas    °C
     2024-05-13 17:27:20   val_tpl         {{ value_json.GOD }}
Attributes:
   devStateIcon 2.1:water-heat@orange
2.0:water-heat@red
3.0:water-heat@red
3.1:water-heat@green
1.1:sani_domestic_waterworks@green
1.0:sani_domestic_waterworks@red
4.0:vent_ventilation_level_0@red
4.1:vent_ventilation_level_100@green
   readingList spa:spa/Status:.* Status
spa:spa/MAC_Address:.* MAC_Address
spa:spa/MQTT_Connect_Count:.* MQTT_Connect_Count
spa:spa/reboot_time:.* reboot_time
spa:spa/reboot_reason:.* reboot_reason
spa:spa/button:.* button
spa:spa/message:.* { json2nameValue($EVENT) }
spa:spa/times:.* { json2nameValue($EVENT) }
spa:spa/other:.* { json2nameValue($EVENT) }
spa:homeassistant/number/spa_brightness/config:.* { json2nameValue($EVENT) }
spa:homeassistant/sensor/spa_pressed_button/config:.* { json2nameValue($EVENT) }
spa:homeassistant/sensor/spa_reboot_time/config:.* { json2nameValue($EVENT) }
spa:homeassistant/sensor/spa_reboot_reason/config:.* { json2nameValue($EVENT) }
spa:homeassistant/sensor/spa_ssid/config:.* { json2nameValue($EVENT) }
spa:homeassistant/sensor/spa_rssi/config:.* { json2nameValue($EVENT) }
spa:homeassistant/sensor/spa_ip/config:.* { json2nameValue($EVENT) }
spa:homeassistant/sensor/spa_connect_count/config:.* { json2nameValue($EVENT) }
spa:homeassistant/sensor/spa_error/config:.* { json2nameValue($EVENT) }
spa:homeassistant/sensor/spa_time_to_ready/config:.* { json2nameValue($EVENT) }
spa:homeassistant/sensor/spa_rs/config:.* { json2nameValue($EVENT) }
spa:homeassistant/sensor/spa_energy/config:.* { json2nameValue($EVENT) }
spa:homeassistant/sensor/spa_today/config:.* { json2nameValue($EVENT) }
spa:homeassistant/sensor/spa_power/config:.* { json2nameValue($EVENT) }
spa:homeassistant/sensor/spa_chlorine_age/config:.* { json2nameValue($EVENT) }
spa:homeassistant/sensor/spa_filter_age/config:.* { json2nameValue($EVENT) }
spa:homeassistant/sensor/spa_uptime/config:.* { json2nameValue($EVENT) }
spa:homeassistant/sensor/spa_pumptime/config:.* { json2nameValue($EVENT) }
spa:homeassistant/sensor/spa_heatertime/config:.* { json2nameValue($EVENT) }
spa:homeassistant/sensor/spa_airtime/config:.* { json2nameValue($EVENT) }
spa:homeassistant/sensor/spa_temperature_f/config:.* { json2nameValue($EVENT) }
spa:homeassistant/sensor/spa_temp_c/config:.* { json2nameValue($EVENT) }
spa:homeassistant/sensor/spa_virtualtemp_f/config:.* { json2nameValue($EVENT) }
spa:homeassistant/sensor/spa_virtualtemp_c/config:.* { json2nameValue($EVENT) }
spa:homeassistant/sensor/spa_target_temp_f/config:.* { json2nameValue($EVENT) }
spa:homeassistant/sensor/spa_target_temp_c/config:.* { json2nameValue($EVENT) }
spa:homeassistant/sensor/spa_amb_temp_c/config:.* { json2nameValue($EVENT) }
spa:homeassistant/binary_sensor/spa_lock/config:.* { json2nameValue($EVENT) }
spa:homeassistant/binary_sensor/spa_heater/config:.* { json2nameValue($EVENT) }
spa:homeassistant/binary_sensor/spa_ready/config:.* { json2nameValue($EVENT) }
spa:homeassistant/binary_sensor/spa_connection/config:.* { json2nameValue($EVENT) }
spa:homeassistant/switch/spa_heat_regulation/config:.* { json2nameValue($EVENT) }
spa:homeassistant/switch/spa_jets/config:.* { json2nameValue($EVENT) }
spa:homeassistant/switch/spa_airbubbles/config:.* { json2nameValue($EVENT) }
spa:homeassistant/switch/spa_pump/config:.* { json2nameValue($EVENT) }
spa:homeassistant/switch/spa_temperature_unit/config:.* { json2nameValue($EVENT) }
spa:homeassistant/switch/spa_take_ctrl/config:.* { json2nameValue($EVENT) }
spa:homeassistant/button/spa_reset_chlorine/config:.* { json2nameValue($EVENT) }
spa:homeassistant/button/spa_reset_filter/config:.* { json2nameValue($EVENT) }
spa:homeassistant/button/spa_restart_esp/config:.* { json2nameValue($EVENT) }
spa:homeassistant/climate/spa_climate/config:.* { json2nameValue($EVENT) }
   room       MQTT2_DEVICE
   stateFormat 1:FLT
2:RED
3:GRN
4:AIR
TMP °C

Tueftler1983

Das ist der aktuelle Versuch der nicht klappt
off:noArg  spa/layzspa/command/ {   "CMD": 2,   "VALUE": 0,   "XTIME": 0,   "INTERVAL": 0 }
on:noArg  spa/layzspa/command/ {   "CMD": 2,   "VALUE": 1,   "XTIME": 0,   "INTERVAL": 0 }

Beta-User

Da du ja scheinbar https://forum.fhem.de/index.php?msg=1313120 gelesen hast: Warum setzt du das dann nur zum Teil um? (Der homeassistant-Teil ist in FHEM nur nervtötend!)

Und warum nimmst du nicht 1:1 das, was sich aus "subscriptions" ergibt?
bubbles:0,1 spa/command {"CMD": 2, "VALUE": $EVTPART1, "XTIME": 0, "INTERVAL": 0}
Server: HP-elitedesk@Debian 12, aktuelles FHEM@ConfigDB | CUL_HM (VCCU) | MQTT2: MiLight@ESP-GW, BT@OpenMQTTGw | MySensors: seriell, v.a. 2.3.1@RS485 | ZWave | ZigBee@deCONZ | SIGNALduino | MapleCUN | RHASSPY
svn: u.a MySensors, Weekday-&RandomTimer, Twilight,  div. attrTemplate-files

Tueftler1983

Tatsächlich habe ich es Grade nach deinem Hinweis gelesen, das wie ich die Homeassistent Sachen raus bekomme gucke ich mir an auch wie man das jetzt mit den subscriptions macht.

Bin grade unterwegs und gucke gleich weiter.
Aber danke schön mal.

Tueftler1983

#21
So konnte nun etwas testen zwar nur vom Handy aber bin soweit ganz zufrieden.
define MQTT2_spa MQTT2_DEVICE spa
attr MQTT2_spa devStateIcon 2.1:water-heat@orange:heat+0\
2.0:water-heat@red:heat+1\
3.0:water-heat@red:heat+1\
3.1:water-heat@green:heat+0\
1.1:sani_domestic_waterworks@green:pump+0\
1.0:sani_domestic_waterworks@red:pump+1\
4.0:vent_ventilation_level_0@red:bubbles+1\
4.1:vent_ventilation_level_3@green:bubbles+0
attr MQTT2_spa readingList spa:spa/Status:.* Status\
spa:spa/MAC_Address:.* MAC_Address\
spa:spa/MQTT_Connect_Count:.* MQTT_Connect_Count\
spa:spa/reboot_time:.* reboot_time\
spa:spa/reboot_reason:.* reboot_reason\
spa:spa/button:.* button\
spa:spa/message:.* { json2nameValue($EVENT) }\
spa:spa/times:.* { json2nameValue($EVENT) }\
spa:spa/other:.* { json2nameValue($EVENT) }\

attr MQTT2_spa room MQTT2_DEVICE
attr MQTT2_spa setList bubbles:0,1 spa/command {"CMD": 2, "VALUE": $EVTPART1, "XTIME": 0, "INTERVAL": 0}\
pump:0,1 spa/command {"CMD": 4, "VALUE": $EVTPART1, "XTIME": 0, "INTERVAL": 0}\
heat:0,1 spa/command {"CMD": 3, "VALUE": $EVTPART1, "XTIME": 0, "INTERVAL": 0}\

attr MQTT2_spa stateFormat 1:FLT\
2:RED\
3:GRN\
4:AIR\
TMP °C
#  CFGFN     
#  CID        spa
#  DEF        spa
#  FUUID      66423127-f33f-91a4-d07a-0166d68976c8990a
#  IODev      MQTT2_FHEM_Server
#  LASTInputDev MQTT2_FHEM_Server
#  MQTT2_FHEM_Server_CONN MQTT2_FHEM_Server_192.168.2.150_50192
#  MQTT2_FHEM_Server_MSGCNT 234
#  MQTT2_FHEM_Server_TIME 2024-05-13 22:19:17
#  MSGCNT    234
#  NAME      MQTT2_spa
#  NR        5510
#  STATE      1:1
#2:0
#3:0
#4:0
#29 °C
#  TYPE      MQTT2_DEVICE
#  eventCount 315
#  READINGS:
#    2024-05-13 22:19:16  AIR            0
#    2024-05-13 22:19:17  AIRTIME        5868
#    2024-05-13 22:19:16  AMB            40
#    2024-05-13 22:19:16  AMBC            40
#    2024-05-13 22:19:16  AMBF            104
#    2024-05-13 22:19:16  BRT            6
#    2024-05-13 22:19:16  CH1            32
#    2024-05-13 22:19:16  CH2            50
#    2024-05-13 22:19:16  CH3            57
#    2024-05-13 22:19:17  CLINT          14
#    2024-05-13 22:19:17  CLTIME          1715250060
#    2024-05-13 22:19:17  CONTENT        OTHER
#    2024-05-13 22:19:17  COST            11.15837669
#    2024-05-13 22:19:17  DBG              192 1 254 183 254 223 254 1 255 247 255 good pkt:0
#    2024-05-13 22:19:16  ERR            0
#    2024-05-13 22:19:17  FINT            30
#    2024-05-13 22:19:16  FLT            1
#    2024-05-13 22:19:17  FTIME          1715250056
#    2024-05-13 22:19:17  FW              2024-04-27-001
#    2024-05-13 22:19:16  GOD            0
#    2024-05-13 22:19:16  GRN            0
#    2024-05-13 22:19:17  HASGOD          false
#    2024-05-13 22:19:17  HASJETS        false
#    2024-05-13 22:19:17  HEATINGTIME    73570
#    2024-05-13 22:19:16  HJT            0
#    2024-05-13 22:13:43  IODev          MQTT2_FHEM_Server
#    2024-05-13 22:19:17  IP              192.168.2.150
#    2024-05-13 22:19:17  JETTIME        0
#    2024-05-13 22:19:17  KWH            41.3273201
#    2024-05-13 22:19:17  KWHD            41.33725281
#    2024-05-13 22:19:16  LCK            0
#    2024-05-13 17:26:32  MAC_Address    CC:50:E3:6B:70:30
#    2024-05-13 22:19:17  MODEL          MIAMI2021
#    2024-05-13 22:19:17  MQTT            0
#    2024-05-13 17:26:32  MQTT_Connect_Count 9
#    2024-05-13 22:19:17  PUMPTIME        89760
#    2024-05-13 22:19:16  PWR            1
#    2024-05-13 22:19:16  RED            0
#    2024-05-13 22:19:17  RS              Not ready
#    2024-05-13 22:19:17  RSSI            -66
#    2024-05-13 22:19:17  SSID            GartenAP
#    2024-05-13 17:26:31  Status          Alive
#    2024-05-13 22:19:17  T2R            5.510149956
#    2024-05-13 22:19:16  TGT            39
#    2024-05-13 22:19:16  TGTC            39
#    2024-05-13 22:19:16  TGTF            102
#    2024-05-13 22:19:17  TIME            1715631556
#    2024-05-13 22:19:16  TMP            29
#    2024-05-13 22:19:16  TMPC            29
#    2024-05-13 22:19:16  TMPF            84
#    2024-05-13 22:19:16  UNT            1
#    2024-05-13 22:19:17  UPTIME          355285
#    2024-05-13 22:19:16  VTM            29.98999977
#    2024-05-13 22:19:16  VTMC            29.98999977
#    2024-05-13 22:19:16  VTMF            85.98200226
#    2024-05-13 22:19:17  WATT            42
#    2024-05-13 17:27:25  act_t          spa/message
#    2024-05-13 17:27:25  act_tpl        {% if value_json.RED == 1 %}heating{% elif value_json.GRN == 1 %}idle{% elif value_json.FLT == 1 %}fan{% else %}off{% endif %}
#    2024-05-13 17:27:20  assumed_state  0
#    2024-05-13 17:27:25  avty_t          spa/Status
#    2024-05-13 17:26:33  button          NOBTN
#    2024-05-13 17:27:23  cmd_t          spa/command
#    2024-05-13 17:26:38  cmd_tpl        {CMD:12,VALUE:{{ value | int }},XTIME:0,INTERVAL:0}
#    2024-05-13 17:27:25  curr_temp_t    spa/message
#    2024-05-13 17:27:25  curr_temp_tpl  {{ value_json.TMPF }}
#    2024-05-13 17:27:23  dev_cla        restart
#    2024-05-13 17:27:25  dev_configuration_url http://192.168.2.150
#    2024-05-13 17:27:25  dev_connections_1_1 mac
#    2024-05-13 17:27:25  dev_connections_1_2 CC:50:E3:6B:70:30
#    2024-05-13 17:27:25  dev_identifiers 7041072
#    2024-05-13 17:27:25  dev_manufacturer Visualapproach
#    2024-05-13 17:27:25  dev_model      MIAMI2021
#    2024-05-13 17:27:25  dev_name        spa WiFi controller
#    2024-05-13 17:27:25  dev_sw_version  2024-04-27-001
#    2024-05-13 17:27:20  expire_after    700
#    2024-05-13 17:27:23  icon            mdi:restart
#    2024-05-13 22:19:17  loopfq          3064
#    2024-05-13 17:26:38  max            8
#    2024-05-13 17:27:25  max_temp        104
#    2024-05-13 17:26:38  min            0
#    2024-05-13 17:27:25  min_temp        68
#    2024-05-13 17:26:38  mode            slider
#    2024-05-13 17:27:25  mode_cmd_t      spa/command_batch
#    2024-05-13 17:27:25  mode_cmd_tpl    [{CMD:3,VALUE:{%if value == "heat" %}1{% else %}0{% endif %},XTIME:0,INTERVAL:0},{CMD:4,VALUE:{%if value == "fan_only" %}1{% elif value == "heat" %}1{% else %}0{% endif %},XTIME:0,INTERVAL:0}]
#    2024-05-13 17:27:25  mode_stat_t    spa/message
#    2024-05-13 17:27:25  mode_stat_tpl  {% if value_json.RED == 1 %}heat{% elif value_json.GRN == 1 %}heat{% else %}off{% endif %}
#    2024-05-13 17:27:25  modes_1        fan_only
#    2024-05-13 17:27:25  modes_2        off
#    2024-05-13 17:27:25  modes_3        heat
#    2024-05-13 17:27:25  name            spa temperature control
#    2024-05-13 17:27:23  payload_press  {CMD:6,VALUE:true,XTIME:0,INTERVAL:0}
#    2024-05-13 17:27:25  pl_avail        Alive
#    2024-05-13 17:27:25  pl_not_avail    Dead
#    2024-05-13 17:27:20  pl_off          {CMD:17,VALUE:false,XTIME:0,INTERVAL:0}
#    2024-05-13 17:27:20  pl_on          {CMD:17,VALUE:true,XTIME:0,INTERVAL:0}
#    2024-05-13 17:27:25  precision      1
#    2024-05-13 17:26:32  reboot_reason  Power On
#    2024-05-13 17:26:32  reboot_time    2024-05-11 09:44:01Z
#    2024-05-13 17:27:20  stat_t          spa/message
#    2024-05-13 22:19:15  state          bubbles
#    2024-05-13 17:26:52  state_class    measurement
#    2024-05-13 17:27:20  state_off      0
#    2024-05-13 17:27:20  state_on        1
#    2024-05-13 22:13:43  subscriptions  spa/command spa/command_batch
#    2024-05-13 17:27:25  temp_cmd_t      spa/command
#    2024-05-13 17:27:25  temp_cmd_tpl    {CMD:0,VALUE:{{ value|int }},XTIME:0,INTERVAL:0}
#    2024-05-13 17:27:25  temp_stat_t    spa/message
#    2024-05-13 17:27:25  temp_stat_tpl  {{ value_json.TGTF }}
#    2024-05-13 17:27:25  temp_unit      F
#    2024-05-13 17:27:25  uniq_id        climate.spa_climate7041072
#    2024-05-13 17:27:13  unit_of_meas    °C
#    2024-05-13 17:27:20  val_tpl        {{ value_json.GOD }}
#
setstate MQTT2_spa 1:1\
2:0\
3:0\
4:0\
29 °C
setstate MQTT2_spa 2024-05-13 22:19:16 AIR 0
setstate MQTT2_spa 2024-05-13 22:19:17 AIRTIME 5868
setstate MQTT2_spa 2024-05-13 22:19:16 AMB 40
setstate MQTT2_spa 2024-05-13 22:19:16 AMBC 40
setstate MQTT2_spa 2024-05-13 22:19:16 AMBF 104
setstate MQTT2_spa 2024-05-13 22:19:16 BRT 6
setstate MQTT2_spa 2024-05-13 22:19:16 CH1 32
setstate MQTT2_spa 2024-05-13 22:19:16 CH2 50
setstate MQTT2_spa 2024-05-13 22:19:16 CH3 57
setstate MQTT2_spa 2024-05-13 22:19:17 CLINT 14
setstate MQTT2_spa 2024-05-13 22:19:17 CLTIME 1715250060
setstate MQTT2_spa 2024-05-13 22:19:17 CONTENT OTHER
setstate MQTT2_spa 2024-05-13 22:19:17 COST 11.15837669
setstate MQTT2_spa 2024-05-13 22:19:17 DBG  192 1 254 183 254 223 254 1 255 247 255 good pkt:0
setstate MQTT2_spa 2024-05-13 22:19:16 ERR 0
setstate MQTT2_spa 2024-05-13 22:19:17 FINT 30
setstate MQTT2_spa 2024-05-13 22:19:16 FLT 1
setstate MQTT2_spa 2024-05-13 22:19:17 FTIME 1715250056
setstate MQTT2_spa 2024-05-13 22:19:17 FW 2024-04-27-001
setstate MQTT2_spa 2024-05-13 22:19:16 GOD 0
setstate MQTT2_spa 2024-05-13 22:19:16 GRN 0
setstate MQTT2_spa 2024-05-13 22:19:17 HASGOD false
setstate MQTT2_spa 2024-05-13 22:19:17 HASJETS false
setstate MQTT2_spa 2024-05-13 22:19:17 HEATINGTIME 73570
setstate MQTT2_spa 2024-05-13 22:19:16 HJT 0
setstate MQTT2_spa 2024-05-13 22:13:43 IODev MQTT2_FHEM_Server
setstate MQTT2_spa 2024-05-13 22:19:17 IP 192.168.2.150
setstate MQTT2_spa 2024-05-13 22:19:17 JETTIME 0
setstate MQTT2_spa 2024-05-13 22:19:17 KWH 41.3273201
setstate MQTT2_spa 2024-05-13 22:19:17 KWHD 41.33725281
setstate MQTT2_spa 2024-05-13 22:19:16 LCK 0
setstate MQTT2_spa 2024-05-13 17:26:32 MAC_Address CC:50:E3:6B:70:30
setstate MQTT2_spa 2024-05-13 22:19:17 MODEL MIAMI2021
setstate MQTT2_spa 2024-05-13 22:19:17 MQTT 0
setstate MQTT2_spa 2024-05-13 17:26:32 MQTT_Connect_Count 9
setstate MQTT2_spa 2024-05-13 22:19:17 PUMPTIME 89760
setstate MQTT2_spa 2024-05-13 22:19:16 PWR 1
setstate MQTT2_spa 2024-05-13 22:19:16 RED 0
setstate MQTT2_spa 2024-05-13 22:19:17 RS Not ready
setstate MQTT2_spa 2024-05-13 22:19:17 RSSI -66
setstate MQTT2_spa 2024-05-13 22:19:17 SSID GartenAP
setstate MQTT2_spa 2024-05-13 17:26:31 Status Alive
setstate MQTT2_spa 2024-05-13 22:19:17 T2R 5.510149956
setstate MQTT2_spa 2024-05-13 22:19:16 TGT 39
setstate MQTT2_spa 2024-05-13 22:19:16 TGTC 39
setstate MQTT2_spa 2024-05-13 22:19:16 TGTF 102
setstate MQTT2_spa 2024-05-13 22:19:17 TIME 1715631556
setstate MQTT2_spa 2024-05-13 22:19:16 TMP 29
setstate MQTT2_spa 2024-05-13 22:19:16 TMPC 29
setstate MQTT2_spa 2024-05-13 22:19:16 TMPF 84
setstate MQTT2_spa 2024-05-13 22:19:16 UNT 1
setstate MQTT2_spa 2024-05-13 22:19:17 UPTIME 355285
setstate MQTT2_spa 2024-05-13 22:19:16 VTM 29.98999977
setstate MQTT2_spa 2024-05-13 22:19:16 VTMC 29.98999977
setstate MQTT2_spa 2024-05-13 22:19:16 VTMF 85.98200226
setstate MQTT2_spa 2024-05-13 22:19:17 WATT 42
setstate MQTT2_spa 2024-05-13 17:27:25 act_t spa/message
setstate MQTT2_spa 2024-05-13 17:27:25 act_tpl {% if value_json.RED == 1 %}heating{% elif value_json.GRN == 1 %}idle{% elif value_json.FLT == 1 %}fan{% else %}off{% endif %}
setstate MQTT2_spa 2024-05-13 17:27:20 assumed_state 0
setstate MQTT2_spa 2024-05-13 17:27:25 avty_t spa/Status
setstate MQTT2_spa 2024-05-13 17:26:33 button NOBTN
setstate MQTT2_spa 2024-05-13 17:27:23 cmd_t spa/command
setstate MQTT2_spa 2024-05-13 17:26:38 cmd_tpl {CMD:12,VALUE:{{ value | int }},XTIME:0,INTERVAL:0}
setstate MQTT2_spa 2024-05-13 17:27:25 curr_temp_t spa/message
setstate MQTT2_spa 2024-05-13 17:27:25 curr_temp_tpl {{ value_json.TMPF }}
setstate MQTT2_spa 2024-05-13 17:27:23 dev_cla restart
setstate MQTT2_spa 2024-05-13 17:27:25 dev_configuration_url http://192.168.2.150
setstate MQTT2_spa 2024-05-13 17:27:25 dev_connections_1_1 mac
setstate MQTT2_spa 2024-05-13 17:27:25 dev_connections_1_2 CC:50:E3:6B:70:30
setstate MQTT2_spa 2024-05-13 17:27:25 dev_identifiers 7041072
setstate MQTT2_spa 2024-05-13 17:27:25 dev_manufacturer Visualapproach
setstate MQTT2_spa 2024-05-13 17:27:25 dev_model MIAMI2021
setstate MQTT2_spa 2024-05-13 17:27:25 dev_name spa WiFi controller
setstate MQTT2_spa 2024-05-13 17:27:25 dev_sw_version 2024-04-27-001
setstate MQTT2_spa 2024-05-13 17:27:20 expire_after 700
setstate MQTT2_spa 2024-05-13 17:27:23 icon mdi:restart
setstate MQTT2_spa 2024-05-13 22:19:17 loopfq 3064
setstate MQTT2_spa 2024-05-13 17:26:38 max 8
setstate MQTT2_spa 2024-05-13 17:27:25 max_temp 104
setstate MQTT2_spa 2024-05-13 17:26:38 min 0
setstate MQTT2_spa 2024-05-13 17:27:25 min_temp 68
setstate MQTT2_spa 2024-05-13 17:26:38 mode slider
setstate MQTT2_spa 2024-05-13 17:27:25 mode_cmd_t spa/command_batch
setstate MQTT2_spa 2024-05-13 17:27:25 mode_cmd_tpl [{CMD:3,VALUE:{%if value == "heat" %}1{% else %}0{% endif %},XTIME:0,INTERVAL:0},{CMD:4,VALUE:{%if value == "fan_only" %}1{% elif value == "heat" %}1{% else %}0{% endif %},XTIME:0,INTERVAL:0}]
setstate MQTT2_spa 2024-05-13 17:27:25 mode_stat_t spa/message
setstate MQTT2_spa 2024-05-13 17:27:25 mode_stat_tpl {% if value_json.RED == 1 %}heat{% elif value_json.GRN == 1 %}heat{% else %}off{% endif %}
setstate MQTT2_spa 2024-05-13 17:27:25 modes_1 fan_only
setstate MQTT2_spa 2024-05-13 17:27:25 modes_2 off
setstate MQTT2_spa 2024-05-13 17:27:25 modes_3 heat
setstate MQTT2_spa 2024-05-13 17:27:25 name spa temperature control
setstate MQTT2_spa 2024-05-13 17:27:23 payload_press {CMD:6,VALUE:true,XTIME:0,INTERVAL:0}
setstate MQTT2_spa 2024-05-13 17:27:25 pl_avail Alive
setstate MQTT2_spa 2024-05-13 17:27:25 pl_not_avail Dead
setstate MQTT2_spa 2024-05-13 17:27:20 pl_off {CMD:17,VALUE:false,XTIME:0,INTERVAL:0}
setstate MQTT2_spa 2024-05-13 17:27:20 pl_on {CMD:17,VALUE:true,XTIME:0,INTERVAL:0}
setstate MQTT2_spa 2024-05-13 17:27:25 precision 1
setstate MQTT2_spa 2024-05-13 17:26:32 reboot_reason Power On
setstate MQTT2_spa 2024-05-13 17:26:32 reboot_time 2024-05-11 09:44:01Z
setstate MQTT2_spa 2024-05-13 17:27:20 stat_t spa/message
setstate MQTT2_spa 2024-05-13 22:19:15 state bubbles
setstate MQTT2_spa 2024-05-13 17:26:52 state_class measurement
setstate MQTT2_spa 2024-05-13 17:27:20 state_off 0
setstate MQTT2_spa 2024-05-13 17:27:20 state_on 1
setstate MQTT2_spa 2024-05-13 22:13:43 subscriptions spa/command spa/command_batch
setstate MQTT2_spa 2024-05-13 17:27:25 temp_cmd_t spa/command
setstate MQTT2_spa 2024-05-13 17:27:25 temp_cmd_tpl {CMD:0,VALUE:{{ value|int }},XTIME:0,INTERVAL:0}
setstate MQTT2_spa 2024-05-13 17:27:25 temp_stat_t spa/message
setstate MQTT2_spa 2024-05-13 17:27:25 temp_stat_tpl {{ value_json.TGTF }}
setstate MQTT2_spa 2024-05-13 17:27:25 temp_unit F
setstate MQTT2_spa 2024-05-13 17:27:25 uniq_id climate.spa_climate7041072
setstate MQTT2_spa 2024-05-13 17:27:13 unit_of_meas °C
setstate MQTT2_spa 2024-05-13 17:27:20 val_tpl {{ value_json.GOD }}


Man kann die icons anklicken um den Zustand zu wechseln
Du darfst diesen Dateianhang nicht ansehen.
Was mir noch nicht gefällt ist:
1. Das man 0 und 1 auswählen muss oder halt set spa bubbles 1
Anstatt
set spa bubbles on
2. Das ich 2 Icons für die Heizung habe da es 2 Readings für die Heizung gibt,
"RED" 0 = Heizung aus, oder Soll Temperatur erreicht
"RED" 1 = Heizung an aber noch nicht Soll Temperatur
"GRN" 0 Heizung aus, oder Soll Temperatur noch nicht erreicht
"GRN" 1 Heizung an und Soll Temperatur erreicht
Da hätte ich lieber 1 Icon
Rot aus
Orange an und Soll Temperatur noch nicht erreicht
Grün Soll Temperatur erreicht
3. Das on Off rechts neben den Icons

Tueftler1983

So weiterer Fortschritt,
Problem 3 ist gelöst. Habe da jetzt einen Slider um die Soll Temperatur einzustellen.
Hätte diesen zwar gerne unter den Icons aber das geht wohl nicht im devStateIcon/StateFormat
Du darfst diesen Dateianhang nicht ansehen.

Tueftler1983

So zusätzlich kann jetzt die Umgebungstemperatur "AMBC" gesetzt werden. Bei mir geschieht das via Doif mit einem Oregon Funk Temperatur sender. Dies dient zur internen Berechnung im Wirlpool Modul.

Beta-User

Zitat von: Tueftler1983 am 13 Mai 2024, 23:31:48Hätte diesen zwar gerne unter den Icons aber das geht wohl nicht im devStateIcon/StateFormat
Geht schon, aber man müßte es komplett in Perl notieren. Falls (!) du Code suchst: die sonos-Geschichte ist vermutlich das am weitesten in diese Richtung fortgeschrittene Beispiel, das mir grade einfällt.

ZitatWas mir noch nicht gefällt ist:
 1. Das man 0 und 1 auswählen muss oder halt set spa bubbles 1
Anstatt
set spa bubbles on
2. Das ich 2 Icons für die Heizung habe da es 2 Readings für die Heizung gibt,
"RED" 0 = Heizung aus, oder Soll Temperatur erreicht
"RED" 1 = Heizung an aber noch nicht Soll Temperatur
"GRN" 0 Heizung aus, oder Soll Temperatur noch nicht erreicht
"GRN" 1 Heizung an und Soll Temperatur erreicht
Da hätte ich lieber 1 Icon
Rot aus
Orange an und Soll Temperatur noch nicht erreicht
Grün Soll Temperatur erreicht
ad 1:
a) Vermutlich sollte der setter "AIR" heißen, das scheint jedenfalls das Reading zu sein, das rückwärts dazu kommt.
b) Man kann das schon von "0" nach "off" mappen etc.. Ist dann halt Nacharbeit in Sende- und Empfangsrichtung (Perl...)

ad 2: auch das ließe sich mit Perl-devStateIcon-Code lösen. Ist halt die Frage, ob es dir den Aufwand wert ist...
Server: HP-elitedesk@Debian 12, aktuelles FHEM@ConfigDB | CUL_HM (VCCU) | MQTT2: MiLight@ESP-GW, BT@OpenMQTTGw | MySensors: seriell, v.a. 2.3.1@RS485 | ZWave | ZigBee@deCONZ | SIGNALduino | MapleCUN | RHASSPY
svn: u.a MySensors, Weekday-&RandomTimer, Twilight,  div. attrTemplate-files

Tueftler1983

Ne mit perl mag ich mich nicht noch auseinander setzen, denke es ist so auch schon ein gut brauchbares Device geworden.

Kann man dies anderen als Templates zur Verfügung stellen?

Tueftler1983

#26
Das ist also mein Endergebnis

define MQTT2_spa MQTT2_DEVICE spa
attr MQTT2_spa devStateIcon 2.1:water-heat@orange:heat+0\
2.0:water-heat@red:heat+1\
3.0:water-heat@red:heat+1\
3.1:water-heat@green:heat+0\
1.1:sani_domestic_waterworks@green:pump+0\
1.0:sani_domestic_waterworks@red:pump+1\
4.0:vent_ventilation_level_0@red:bubbles+1\
4.1:vent_ventilation_level_3@green:bubbles+0\
attr MQTT2_spa readingList spa:spa/Status:.* Status\
spa:spa/MAC_Address:.* MAC_Address\
spa:spa/MQTT_Connect_Count:.* MQTT_Connect_Count\
spa:spa/reboot_time:.* reboot_time\
spa:spa/reboot_reason:.* reboot_reason\
spa:spa/button:.* button\
spa:spa/message:.* { json2nameValue($EVENT) }\
spa:spa/times:.* { json2nameValue($EVENT) }\
spa:spa/other:.* { json2nameValue($EVENT) }\

attr MQTT2_spa readingList spa:spa/message:.* { json2nameValue($EVENT) }\
spa:spa/times:.* { json2nameValue($EVENT) }\
spa:spa/other:.* { json2nameValue($EVENT) }
attr MQTT2_spa room MQTT2_DEVICE
attr MQTT2_spa setList bubbles:0,1 spa/command {"CMD": 2, "VALUE": $EVTPART1, "XTIME": 0, "INTERVAL": 0}\
pump:0,1 spa/command {"CMD": 4, "VALUE": $EVTPART1, "XTIME": 0, "INTERVAL": 0}\
heat:0,1 spa/command {"CMD": 3, "VALUE": $EVTPART1, "XTIME": 0, "INTERVAL": 0}\
TGT:slider,20,1,40 spa/command {"CMD": 0, "VALUE": $EVTPART1, "XTIME": 0, "INTERVAL": 0}
attr MQTT2_spa stateFormat 1:FLT\
2:RED\
3:GRN\
4:AIR\
TMP °C\
attr MQTT2_spa webCmd TGT
#   CID        spa
#   DEF        spa
#   FUUID      66423127-f33f-91a4-d07a-0166d68976c8990a
#   IODev      MQTT2_FHEM_Server
#   LASTInputDev MQTT2_FHEM_Server
#   MQTT2_FHEM_Server_CONN MQTT2_FHEM_Server_192.168.2.150_59235
#   MQTT2_FHEM_Server_MSGCNT 1062
#   MQTT2_FHEM_Server_TIME 2024-05-17 17:48:34
#   MSGCNT     1062
#   NAME       MQTT2_spa
#   NR         652
#   STATE      1:0
#2:0
#3:0
#4:0
#19 °C
#attr MQTT2_spa webCmd 39
#   TYPE       MQTT2_DEVICE
#   eventCount 1074
#   READINGS:
#     2024-05-17 17:48:34   AIR             0
#     2024-05-17 17:48:34   AIRTIME         5910
#     2024-05-17 17:48:34   AMB             14
#     2024-05-17 17:48:34   AMBC            14
#     2024-05-17 17:48:34   AMBF            57
#     2024-05-17 17:48:34   BRT             4
#     2024-05-17 17:48:34   CH1             101
#     2024-05-17 17:48:34   CH2             48
#     2024-05-17 17:48:34   CH3             50
#     2024-05-17 17:48:34   CLINT           14
#     2024-05-17 17:48:34   CLTIME          1715250060
#     2024-05-17 17:48:34   CONTENT         OTHER
#     2024-05-17 17:48:34   COST            11.22632694
#     2024-05-17 17:48:34   DBG              192 243 254 127 254 183 254 1 255 241 255 good pkt:0
#     2024-05-17 17:48:34   ERR             2
#     2024-05-17 17:48:34   FINT            30
#     2024-05-17 17:48:34   FLT             0
#     2024-05-17 17:48:34   FTIME           1715250056
#     2024-05-17 17:48:34   FW              2024-04-27-001
#     2024-05-17 17:48:34   GOD             0
#     2024-05-17 17:48:34   GRN             0
#     2024-05-17 17:48:34   HASGOD          false
#     2024-05-17 17:48:34   HASJETS         false
#     2024-05-17 17:48:34   HEATINGTIME     73597
#     2024-05-17 17:48:34   HJT             0
#     2024-05-17 16:56:52   IODev           MQTT2_FHEM_Server
#     2024-05-17 17:48:34   IP              192.168.2.150
#     2024-05-17 17:48:34   JETTIME         0
#     2024-05-17 17:48:34   KWH             41.57898712
#     2024-05-17 17:48:34   KWHD            41.5898898
#     2024-05-17 17:48:34   LCK             0
#     2024-05-17 17:48:34   MODEL           MIAMI2021
#     2024-05-17 17:48:34   MQTT            0
#     2024-05-17 17:48:34   PUMPTIME        99652
#     2024-05-17 17:48:34   PWR             1
#     2024-05-17 17:48:34   RED             0
#     2024-05-17 17:48:34   RS              Never
#     2024-05-17 17:48:34   RSSI            -68
#     2024-05-17 17:48:34   SSID            GartenAP
#     2024-05-17 17:48:34   T2R             -1
#     2024-05-17 17:48:34   TGT             39
#     2024-05-17 17:48:34   TGTC            39
#     2024-05-17 17:48:34   TGTF            102
#     2024-05-17 17:48:34   TIME            1715960891
#     2024-05-17 17:48:34   TMP             19
#     2024-05-17 17:48:34   TMPC            19
#     2024-05-17 17:48:34   TMPF            66
#     2024-05-17 17:48:34   UNT             1
#     2024-05-17 17:48:34   UPTIME          567991
#     2024-05-17 17:48:34   VTM             18.978508
#     2024-05-17 17:48:34   VTMC            18.978508
#     2024-05-17 17:48:34   VTMF            66.16131592
#     2024-05-17 17:48:34   WATT            2
#     2024-05-17 17:48:34   loopfq          309
#     2024-05-17 17:44:58   state           pump
#     2024-05-17 17:40:53   subscriptions   spa/command spa/command_batch
#
setstate MQTT2_spa 1:0\
2:0\
3:0\
4:0\
19 °C\
attr MQTT2_spa webCmd 39
setstate MQTT2_spa 2024-05-17 17:48:34 AIR 0
setstate MQTT2_spa 2024-05-17 17:48:34 AIRTIME 5910
setstate MQTT2_spa 2024-05-17 17:48:34 AMB 14
setstate MQTT2_spa 2024-05-17 17:48:34 AMBC 14
setstate MQTT2_spa 2024-05-17 17:48:34 AMBF 57
setstate MQTT2_spa 2024-05-17 17:48:34 BRT 4
setstate MQTT2_spa 2024-05-17 17:48:34 CH1 101
setstate MQTT2_spa 2024-05-17 17:48:34 CH2 48
setstate MQTT2_spa 2024-05-17 17:48:34 CH3 50
setstate MQTT2_spa 2024-05-17 17:48:34 CLINT 14
setstate MQTT2_spa 2024-05-17 17:48:34 CLTIME 1715250060
setstate MQTT2_spa 2024-05-17 17:48:34 CONTENT OTHER
setstate MQTT2_spa 2024-05-17 17:48:34 COST 11.22632694
setstate MQTT2_spa 2024-05-17 17:48:34 DBG  192 243 254 127 254 183 254 1 255 241 255 good pkt:0
setstate MQTT2_spa 2024-05-17 17:48:34 ERR 2
setstate MQTT2_spa 2024-05-17 17:48:34 FINT 30
setstate MQTT2_spa 2024-05-17 17:48:34 FLT 0
setstate MQTT2_spa 2024-05-17 17:48:34 FTIME 1715250056
setstate MQTT2_spa 2024-05-17 17:48:34 FW 2024-04-27-001
setstate MQTT2_spa 2024-05-17 17:48:34 GOD 0
setstate MQTT2_spa 2024-05-17 17:48:34 GRN 0
setstate MQTT2_spa 2024-05-17 17:48:34 HASGOD false
setstate MQTT2_spa 2024-05-17 17:48:34 HASJETS false
setstate MQTT2_spa 2024-05-17 17:48:34 HEATINGTIME 73597
setstate MQTT2_spa 2024-05-17 17:48:34 HJT 0
setstate MQTT2_spa 2024-05-17 16:56:52 IODev MQTT2_FHEM_Server
setstate MQTT2_spa 2024-05-17 17:48:34 IP 192.168.2.150
setstate MQTT2_spa 2024-05-17 17:48:34 JETTIME 0
setstate MQTT2_spa 2024-05-17 17:48:34 KWH 41.57898712
setstate MQTT2_spa 2024-05-17 17:48:34 KWHD 41.5898898
setstate MQTT2_spa 2024-05-17 17:48:34 LCK 0
setstate MQTT2_spa 2024-05-17 17:48:34 MODEL MIAMI2021
setstate MQTT2_spa 2024-05-17 17:48:34 MQTT 0
setstate MQTT2_spa 2024-05-17 17:48:34 PUMPTIME 99652
setstate MQTT2_spa 2024-05-17 17:48:34 PWR 1
setstate MQTT2_spa 2024-05-17 17:48:34 RED 0
setstate MQTT2_spa 2024-05-17 17:48:34 RS Never
setstate MQTT2_spa 2024-05-17 17:48:34 RSSI -68
setstate MQTT2_spa 2024-05-17 17:48:34 SSID GartenAP
setstate MQTT2_spa 2024-05-17 17:48:34 T2R -1
setstate MQTT2_spa 2024-05-17 17:48:34 TGT 39
setstate MQTT2_spa 2024-05-17 17:48:34 TGTC 39
setstate MQTT2_spa 2024-05-17 17:48:34 TGTF 102
setstate MQTT2_spa 2024-05-17 17:48:34 TIME 1715960891
setstate MQTT2_spa 2024-05-17 17:48:34 TMP 19
setstate MQTT2_spa 2024-05-17 17:48:34 TMPC 19
setstate MQTT2_spa 2024-05-17 17:48:34 TMPF 66
setstate MQTT2_spa 2024-05-17 17:48:34 UNT 1
setstate MQTT2_spa 2024-05-17 17:48:34 UPTIME 567991
setstate MQTT2_spa 2024-05-17 17:48:34 VTM 18.978508
setstate MQTT2_spa 2024-05-17 17:48:34 VTMC 18.978508
setstate MQTT2_spa 2024-05-17 17:48:34 VTMF 66.16131592
setstate MQTT2_spa 2024-05-17 17:48:34 WATT 2
setstate MQTT2_spa 2024-05-17 17:48:34 loopfq 309
setstate MQTT2_spa 2024-05-17 17:44:58 state pump
setstate MQTT2_spa 2024-05-17 17:40:53 subscriptions spa/command spa/command_batch


Wie wird daraus jetzt ein Template?

Beta-User

Sorry, hatte in https://forum.fhem.de/index.php?msg=1313412 geantwortet, aber m.E. wäre die weitere Diskussion hier besser aufgehoben...

Weg wäre zudem noch:
- IO-TYPE unempfindlich machen (keine CID-präfixe in readingList)
- Variablen benutzen wie DEVICE und BASETOPIC
Server: HP-elitedesk@Debian 12, aktuelles FHEM@ConfigDB | CUL_HM (VCCU) | MQTT2: MiLight@ESP-GW, BT@OpenMQTTGw | MySensors: seriell, v.a. 2.3.1@RS485 | ZWave | ZigBee@deCONZ | SIGNALduino | MapleCUN | RHASSPY
svn: u.a MySensors, Weekday-&RandomTimer, Twilight,  div. attrTemplate-files

Tueftler1983

Äää ja ich lese es, ich verstehe es auch soweit, nur weiß ich noch nicht wie ich das umzusetzen habe.

Device weiß ich glaube ich wie ich es zu machen habe und das basetropic ist ja eig genau so wie der device ame bei Auslieferung des WLAN modules gleich.

Was du hiermit meinst weiß ich nicht.
Zitat- IO-TYPE unempfindlich machen (keine CID-präfixe in readingList)
LG Holger

Beta-User

Lass uns bitte hier weiter machen...

Ad https://forum.fhem.de/index.php?msg=1313425 und deinen letzten Fragen hier:
In https://wiki.fhem.de/wiki/MQTT2_DEVICE_-_Schritt_f%C3%BCr_Schritt ist eigentlich alles (kurz) erklärt, was man braucht, und das nur in Teilen zurückzuspielen war nicht das, was ich mir erhofft hatte. "AIR" und "air" sind eben zwei Paar Stiefel und gerade kein geschlossener Kreis.

Und bitte unternimm doch gleich den Versuch, das selbst in die attrTemplate-"Sprache" zu übertragen, eine Einführung dazu gibt es ebenfalls im Wiki: https://wiki.fhem.de/wiki/AttrTemplate
Server: HP-elitedesk@Debian 12, aktuelles FHEM@ConfigDB | CUL_HM (VCCU) | MQTT2: MiLight@ESP-GW, BT@OpenMQTTGw | MySensors: seriell, v.a. 2.3.1@RS485 | ZWave | ZigBee@deCONZ | SIGNALduino | MapleCUN | RHASSPY
svn: u.a MySensors, Weekday-&RandomTimer, Twilight,  div. attrTemplate-files