Everspring AN158 configuration

Hi,
I picked up an AN158 the other day, but I have a bit of difficulty configuring the metering part of it. The switch works fine. The item configuration looks like this (possibly very wrong…):

Switch swc_4 “switch4” {zwave=“23:command=switch_binary”}
Number swc_4_W “switch4 power consumption [%.1f W]” { zwave=“23:command=meter” }

How would I configure the sitemap to view the consumption and how would I store it in a db.

Any help is much appreciated.

Hi coyote,

I think you have to add some more parameters.
This config is working for me (controller is raspberry pi 1 with razpberry daughterboard):

Number Meter “Energy [%.2f KWh]” {zwave=“2:command=meter,sensortype=1,scale=0”}

Below some more info about different meter command parameters to get instant or acumulated consumption:

commandClass
/: None (17.01.2016)
0: None (21.01.2016)
sensorType: 1 (17.01.2016)
sensorTypeString: Electric (17.01.2016)
val: 4.8 (21.01.2016)
scale: 0 (17.01.2016)
scaleString: kWh (17.01.2016)
ratetype: 1 (21.01.2016)
delta: 0 (21.01.2016)
previous: 0 (21.01.2016)
2: None (22:48)
sensorType: 1 (17.01.2016)
sensorTypeString: Electric (17.01.2016)
val: 72 (22:48)
scale: 2 (17.01.2016)
scaleString: W (17.01.2016)
ratetype: 1 (22:48)
delta: 0 (22:48)
previous: None (17.01.2016)
supported: true (17.01.2016)
version: 2 (17.01.2016)
security: false (17.01.2016)
interviewDone: true (17.01.2016)
interviewCounter: 9 (17.01.2016)
resettable: true (17.01.2016)
scalemask: 5 (17.01.2016)

1 Like

Hi,

I’m using an AN147 … I would like to use it to switch on/off a lamp. Could you please provide me with the item entries to switch on / of AN147 wallplug …
Thx

Hi Peter,
I’m not aware of an Everspring AN-147 being in existence. Typo??
If you mean AN-148, the anwer is in the initial post (Switch swc_4 “switch4” {zwave=“23:command=switch_binary”} )
For Everspring AD-147 you better start a new topic.

Hi

its an AN147, I saw your item config … I have a problem with my item file.
This is my sitemap-file
sitemap Haus label=“Hauptmenue”
{
Frame {
Group item=uebFT label=“Übersicht Fenster” icon=“house”
Group item=uebPWR label=“Übersicht Steckdosen” icon=“switch”
}
}
This my item file
// Gruppen
Group uebFT // Uebersicht Zustand alle Fenster/Tuer-Sensoren)
Group uebPWR // Uebersicht Zustand alle Steckdosen)

/Fenster-Sensoren/
Switch Fenster_OG_Toilette " Fenster_OG_Toilette" (uebFT)
Switch Fenster_EG_Toilette " Fenster_EG_Toilette" (uebFT)

/Steckdosen/
Switch Steckdose_Gang_unten “Steckdose Gang unten” (uebPWR)
/Fenster-Sensoren/ Contact Fenster_OG_Toilette “Fenster OG Toilette: [%s]” (uebFT) { zwave=“2:command=SENSOR_BINARY,respond_to_basic=TRUE” }Number Batterie_Fenster_OG_Toilette “Batterie: [%s %%]” (uebFT) { zwave=“2:command=BATTERY” } Contact Fenster_EG_Toilette “Fenster EG Toilette: [%s]” (uebFT) { zwave=“3:command=SENSOR_BINARY,respond_to_basic=TRUE” }Number Batterie_Fenster_EG_Toilette “Batterie: [%s %%]” (uebFT) { zwave=“3:command=BATTERY” }
/Steckdosen/ Switch Steckdose_Gang_unten “Steckdose Gang unten:” (uebPWR) {zwave=“4:command=switch_binary”}

I see my menu of the sitemap file but if klick on it I only see an empty web page?

Klicking on for example Uebersicht Fenster next page ist empty. In habmin I see the sitemap but not the item.file)

I see

In Habmin I only see the sidemap file not the item files, but all sensor in Habmin are green and aktiv.

Any ideas?

Solved !!! Hi Guys it works it was simply a missing / in comment line.

Here the working item file:

// Gruppen
Group uebFT // Uebersicht Zustand alle Fenster/Tuer-Sensoren)
Group uebPWR // Uebersicht Zustand alle Steckdosen)

/Fenster-Sensoren/

Contact Fenster_OG_Toilette “Fenster OG Toilette: [%s]” (uebFT) {zwave=“2:command=SENSOR_BINARY,respond_to_basic=TRUE” }
Number Batterie_Fenster_OG_Toilette “Batterie: [%s %%]” (uebFT) {zwave=“2:command=BATTERY” }
Contact Fenster_EG_Toilette “Fenster EG Toilette: [%s]” (uebFT) { zwave=“3:command=SENSOR_BINARY,respond_to_basic=TRUE” }
Number Batterie_Fenster_EG_Toilette “Batterie: [%s %%]” (uebFT) {zwave=“3:command=BATTERY” }

/Steckdosen/

Switch Steckdose_Gang_unten “Steckdose Gang unten” (uebPWR) {zwave=“4:command=switch_binary”}

Thanks Alexandru,

It took a while before I had the opportunity to have a go at it.
But you got me going in the correct direction:

Switch swc_4 “Switch 4 met meter” {zwave=“23:command=switch_binary”}
Number swc_4_Power “Switch 4 huidig verbruik [%.1f W]” { zwave=“23:command=METER,meter_scale=E_W,refresh_interval=60” }
Number swc_4_Energy “Switch 4 Total Energy [%.2f KWh]” {zwave=“23:command=meter,meter_scale=E_KWh,refresh_interval=60”}

Working like a charm…

C

Hi, I’m trying to set the KW / h but they do not work, Watts and Switch items work fine.
I link the Kwh to the number item but not work, has there been any changes since the date of this post?

Yep, a bit. I switched to OH2, now the AN158 is a thing, exposing it’s channels.
I’m not longer monitoring individual consumption so I do not have an items example for you

I’ve tried with this example and it works, just change the energy cost automatically