Ich habe ein Thermostat mit folgender definition:
Internals:
CID wthermostat_3343395
DEF wthermostat_3343395
FUUID 63ba976e-f33f-333b-77ce-6b01a9f74ecc3359
IODev myBroker
LASTInputDev myBroker
MSGCNT 72
NAME Thermostat_JulZi
NR 379
STATE on
TYPE MQTT2_DEVICE
eventCount 32
myBroker_CONN myBroker_IP_61275
myBroker_MSGCNT 72
myBroker_TIME 2023-01-11 12:23:23
JSONMAP:
targetTemperature 0
READINGS:
2023-01-11 12:19:01 IODev myBroker
2023-01-11 12:19:23 LWT Online
2023-01-10 19:38:56 a1h 06:00
2023-01-10 19:38:56 a1t 20.00
2023-01-10 19:38:56 a2h 08:00
2023-01-10 19:38:56 a2t 21.00
2023-01-10 19:38:56 a3h 11:30
2023-01-10 19:38:56 a3t 22.00
2023-01-10 19:38:56 a4h 13:30
2023-01-10 19:38:56 a4t 22.00
2023-01-10 19:38:56 a5h 17:00
2023-01-10 19:38:56 a5t 22.00
2023-01-10 19:38:56 a6h 22:00
2023-01-10 19:38:56 a6t 15.00
2023-01-11 12:22:52 action heating
2023-01-09 19:36:16 attrTemplateVersion 20220108
2023-01-11 12:20:00 clock_epochTime 1673436000
2023-01-11 12:20:00 clock_epochTimeLocalFormatted 2023-01-11 12:20:00
2023-01-11 12:20:00 clock_ntpServer pool.ntp.org
2023-01-11 12:20:00 clock_offset 3600
2023-01-11 12:20:00 clock_timeDST 0,3,0,2,120
2023-01-11 12:20:00 clock_timeSTD 0,10,0,3,60
2023-01-11 12:20:00 clock_timeZone 99
2023-01-11 12:20:00 clock_uptime 71437
2023-01-11 12:20:00 clock_validTime true
2023-01-11 06:55:25 desired-temp 23.00
2023-01-11 12:22:51 deviceOn true
2023-01-11 12:22:51 ecoMode false
2023-01-11 12:22:51 firmware v1.22-fas
2023-01-11 12:22:51 holdState manual
2023-01-11 12:22:51 idx Thermostat_JulZi
2023-01-11 12:22:51 ip IP
2023-01-11 12:22:52 locked false
2023-01-10 11:58:42 log warning: NTP sync failed.
2023-01-11 12:20:00 log_logLevel trace
2023-01-11 12:22:52 mcuId IAYz2WK1th0cMLmL1.0.0
2023-01-11 12:22:52 mode heat
2023-01-11 12:23:23 net_rssi -75
2023-01-11 12:22:52 preset none
2023-01-11 12:22:51 schedulesMode off
2023-01-11 12:22:52 state on
2023-01-11 12:22:51 switchBackToAuto false
2023-01-11 12:22:51 targetTemperature 23.00
2023-01-11 12:19:51 temp_mean 22.50
2023-01-11 12:22:51 temperature 22.50
2023-01-10 19:38:56 u1h 06:00
2023-01-10 19:38:56 u1t 20.00
2023-01-10 19:38:56 u2h 08:00
2023-01-10 19:38:56 u2t 21.00
2023-01-10 19:38:56 u3h 11:30
2023-01-10 19:38:56 u3t 22.00
2023-01-10 19:38:56 u4h 13:30
2023-01-10 19:38:56 u4t 22.00
2023-01-10 19:38:56 u5h 17:00
2023-01-10 19:38:56 u5t 22.00
2023-01-10 19:38:56 u6h 22:00
2023-01-10 19:38:56 u6t 15.00
2023-01-10 19:38:56 w1h 06:00
2023-01-10 19:38:56 w1t 20.00
2023-01-10 19:38:56 w2h 08:00
2023-01-10 19:38:56 w2t 21.00
2023-01-10 19:38:56 w3h 11:30
2023-01-10 19:38:56 w3t 22.00
2023-01-10 19:38:56 w4h 13:30
2023-01-10 19:38:56 w4t 21.00
2023-01-10 19:38:56 w5h 17:00
2023-01-10 19:38:56 w5t 22.00
2023-01-10 19:38:56 w6h 22:00
2023-01-10 19:38:56 w6t 15.00
Attributes:
devStateIcon <a href="http://ip" target="_blank">
LWT
</a>
state
event-min-interval .*:300
event-on-change-reading .*
getList desired-temp:noArg desired-temp Thermostat_JulZi/cmnd/things/thermostat/properties/targetTemperature
icon hm-tc-it-wm-w-eu
jsonMap targetTemperature:0
model WThermostatBHT002
readingList Thermostat_JulZi/tele/LWT:.* LWT
devices/(network|clock|thermostat|logging):.* {}
Thermostat_JulZi/stat/things/network/properties:.* { json2nameValue($EVENT,'net_',$JSONMAP) }
Thermostat_JulZi/stat/things/thermostat/properties:.* { $EVENT =~ s/true/"on"/g;; $EVENT =~ s/false/"off"/g;; json2nameValue($EVENT,'',$JSONMAP) }
Thermostat_JulZi/stat/things/logging/properties:.* { json2nameValue($EVENT,'log_',$JSONMAP) }
Thermostat_JulZi/stat/things/clock/properties:.* { json2nameValue($EVENT,'clock_',$JSONMAP) }
Thermostat_JulZi/stat/things/thermostat/targetTemperature:.* desired-temp
Thermostat_JulZi/stat/things/thermostat/properties/state:.* {{state => $EVENT eq 'heating' ? 'on' : 'off'}}
wthermostat_3343395:Thermostat_JulZi/tele/log:.* log
wthermostat_3343395:Thermostat_JulZi/stat/things/thermostat/schedules:.* { json2nameValue($EVENT) }
room MQTT2_DEVICE
setList on:noArg Thermostat_JulZi/cmnd/things/thermostat/properties/deviceOn true
off:noArg Thermostat_JulZi/cmnd/things/thermostat/properties/deviceOn false
desired-temp:slider,5.0,0.5,35.0,1 Thermostat_JulZi/cmnd/things/thermostat/properties/targetTemperature $EVTPART1
mode:heat,auto,off Thermostat_JulZi/cmnd/things/thermostat/properties/mode $EVTPART1
weekprofile { FHEM::attrT_z2m_thermostat_Utils::z2t_send_Beca_weekprofile($NAME, $EVTPART1, $EVTPART2, 'Thermostat_JulZi/cmnd/things/thermostat/schedules') }
x_send_mcucommand:textField { my $payload = $EVENT;$payload =~ s/$EVTPART0 //g; qq(Thermostat_JulZi/cmnd/things/thermostat/mcucommand $payload)}
setStateList on off weekprofile
userReadings temp_mean:temperature:.* {ReadingsVal($name,"temperature",0)}
userattr weekprofile
webCmd mode:desired-temp
weekprofile Thermostat_JulZi_Plan
Jetzt habe ich mal versucht ein Modul weekprofile anzulegen:
Internals:
CONFIGFILE ./log/weekprofile-Thermostat_JulZi_WEEKPROFILE.cfg
DEF Thermostat_JulZi
FUUID 63be9b14-f33f-333b-2d28-b8321ab4ac94c3c9
NAME Thermostat_JulZi_WEEKPROFILE
NR 381
NTFY_ORDER 50-Thermostat_JulZi_WEEKPROFILE
STATE created
TYPE weekprofile
eventCount 68
MASTERDEV:
NAME Thermostat_JulZi
PROFILES:
HASH(0x32fd360)
READINGS:
2023-01-11 12:27:53 profile_count 1
2023-01-11 12:19:01 state created
SNDDEVLIST:
HASH(0x2b26ba8)
TEMPMAP:
TOPICS:
default
Attributes:
Im logfile erscheint immer die Meldung:
Thermostat_JulZi_WEEKPROFILE(assignDev): device Thermostat_JulZi not supported or defined
Meine Frage ist: Was ist die Ursache? Das Gerät ist defined und hat Attribute und userattr. Welches Kriterium muß vorhanden sein für den Support für das weekprofile Module?