Hallo zusammen,
Ich habe das Problem, dass ich Homematic Wired einbinden möchte. Ich habe folgendes Gerät: HMW-Sen-SC-12-FM
Nun habe ich das Problem, dass die unterschiedlichen "Kanäle" an dem Device unterschiedliche Statuswerte zurückgeben, obwohl die Definition gleich ist.
An Kanal 1 wird sensor_open und sensor_closed zurückgegeben und an Kanal 2 wird true und false zurückgegeben.
Die Anbindung erfolgt über eine CCU2:
define d_ccu HMCCU schneckenCCU2
attr d_ccu DbLogExclude .*
attr d_ccu ccuflags procrpc
attr d_ccu event-on-change-reading .*
attr d_ccu group HMCCU
attr d_ccu room HMCCU,Interfaces,System
attr d_ccu rpcinterfaces BidCos-Wired
attr d_ccu rpcserver on
attr d_ccu stateFormat rpcstate/state
attr d_ccu verbose 1
define d_rpcBidCos_Wired HMCCURPCPROC schneckenCCU2 BidCos-Wired
attr d_rpcBidCos_Wired DbLogExclude .*
attr d_rpcBidCos_Wired alias CCU RPC BidCos-Wired
attr d_rpcBidCos_Wired event-on-change-reading .*
attr d_rpcBidCos_Wired eventMap /rpcserver on:on/rpcserver off:off/
attr d_rpcBidCos_Wired group HMCCU
attr d_rpcBidCos_Wired room HMCCU,System
attr d_rpcBidCos_Wired stateFormat rpcstate/state
attr d_rpcBidCos_Wired verbose 1
Evtl ist es wichtig zu erwähnen, dass vorher die Einbindung über "HM485_LAN" erfolgt ist.
Hier das define und list von beiden Geräten:
HMW_VRT1_InternScharf
define HMW_VRT1_InternScharf HMCCUCHN JEQ0645890:1
setuuid HMW_VRT1_InternScharf 5c4868da-f33f-b82c-b467-18a1d17dbfc91eae
attr HMW_VRT1_InternScharf DbLogExclude .*
attr HMW_VRT1_InternScharf event-on-change-reading .*
attr HMW_VRT1_InternScharf ftuiDevice 1
attr HMW_VRT1_InternScharf genericDeviceType contact
attr HMW_VRT1_InternScharf group Verschlüsse,HMW_VRT1_Verteiler_Alarmanlage
attr HMW_VRT1_InternScharf room HMWired,Homekit
Internals:
CFGFN CCU2_all.cfg
DEF JEQ0645890:1
FUUID 5c4868da-f33f-b82c-b467-18a1d17dbfc91eae
FVERSION 88_HMCCUCHN.pm:v5.0.0-s29453/2024-12-27
IODev d_ccu
NAME HMW_VRT1_InternScharf
NR 423
STATE sensor_open
TYPE HMCCUCHN
ccuaddr JEQ0645890:1
ccudevstate active
ccuif BidCos-Wired
ccuname HMW_VRT1_InternScharf
ccurolestate SENSOR
ccusubtype HMW-Sen-SC-12-FM
ccutype HMW-Sen-SC-12-FM
eventCount 5
firmware 3.01
readonly no
READINGS:
2025-04-30 18:15:05 IODev d_ccu
2025-04-26 10:00:51 R-input_locked no
2025-05-01 10:20:13 SENSOR true
2025-04-30 18:16:05 activity alive
2025-05-01 11:49:59 devstate ok
2025-05-01 11:49:59 hmstate sensor_open
2025-04-29 06:33:53 sensor open
2025-04-29 06:33:53 state sensor_open
hmccu:
channels 1
detect 0
devspec JEQ0645890:1
nodefaults 1
role 1:SENSOR
setDefaults 0
cmdlist:
get
set
control:
dp:
0.CONFIG_PENDING:
VALUES:
NVAL 0
SVAL false
VAL 0
0.STICKY_UNREACH:
VALUES:
NVAL 0
SVAL false
VAL 0
0.UNREACH:
VALUES:
NVAL 0
SVAL alive
VAL 0
1.SENSOR:
VALUES:
NVAL 1
ONVAL 0
OSVAL false
OVAL 0
SVAL true
VAL 1
roleChannels:
SENSOR 1
roleCmds:
get:
set:
state:
chn 1
dpt INSTALL_TEST
Attributes:
DbLogExclude .*
event-on-change-reading .*
ftuiDevice 1
genericDeviceType contact
group Verschlüsse,HMW_VRT1_Verteiler_Alarmanlage
room HMWired,Homekit
HMW_VRT1_ExternScharf
define HMW_VRT1_ExternScharf HMCCUCHN JEQ0645890:2
setuuid HMW_VRT1_ExternScharf 5c4868da-f33f-b82c-57da-36bf0cc26e898ac8
attr HMW_VRT1_ExternScharf DbLogExclude .*
attr HMW_VRT1_ExternScharf event-on-change-reading .*
attr HMW_VRT1_ExternScharf ftuiDevice 1
attr HMW_VRT1_ExternScharf genericDeviceType contact
attr HMW_VRT1_ExternScharf group Verschlüsse,HMW_VRT1_Verteiler_Alarmanlage
attr HMW_VRT1_ExternScharf room HMWired,Homekit
Internals:
CFGFN CCU2_all.cfg
DEF JEQ0645890:2
FUUID 5c4868da-f33f-b82c-57da-36bf0cc26e898ac8
FVERSION 88_HMCCUCHN.pm:v5.0.0-s29453/2024-12-27
IODev d_ccu
NAME HMW_VRT1_ExternScharf
NR 425
STATE true
TYPE HMCCUCHN
ccuaddr JEQ0645890:2
ccudevstate active
ccuif BidCos-Wired
ccuname HMW_VRT1_ExternScharf
ccurolestate SENSOR
ccusubtype HMW-Sen-SC-12-FM
ccutype HMW-Sen-SC-12-FM
eventCount 1
firmware 3.01
readonly no
READINGS:
2025-04-30 18:15:05 IODev d_ccu
2025-04-26 10:00:51 R-input_locked no
2025-04-30 18:16:03 SENSOR true
2025-04-30 18:16:03 activity alive
2025-05-01 11:49:59 devstate ok
2025-05-01 11:49:59 hmstate true
2025-04-26 10:00:57 sensor open
2025-04-30 18:16:03 state true
hmccu:
channels 1
detect 0
devspec JEQ0645890:2
nodefaults 1
role 2:SENSOR
setDefaults 0
cmdlist:
get
set
control:
dp:
0.CONFIG_PENDING:
VALUES:
NVAL 0
SVAL false
VAL 0
0.STICKY_UNREACH:
VALUES:
NVAL 0
SVAL false
VAL 0
0.UNREACH:
VALUES:
NVAL 0
SVAL alive
VAL 0
2.SENSOR:
VALUES:
NVAL 1
SVAL true
VAL 1
roleChannels:
SENSOR 2
roleCmds:
get:
set:
state:
chn 2
dpt SENSOR
Attributes:
DbLogExclude .*
event-on-change-reading .*
ftuiDevice 1
genericDeviceType contact
group Verschlüsse,HMW_VRT1_Verteiler_Alarmanlage
room HMWired,Homekit
Hat jemand eine Idee, warum die Kanäle unterschiedliche Statuswerte zurückgeben?
Viele Grüße
Marc
warum bist du so fixiert auf den state?
nutze das reading sensor.
Danke, habe "set defaults reset" durchgeführt und alles auf sensor umgebaut. Nun funktioniert wieder alles.