ZitatIch habe im Forum jedoch noch Beispiele Gefunden, die mit { qq()} aufgerufen werden, was ist dabei denn der Vorteil?qq ist eine Alternative zu ", man hat weniger Stress, wenn im String selber " vorkommt.
Save config
Tablet-UI
Aussen
Bad
Buero
CUL_HM
CUL_TCM97001
ESPEasy
Flur
Gaestezimmer
Garage
Garten
Heizung
Kalender
Kodi
Kueche
icoLicht Licht
MQTT2
MQTT2_DEVICE
MagicMirror
Plots
Rolladen
Schlafzimmer
Shelly
System
Treppenhaus
Unsorted
Wohnzimmer
ioB_System
icoEverything Everything
Logfile
Commandref
Remote doc
Edit files
Select style
Event monitor
Internals:
DEF 192.168.178.158
FUUID 69736df8-f33f-9d3c-cf56-2e1ff5a0e03204d9
INTERVAL 20
NAME Switch_ShellyRGBW1
NR 625
NTFY_ORDER 50-Switch_ShellyRGBW1
SHELLYID shellyplusrgbwpm-30c92257704c
STATE OK
TYPE Shelly
eventCount 8364
units 0
OLDREADINGS:
READINGS:
2026-01-30 14:15:19 ap enabled open
2026-01-30 14:15:19 ap_clients disabled
2026-01-30 14:15:19 ap_name ShellyPlusRGBWPM-30C92257704C
2026-01-30 14:15:19 auto_off disabled
2026-01-30 14:17:55 auto_off_0 disabled
2026-01-30 14:17:55 auto_off_1 disabled
2026-01-30 14:17:55 auto_off_2 disabled
2026-01-30 14:17:55 auto_off_3 disabled
2026-01-30 14:15:19 auto_on disabled
2026-01-30 14:17:55 auto_on_0 disabled
2026-01-30 14:17:55 auto_on_1 disabled
2026-01-30 14:17:55 auto_on_2 disabled
2026-01-30 14:17:55 auto_on_3 disabled
2026-01-30 14:15:19 ble enabled
2026-01-30 14:15:19 ble_rpc enabled
2026-01-30 18:29:54 cloud enabled(connected)
2026-01-30 14:15:20 firmware_ID 20250924-062733/1.7.1-gd336f31
2026-01-30 14:15:20 firmware_current v1.7.1
2026-01-30 14:15:39 firmware_updIcon OK
2026-01-30 14:15:39 firmware_updText -/-
2026-01-30 14:17:55 input_0 unknown
2026-01-30 14:17:55 input_0_function dim
2026-01-31 10:41:43 input_0_mode button straight enabled
2026-01-30 14:17:55 input_1 unknown
2026-01-31 10:41:43 input_1_mode button straight enabled
2026-01-30 14:17:55 input_2 unknown
2026-01-31 10:41:43 input_2_mode button straight enabled
2026-01-30 14:17:55 input_3 unknown
2026-01-31 10:41:43 input_3_mode button straight enabled
2026-01-30 14:15:19 login open
2026-01-30 14:15:19 mac 30:C9:22:57:70:4C
2026-01-30 14:15:19 model_ID SNDC-0D4P10WW
2026-01-30 14:15:19 model_family Plus/Gen2
2026-01-30 14:15:19 model_function LED driver
2026-01-30 14:15:19 model_name Shelly Plus RGBW PM
2026-01-30 14:15:19 network <html>connected to <a href="http://192.168.178.158">192.168.178.158</a> (Wifi)</html>
2026-01-31 10:41:22 network_DNS shellyplusrgbwpm-30c92257704c
2026-01-30 14:15:19 network_connection online
2026-01-30 14:15:19 network_ip-address 192.168.178.158
2026-02-02 09:22:32 network_rssi -33
2026-01-30 14:15:19 network_ssid ThomasFritzBox
2026-01-30 14:15:19 network_wifi_roaming -80
2026-01-30 14:15:19 protection none
2026-01-31 10:41:43 protection_ none
2026-01-30 14:16:16 scripts 0
2026-02-01 11:23:19 state OK
2026-02-02 09:22:52 uptime 241668
2026-01-30 14:15:20 webhook_cnt 0 / 0 / 0
2026-01-30 14:15:19 webhook_ver 0
helper:
Sets config:ap_disable,ap_enable interval password reboot:noArg update:noArg name clear:disconnects,error,energy,responsetimes actions script_start script_stop on off toggle on-for-timer off-for-timer pct:slider,1,1,100 dim dimup dimdown dim-for-timer
StatusCall 0
range_extender disabled
settings_time 1770020372.06123
timer 0
Attributes:
alias Switch_ShellyRGBW1
defchannel 0
interval 20
mode rgbw
model shellyplusrgbwpm
room Shelly . Cmd: >set Switch_ShellyRGBW1 off<
2026.02.02 09:26:49 4: [Shelly_Set] calling for device Switch_ShellyRGBW1 with command 'off', no parameters
2026.02.02 09:26:49 4: [Shelly_Set] Switch_ShellyRGBW1 channel is 0 and subs ='_0'
2026.02.02 09:26:49 4: [Shelly_Set] switching channel 0 for device Switch_ShellyRGBW1 with command ?turn=off, FF=2
2026.02.02 09:26:49 4: [Shelly_HttpRequest] issue a non-blocking call to http://192.168.178.158/rpc/Light.Set?id=0&on=false, callback to Shelly_response, onoff
2026.02.02 09:26:49 5: HttpUtils url=http://192.168.178.158/rpc/Light.Set?id=0&on=false NonBlocking via http
2026.02.02 09:26:49 4: IP: 192.168.178.158 -> 192.168.178.158
2026.02.02 09:26:49 5: Starting notify loop for Switch_ShellyRGBW1, 1 event(s), first is off
2026.02.02 09:26:49 5: rgBatterieStatus: not on any display, ignoring notify
2026.02.02 09:26:49 5: End notify loop for Switch_ShellyRGBW1
2026.02.02 09:26:49 4: WEB: /fhem?cmd.Switch_ShellyRGBW1=set%20Switch_ShellyRGBW1%20off&XHR=1&fwcsrf=csrf_19960280258897&fw_id=1770020777.03607 / RL:20 / text/plain; charset=UTF-8 / Content-Encoding: gzip
/ Cache-Control: no-cache, no-store, must-revalidate
2026.02.02 09:26:49 5: POST /fhem?cmd.Switch_ShellyRGBW1=set%20Switch_ShellyRGBW1%20on&XHR=1&fwcsrf=csrf_19960280258897&fw_id=1770020777.03607 HTTP/1.1
Host: xxxxxxxxxat9we8bf5mgxz.myfritz.net:8083
Connection: keep-alive
Content-Length: 0
Authorization: Basic dGhvbWFzOmJyYXNzMDEx
cache-control: no-cache
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36
Accept: text/plain, */*; q=0.01
Origin: http://xxxxxxm.u1rat9we8bf5mgxz.myfritz.net:8083
Referer: http://xxxxxxxm.u1rat9we8bf5mgxz.myfritz.net:8083/fhem?detail=Switch_ShellyRGBW1
Accept-Encoding: gzip, deflate
Accept-Language: de-DE,de;q=0.9,en-GB;q=0.8,en;q=0.7,en-US;q=0.6
2026.02.02 09:26:49 4: WEB_176.1.238.105_54136 POST /fhem?cmd.Switch_ShellyRGBW1=set%20Switch_ShellyRGBW1%20on&XHR=1&fwcsrf=csrf_19960280258897&fw_id=1770020777.03607; BUFLEN:0
2026.02.02 09:26:49 5: Cmd: >set Switch_ShellyRGBW1 on<
2026.02.02 09:26:49 4: [Shelly_Set] calling for device Switch_ShellyRGBW1 with command 'on', no parameters
2026.02.02 09:26:49 4: [Shelly_Set] Switch_ShellyRGBW1 channel is 0 and subs ='_0'
2026.02.02 09:26:49 4: [Shelly_Set] switching channel 0 for device Switch_ShellyRGBW1 with command ?turn=on, FF=2
2026.02.02 09:26:49 4: [Shelly_HttpRequest] issue a non-blocking call to http://192.168.178.158/rpc/Light.Set?id=0&on=true, callback to Shelly_response, onoff
2026.02.02 09:26:49 5: HttpUtils url=http://192.168.178.158/rpc/Light.Set?id=0&on=true NonBlocking via http
2026.02.02 09:26:49 4: IP: 192.168.178.158 -> 192.168.178.158
2026.02.02 09:26:49 5: Starting notify loop for Switch_ShellyRGBW1, 1 event(s), first is on
2026.02.02 09:26:49 5: rgBatterieStatus: not on any display, ignoring notify
2026.02.02 09:26:49 5: End notify loop for Switch_ShellyRGBW1
2026.02.02 09:26:49 4: WEB: /fhem?cmd.Switch_ShellyRGBW1=set%20Switch_ShellyRGBW1%20on&XHR=1&fwcsrf=csrf_19960280258897&fw_id=1770020777.03607 / RL:20 / text/plain; charset=UTF-8 / Content-Encoding: gzip
/ Cache-Control: no-cache, no-store, must-revalidate Zitat von: Ralli am 01 Februar 2026, 19:47:07Das ist schon klar. Aber es wird einmal an der 191 und einmal an der 181 ein Callback registriert.
define Frank_Handy UnifiClient Xiaomi-13
attr Frank_Handy event-on-change-reading .*
attr Frank_Handy oldreadings presence
attr Frank_Handy stateFormat {ReadingsVal($name,"presence","absent") eq "absent" ? "absent since ".ReadingsVal($name,"_f_last_seen","") : "present since ".ReadingsVal($name,"_f_uptime","")}
attr Frank_Handy userReadings presence:fhem_state.* {(ReadingsVal($name,'fhem_state','disconnected') eq 'disconnected' ? 'absent' : 'present') }
# CODE Xiaomi-13
# DEF Xiaomi-13
# FUUID 694dc6f0-f33f-9ecb-fd42-84f8e7d03641f4f0
# IODev UX7
# LASTInputDev UX7
# MODEL Xiaomi Communications Co Ltd
# MSGCNT 7718
# NAME Frank_Handy
# NOTIFYDEV global
# NR 613
# STATE present since 0d 0h 11m 42s
# TYPE UnifiClient
# UX7_MSGCNT 7718
# UX7_TIME 2026-02-02 08:42:18
# VERSION 0.0.3 BETA
# eventCount 7718
# OLDREADINGS:
# 2026-02-02 08:28:38 presence absent
# READINGS:
[...]
setstate Frank_Handy 2026-02-02 08:30:48 presence present
[...]
{
if(["^.*_Handy$:presence" eq present])
{
fhem("msg push $device: present");
}
elsif(["^.*_Handy$:presence" eq absent])
{
fhem("msg push $device: absent");
}
}
{
if(["^.*_Handy$:presence"])
{
fhem("msg push $device: $event");
}
}
Dann triggert es, aber in $event stehen etliche readings, statt nur "absent" oder "present".2026-02-02 08:48:20 msgConfig globalMsg fhemMsgPush: Frank_Handy: _f_diff_tx_bytes: 0,fhem_state: disconnected,network_members_group_ids: ARRAY(0x5e21e7f103e8),last_ipv6: ARRAY(0x5e21e79eaff8),_f_last_seen_duration: 0d 0h 0m 46s,satisfaction_avg: HASH(0x5e21e79e1b28),ipv6_addresses: ARRAY(0x5e21e8a85340),presence: absent
bzw:2026-02-02 08:49:59 msgConfig globalMsg fhemMsgPush: Frank_Handy: _f_last_seen: 2026-02-02 08:49:51,satisfaction: 99,tx_bytes: 182,_f_uptime: 0d 0h 0m 22s,uptime: 22,_uptime_by_uap: 22,tx_rate: 1201000,_f_assoc_time: 32d 7h 49m 29s,satisfaction_real: 99,wifi_tx_attempts: 99,_f_last_seen_duration: 0d 0h 0m 8s,rssi: 38,_last_seen_by_uap: 1770018591,_f_uptime_by_uap: 0d 0h 0m 22s,rx_bytes: 414,satisfaction_avg: HASH(0x5e21e7a42780),_f_last_seen_by_uap: 2026-02-02 08:49:51,ipv6_addresses: ARRAY(0x5e21e8c71598),satisfaction_reason: 2048,fhem_state: connected,_f_diff_tx_bytes: -20017,assoc_time: 1770018569,wifi_tx_retries_percentage: 10,network_members_group_ids: ARRAY(0x5e21e7ef6448),signal: -56,dhcpend_time: 230,latest_assoc_time: 1770018569,rx_packets: 5,_f_latest_assoc_time: 2026-02-02 08:49:29,last_ipv6: ARRAY(0x5e21e87be430),last_seen: 1770018591,tx_packets: 1,_f_dhcpend_time: 0d 0h 3m 50s,disconnect_timestamp: 1770018487,ccq: 819,tx_retries: 11,presence: present
ZitatHast Du auch mal meine Version von 70_DENON_AVR ausprobiert?Nein.