Shelly Plus H&T WLAN via MQTT?

Begonnen von grappa24, 18 Juni 2024, 19:11:30

Vorheriges Thema - Nächstes Thema

grappa24

Hi,

ich überlege mir mal einen dieser neuen Temp & Feuchte Sensoren mit Display zuzulegen.

Da ich meine anderen Shellys über MQTT steuere: Gibts für den H&T bereits ein template?

Gruß,
Dieter
FHEM 6.3, 2 x RasPi 3B+, Debian Buster; KNX, FS20, HM, HUE, Tradfri, Shellies, KLF200
Rollo-/Lichtsteuerung/-szenarien, T-Sensoren, Fensterkontakte, Heizungssteuerung, HEOS, Sprachsteuerung mit Alexa-FHEM, Netatmo, Nuki, ...

grappa24

ich hab mir einen ShellyPlus H&T besorgt und seine MQTT messages aktiviert.

Er wird wie folgt automatisch in FHEM angelegt: ;D

define MQTT2_shellyplusht_e465b85f5054 MQTT2_DEVICE shellyplusht_e465b85f5054
attr MQTT2_shellyplusht_e465b85f5054 icon mqtt
attr MQTT2_shellyplusht_e465b85f5054 readingList shellyplusht_e465b85f5054:shellyplusht-e465b85f5054/online:.* online\
shellyplusht_e465b85f5054:shellyplusht-e465b85f5054/status/ble:.* ble\
shellyplusht_e465b85f5054:shellyplusht-e465b85f5054/status/cloud:.* { json2nameValue($EVENT) }\
shellyplusht_e465b85f5054:shellyplusht-e465b85f5054/status/devicepower_0:.* { json2nameValue($EVENT) }\
shellyplusht_e465b85f5054:shellyplusht-e465b85f5054/status/ht_ui:.* ht_ui\
shellyplusht_e465b85f5054:shellyplusht-e465b85f5054/status/humidity_0:.* { json2nameValue($EVENT) }\
shellyplusht_e465b85f5054:shellyplusht-e465b85f5054/status/mqtt:.* { json2nameValue($EVENT) }\
shellyplusht_e465b85f5054:shellyplusht-e465b85f5054/status/sys:.* { json2nameValue($EVENT) }\
shellyplusht_e465b85f5054:shellyplusht-e465b85f5054/status/temperature_0:.* { json2nameValue($EVENT) }\
shellyplusht_e465b85f5054:shellyplusht-e465b85f5054/status/wifi:.* { json2nameValue($EVENT) }\
shellyplusht_e465b85f5054:shellyplusht-e465b85f5054/status/ws:.* { json2nameValue($EVENT) }\
shellyplusht_e465b85f5054:shellyplusht-e465b85f5054/events/rpc:.* { json2nameValue($EVENT) }
attr MQTT2_shellyplusht_e465b85f5054 room MQTT2_DEVICE,Shelly
attr MQTT2_shellyplusht_e465b85f5054 stateFormat T: tC °C H: rh % B: battery_percent %
#   CFGFN     
#   CID        shellyplusht_e465b85f5054
#   DEF        shellyplusht_e465b85f5054
#   FUUID      667599d5-f33f-b5ae-2fb2-54e75cc3db882119
#   IODev      myBroker
#   LASTInputDev myBroker
#   MSGCNT     86
#   NAME       MQTT2_shellyplusht_e465b85f5054
#   NR         16189
#   STATE      T: 24.7 °C H: 61.7 % B: 100 %
#   TYPE       MQTT2_DEVICE
#   eventCount 98
#   myBroker_CONN myBroker_192.168.178.140_56458
#   myBroker_MSGCNT 86
#   myBroker_TIME 2024-06-21 18:03:37
#   READINGS:
#     2024-06-21 17:18:45   IODev           myBroker
#     2024-06-21 17:25:31   available_updates_stable_version 1.3.2
#     2024-06-21 18:03:35   battery_V       6.34
#     2024-06-21 18:03:35   battery_percent 100
#     2024-06-21 18:03:34   ble             {}
#     2024-06-21 18:03:35   cfg_rev         4
#     2024-06-21 18:03:35   connected       true
#     2024-06-21 18:03:36   dst             shellyplusht-e465b85f5054/events
#     2024-06-21 18:03:35   external_present false
#     2024-06-21 18:03:35   fs_free         98304
#     2024-06-21 18:03:35   fs_size         458752
#     2024-06-21 18:03:35   ht_ui           {}
#     2024-06-21 18:03:35   id              0
#     2024-06-21 18:03:35   kvs_rev         0
#     2024-06-21 18:03:35   mac             E465B85F5054
#     2024-06-21 18:03:36   method          NotifyEvent
#     2024-06-21 18:03:37   online          false
#     2024-06-21 18:03:35   params_cloud_connected false
#     2024-06-21 18:03:35   params_devicepower_0_battery_V 6.34
#     2024-06-21 18:03:35   params_devicepower_0_battery_percent 100
#     2024-06-21 18:03:35   params_devicepower_0_external_present false
#     2024-06-21 18:03:35   params_devicepower_0_id 0
#     2024-06-21 18:03:36   params_events_1_component sys
#     2024-06-21 18:03:36   params_events_1_event sleep
#     2024-06-21 18:03:36   params_events_1_ts 1718985816.84
#     2024-06-21 18:03:35   params_humidity_0_id 0
#     2024-06-21 18:03:35   params_humidity_0_rh 61.7
#     2024-06-21 18:03:35   params_mqtt_connected true
#     2024-06-21 17:25:31   params_sys_available_updates_stable_version 1.3.2
#     2024-06-21 18:03:35   params_sys_cfg_rev 4
#     2024-06-21 18:03:35   params_sys_fs_free 98304
#     2024-06-21 18:03:35   params_sys_fs_size 458752
#     2024-06-21 18:03:35   params_sys_kvs_rev 0
#     2024-06-21 18:03:35   params_sys_mac  E465B85F5054
#     2024-06-21 18:03:35   params_sys_ram_free 143232
#     2024-06-21 18:03:35   params_sys_ram_size 259300
#     2024-06-21 18:03:35   params_sys_restart_required false
#     2024-06-21 18:03:35   params_sys_uptime 2
#     2024-06-21 18:03:35   params_sys_wakeup_period 7200
#     2024-06-21 18:03:35   params_sys_wakeup_reason_boot deepsleep_wake
#     2024-06-21 18:03:35   params_sys_wakeup_reason_cause status_update
#     2024-06-21 18:03:35   params_sys_webhook_rev 0
#     2024-06-21 18:03:35   params_temperature_0_id 0
#     2024-06-21 18:03:35   params_temperature_0_tC 24.7
#     2024-06-21 18:03:35   params_temperature_0_tF 76.5
#     2024-06-21 18:03:36   params_ts       1718985816.84
#     2024-06-21 18:03:35   params_wifi_rssi -73
#     2024-06-21 18:03:35   params_wifi_ssid Skynet
#     2024-06-21 18:03:35   params_wifi_sta_ip 192.168.178.140
#     2024-06-21 18:03:35   params_wifi_status got ip
#     2024-06-21 18:03:35   params_ws_connected false
#     2024-06-21 18:03:35   ram_free        142252
#     2024-06-21 18:03:35   ram_size        259232
#     2024-06-21 18:03:35   restart_required false
#     2024-06-21 18:03:35   rh              61.7
#     2024-06-21 18:03:35   rssi            -73
#     2024-06-21 18:03:36   src             shellyplusht-e465b85f5054
#     2024-06-21 18:03:35   ssid            Skynet
#     2024-06-21 18:03:35   sta_ip          192.168.178.140
#     2024-06-21 18:03:35   status          got ip
#     2024-06-21 18:03:35   tC              24.7
#     2024-06-21 18:03:35   tF              76.5
#     2024-06-21 17:25:31   time            17:25
#     2024-06-21 17:25:31   unixtime        1718983531
#     2024-06-21 18:03:35   uptime          2
#     2024-06-21 18:03:35   wakeup_period   7200
#     2024-06-21 18:03:35   wakeup_reason_boot deepsleep_wake
#     2024-06-21 18:03:35   wakeup_reason_cause status_update
#     2024-06-21 18:03:35   webhook_rev     0
#
setstate MQTT2_shellyplusht_e465b85f5054 T: 24.7 °C H: 61.7 % B: 100 %
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 17:18:45 IODev myBroker
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 17:25:31 available_updates_stable_version 1.3.2
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 battery_V 6.34
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 battery_percent 100
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:34 ble {}
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 cfg_rev 4
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 connected true
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:36 dst shellyplusht-e465b85f5054/events
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 external_present false
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 fs_free 98304
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 fs_size 458752
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 ht_ui {}
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 id 0
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 kvs_rev 0
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 mac E465B85F5054
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:36 method NotifyEvent
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:37 online false
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 params_cloud_connected false
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 params_devicepower_0_battery_V 6.34
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 params_devicepower_0_battery_percent 100
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 params_devicepower_0_external_present false
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 params_devicepower_0_id 0
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:36 params_events_1_component sys
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:36 params_events_1_event sleep
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:36 params_events_1_ts 1718985816.84
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 params_humidity_0_id 0
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 params_humidity_0_rh 61.7
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 params_mqtt_connected true
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 17:25:31 params_sys_available_updates_stable_version 1.3.2
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 params_sys_cfg_rev 4
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 params_sys_fs_free 98304
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 params_sys_fs_size 458752
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 params_sys_kvs_rev 0
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 params_sys_mac E465B85F5054
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 params_sys_ram_free 143232
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 params_sys_ram_size 259300
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 params_sys_restart_required false
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 params_sys_uptime 2
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 params_sys_wakeup_period 7200
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 params_sys_wakeup_reason_boot deepsleep_wake
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 params_sys_wakeup_reason_cause status_update
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 params_sys_webhook_rev 0
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 params_temperature_0_id 0
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 params_temperature_0_tC 24.7
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 params_temperature_0_tF 76.5
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:36 params_ts 1718985816.84
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 params_wifi_rssi -73
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 params_wifi_ssid Skynet
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 params_wifi_sta_ip 192.168.178.140
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 params_wifi_status got ip
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 params_ws_connected false
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 ram_free 142252
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 ram_size 259232
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 restart_required false
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 rh 61.7
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 rssi -73
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:36 src shellyplusht-e465b85f5054
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 ssid Skynet
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 sta_ip 192.168.178.140
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 status got ip
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 tC 24.7
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 tF 76.5
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 17:25:31 time 17:25
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 17:25:31 unixtime 1718983531
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 uptime 2
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 wakeup_period 7200
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 wakeup_reason_boot deepsleep_wake
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 wakeup_reason_cause status_update
setstate MQTT2_shellyplusht_e465b85f5054 2024-06-21 18:03:35 webhook_rev 0

FHEM 6.3, 2 x RasPi 3B+, Debian Buster; KNX, FS20, HM, HUE, Tradfri, Shellies, KLF200
Rollo-/Lichtsteuerung/-szenarien, T-Sensoren, Fensterkontakte, Heizungssteuerung, HEOS, Sprachsteuerung mit Alexa-FHEM, Netatmo, Nuki, ...