Hello,
I installed two everspring smartplug. One is sending power consumption every 5 seconds but the other one never. I struggle comparing both but I don't see the difference and what I have to configure.
The plug which is not working is described by:
fhem> list ZWave_SWITCH_BINARY_3
Internals:
DEF f99526db 3
IODev ZWDongle_1
NAME ZWave_SWITCH_BINARY_3
NR 89
STATE on
TYPE ZWave
homeId f99526db
id 03
lastMsgTimestamp 1427378217
Readings:
2015-03-26 13:55:30 assocGroup_00 Max 00 Nodes
2015-03-26 13:55:05 state on
2015-03-26 13:56:57 swa on off
Attributes:
IODev ZWDongle_1
classes SWITCH_BINARY BASIC MANUFACTURER_SPECIFIC VERSION SWITCH_ALL ASSOCIATION METER CONFIGURATION
room ZWave
The plug that is working is described by :
fhem> list ZWave_SWITCH_BINARY_2
Internals:
DEF f99526db 2
IODev ZWDongle_1
LASTInputDev ZWDongle_1
MSGCNT 13
NAME ZWave_SWITCH_BINARY_2
NR 87
STATE on
TYPE ZWave
ZWDongle_1_MSGCNT 13
ZWDongle_1_RAWMSG 00040002083202211200050000
ZWDongle_1_TIME 2015-03-26 14:01:10
homeId f99526db
id 02
lastMsgTimestamp 1427378470
Readings:
2015-03-26 13:56:00 assocGroup_00 Max 00 Nodes
2015-03-25 18:22:41 basicReport ff
2015-03-25 18:28:05 configMeterReportPeriod 3
2015-03-25 18:52:57 configSendOutBasicCommand 0
2015-03-25 18:28:49 configTruePeriod 10
2015-03-25 18:22:53 model Everspring AN158 Plug-in Meter Appliance Module
2015-03-25 18:22:53 modelConfig everspring/an158.xml
2015-03-25 18:22:53 modelId 0060-0004-0002
2015-03-26 14:01:10 power 5 W
2015-03-26 13:56:39 reportedState on
2015-03-26 13:56:39 state on
2015-03-26 13:56:47 swa on off
2015-03-25 19:03:59 version Lib 6 Prot 2.64 App 1.1
Attributes:
IODev ZWDongle_1
classes SWITCH_BINARY BASIC MANUFACTURER_SPECIFIC VERSION SWITCH_ALL ASSOCIATION METER CONFIGURATION
room ZWave
I tried to set some attributes and command but without any success.
Alex.
Check the association for group 1, as it is common that the device is sending the sensor data to group 01. FHEM tries to associate group 1 on the device upon inclusion with the controller id (this is usually 1), it guess this failed for one of the devices.
Thanks for the tips,
I tried :
set ZWave_SWITCH_BINARY_3 associationAdd 1 ZWDongle_1
but it does not solve the problem, I may be wrong.
Here are some commands I entered :
fhem> get ZWave_SWITCH_BINARY_2 association 1
assocGroup_01:Max 01 Nodes 01
and
fhem> get ZWave_SWITCH_BINARY_3 association 1
assocGroup_01:Max 01 Nodes 03
I don't really understand what the values are meaning... :(
Alex.
You have to use the Node-Id of the ZWDongle_1, not its name.
"assocGroup_01:Max 01 Nodes 03" means, that Association Group 01 can contain a maximum of 1 nodes, and Node 03 is configured for this group. I.e. this device is reporting its data to node 03 (that is to itself, which is nonsense), the other one to node 01. You have to delete first node 03 from the group, and then add 01 to the group:
set ZWave_SWITCH_BINARY_3 associationDel 1 3
set ZWave_SWITCH_BINARY_3 associationAdd 1 1
Thanks for the explanations :)
I will test that tomorrow but with your explanations it is now much more clear for me !
Alex.
Hello I'm back,
unfortunatly what you indicated did not solved the problem, I still get no readings from switch3. I suppressed switch3 from fhem config and re added it by manually switching it on and off. I checked that association is done with 1:
fhem> get ZWave_SWITCH_BINARY_3 association 1
assocGroup_01:Max 01 Nodes 01
This is the same for switch2 except that switch2 send back power consumption notification and not switch3.
Here is switch2 (with some power readings):
fhem> list ZWave_SWITCH_BINARY_2
Internals:
DEF f99526db 2
IODev ZWDongle_1
LASTInputDev ZWDongle_1
MSGCNT 10
NAME ZWave_SWITCH_BINARY_2
NR 88
STATE on
TYPE ZWave
ZWDongle_1_MSGCNT 10
ZWDongle_1_RAWMSG 00040002083202211200060000
ZWDongle_1_TIME 2015-03-27 13:42:49
homeId f99526db
id 02
lastMsgTimestamp 1427463769
Readings:
2015-03-26 13:56:00 assocGroup_00 Max 00 Nodes
2015-03-27 13:29:54 assocGroup_01 Max 01 Nodes 01
2015-03-25 18:22:41 basicReport ff
2015-03-25 18:28:05 configMeterReportPeriod 3
2015-03-25 18:52:57 configSendOutBasicCommand 0
2015-03-25 18:28:49 configTruePeriod 10
2015-03-25 18:22:53 model Everspring AN158 Plug-in Meter Appliance Module
2015-03-25 18:22:53 modelConfig everspring/an158.xml
2015-03-25 18:22:53 modelId 0060-0004-0002
2015-03-27 13:42:49 power 6 W
2015-03-27 13:31:04 reportedState on
2015-03-27 13:31:04 state on
2015-03-27 13:30:58 swa on off
2015-03-25 19:03:59 version Lib 6 Prot 2.64 App 1.1
Attributes:
IODev ZWDongle_1
classes SWITCH_BINARY BASIC MANUFACTURER_SPECIFIC VERSION SWITCH_ALL ASSOCIATION METER CONFIGURATION
room ZWave
and here is switch3 (no power readings) :
fhem> list ZWave_SWITCH_BINARY_3
Internals:
CFGFN
DEF f99526db 3
IODev ZWDongle_1
NAME ZWave_SWITCH_BINARY_3
NR 97
STATE ???
TYPE ZWave
homeId f99526db
id 03
lastMsgTimestamp 1427463711
Readings:
2015-03-27 13:41:51 assocGroup_01 Max 01 Nodes 01
Attributes:
IODev ZWDongle_1
classes SWITCH_BINARY BASIC MANUFACTURER_SPECIFIC VERSION SWITCH_ALL ASSOCIATION METER CONFIGURATION
room ZWave
I notie that switch2 have three more internals than switch3, namely :
- ZWDongle_1_MSGCNT
- ZWDongle_1_RAWMSG
- ZWDongle_1_TIME
However classes attribute are the same... so I really wonder what is wrong with switch3... :(
Even worst, yeasterday I was able to ask switch3 for METER but today I get back a Timeout reading answer for get meter
...
Alex.
I guess that configMeterReportPeriod is disabled. Setting it to 30 you'll get a report in about every 5 minutes.
ZitatHelp for configMeterReportPeriod:
The device will report its meter value within the interval set. Set to 0 will disable the autoreporting function.
Getting no answer is probably another (connection?) issue, a "set ZWDongle neighborUpdate" may help.
But here is the tricky part:
There is no option for setting configMeterPeriod...
I tried neighborUpdate but without more success, even getting model is sending a timeout (which I suppose is consistant whith previous observations).
I tried to reboot everything just in case... but no effect... I'm lost :(
To have the configMeterReportPeriod you have to first execute the "get ZWave_SWITCH_BINARY_3 model" command first.
Either the second hardware is faulty, or there are connection problems.
Hello,
well I installed the Zwave key + 2 switches on another Raspberry equiped with Fhem. It works well on it!
Both switches are correctly detected and power consumption is eventing ^_^
Nice :)
But I wonder how to deal with that with the other Raspberry without having to reinstall everything. Could it be sufficient to delete every reference to Zwave stuff on fhem.cfg then restart and reinstall everything step by step ?
In other word how to reset some part of Fhem? I tried on the first Raspberry to remove all references from the "bad" switch then reinstall it but without success (things got even wrong)... Is Fhem storing some information elsewhere than fhem.cfg ?
ZitatIs Fhem storing some information elsewhere than fhem.cfg ?
Yes:
- Information acquired by the system (i.e. the readings) are stored in fhem.state
- Plot-Configuration is stored in www/gnuplot/*.gplot
- some modules (e.g. LightScene, eventMap) write their own files in the log directory.