Hello all,
I'm a bit struggling to find out how to interface temperature sensor and reed switch to openHAB.
These are the hexdumps of enocean transmission at my serial port :
// Reed Switch 55 00 07 07 01 7A D5 09 00 83 35 06 00 01 FF FF FF FF 31 00 A0 // CLOSED 55 00 07 07 01 7A D5 08 00 83 35 06 00 01 FF FF FF FF 31 00 34 // OPEN 55 00 07 07 01 7A D5 09 00 83 35 06 00 01 FF FF FF FF 2E 00 34 // CLOSED 55 00 07 07 01 7A D5 08 00 83 35 06 00 01 FF FF FF FF 2C 00 8A // OPEN // Temperature sensor 55 00 0A 07 01 EB A5 00 00 32 00 00 83 02 E5 00 01 FF FF FF FF 48 00 02 55 00 0A 07 01 EB A5 00 00 2E 08 00 83 02 E5 00 01 FF FF FF FF 48 00 64 55 00 0A 07 01 EB A5 00 00 2D 08 00 83 02 E5 00 01 FF FF FF FF 4C 00 18 55 00 0A 07 01 EB A5 00 00 3D 08 00 83 02 E5 00 01 FF FF FF FF 44 00 CA
From the above hexdumps, I decoded my sensor ids( based on ESP3 and EEP documents )
Reed Swicth - 00:83:35:06 Temp Sensor - 00:83:02:E5
And then I wrote my openHAB configs as
// listing for 'model0.items' Group All Group model0_Weather (All) // EnOcean devices Switch Rocker0 (All) {enocean="{id=00:1A:34:82, eep=F6:02:01, channel=B}"} Switch Rocker1 (All) {enocean="{id=00:1A:34:82, eep=F6:02:01, channel=A}"} Number TempEnocean "Temperature [%.1f C]" <temperature> (All) {enocean="{id=00:83:02:E5, eep=A5:02:05, parameter=TEMPERATURE}"} Contact myWindow "Window [MAP(en.map):%s]" (All) {enocean="id=00:83:35:06, eep=D5:00:01, parameter=CONTACT_STATE:closed"} Group model0_Weather_Chart (model0_Weather) Number model0_Weather_Temperature "Outside Temperature [%.1f °C]" <temperature> (model0_Weather_Chart) { http="<[http://weather.yahooapis.com/forecastrss?w=2295424&u=c:60000:XSLT(yahoo_weather_temperature.xsl)]" } Number model0_Weather_Temp_Max "Todays Maximum [%.1f °C]" <temperature> (model0_Weather_Chart) Number model0_Weather_Temp_Min "Todays Minimum [%.1f °C]" <temperature> (model0_Weather_Chart) Number model0_Weather_Chart_Period "Chart Period" DateTime model0_Weather_LastUpdate "Last Update [%1$ta %1$tR]" <clock>
and
// listing for 'model0.sitemap' sitemap model0 label="Main Menu" { Frame label="Enocean Devices" { Switch item=Rocker0 label="Rocker 0 Channel B" Switch item=Rocker1 label="Rocker 1 Channel A" Text item=TempEnocean valuecolor=[>25="orange",>15="green",>5="orange",<=5="blue"] Text item=myWindow } }
Now the problems are
1. While loading the site, temperature is not displayed. After some time( after next transmission, I guess ) temperature is updated to UI. But if I again reloads the page, it disappears.
2. Even if I'm closing and opening my reed switch with the magnet provided, this is not updated to the UI. UI always stays blank for my reed switch. Additionally, if I'm trying to reload the page, I'm getting this WARNING in openHAB runtime terminal
15:40:34.517 WARN o.o.c.t.i.s.MapTransformationService[:70] - Could not find a mapping for '-' in the file 'en.map'
I'm using the same 'en.map' file provided with sample demo of openHAB.
Please help,
vish