Author Topic: EnOcean ESP3 Gateway plugin  (Read 21566 times)

Offline arnoz

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: EnOcean ESP3 Gateway plugin
« Reply #60 on: September 16, 2015, 04:58:45 am »
Hi all,

On my current setup (Vera Edge, ESP3 gateway, and Nodon temperature sensor (EEP: A5-02-05), I manage to pair it to the vera plugin with no pb, the device is correctly created, but no temperature is shown...

Here is my log :
Code: [Select]
50 09/16/15 10:18:10.705 luup_log:30: (EnOceanPlugin::RADIO) Handle radio telegram PROG: A5, senderId: 01-95-9E-6B, status: 00, data: 00-00-74-08 <0x74c5e520>
50 09/16/15 10:18:10.707 luup_log:30: (EnOceanPlugin::ShowSysMessage-?) mode: 1, permanent: false, message: A valid telegram has been received ! Target device : 01-95-9E-6B-02-05 Temperature Sensor <0x74c5e520>
10 09/16/15 10:18:10.724 XXX-UpdateSystemMessagesTasks now 1=EnOcean Plugin: A valid telegram has been received ! Target device : 01-95-9E-6B-02-05 Temperature Sensor timeout 0 (-1442391490) count: 6pend:A valid telegram has been received ! Target device : 01-95-9E-6B-02-05 Temperature Sensor/err:(null)/done:(null) <0x7765e520>
50 09/16/15 10:41:00.596 luup_log:30: (EnOceanPlugin::RADIO) Handle radio telegram PROG: A5, senderId: 01-95-9E-6B, status: 00, data: 00-00-75-08 <0x74c5e520>
50 09/16/15 10:41:00.599 luup_log:30: (EnOceanPlugin::ShowSysMessage-?) mode: 1, permanent: false, message: A valid telegram has been received ! Target device : 01-95-9E-6B-02-05 Temperature Sensor <0x74c5e520>
10 09/16/15 10:41:00.616 XXX-UpdateSystemMessagesTasks now 1=EnOcean Plugin: A valid telegram has been received ! Target device : 01-95-9E-6B-02-05 Temperature Sensor timeout 0 (-1442392860) count: 6pend:A valid telegram has been received ! Target device : 01-95-9E-6B-02-05 Temperature Sensor/err:(null)/done:(null) <0x7765e520>

What I don't get, but I know nothing about the enOcean protocol, is how could the plugin receive a valid telegram and not update the sensors value/variable ?

If anyone has a clue or a idea where to look ?
« Last Edit: September 16, 2015, 05:01:05 am by arnoz »

Offline hmb

  • Full Member
  • ***
  • Posts: 139
  • Karma: +5/-2
Re: EnOcean ESP3 Gateway plugin
« Reply #61 on: September 16, 2015, 05:34:57 am »
As you can tell from the previous postings to this discussion, virtually all the testing and debugging of the EnOcean plugin was done with occupancy sensor devices. It is entirely possible that although communication with other devices (like your temperature sensor) might seem to work, the plugin does not properly support them.

andreimios

  • Guest
Re: EnOcean ESP3 Gateway plugin
« Reply #62 on: September 17, 2015, 01:59:33 am »
@hmb

When I continued developing the plugin I had only rocker switches, support for other devices was done blindly and tested by some users. Other devices can be added but to be hones, I'm really busy now and I don't know when I will have the time for this(my management must approve this also).
If there is someone that want to improve the plugin, I can give them the code, just let me know.

Best Regards,

- Andrei -

Offline wilme2

  • Hero Member
  • *****
  • Posts: 1212
  • Karma: +27/-13
Re: EnOcean ESP3 Gateway plugin
« Reply #63 on: September 17, 2015, 10:04:29 am »
arnoz, it shouldn't be that hard to fix.  The messaging is real simple - we should be able to debug it with your log files and/or DolphinView...
Long Live UI5!  (OK finally made the switch to UI7 in January 2018, and am pretty happy....)

Offline vosmont

  • Hero Member
  • *****
  • Posts: 687
  • Karma: +60/-8
Re: EnOcean ESP3 Gateway plugin
« Reply #64 on: October 26, 2015, 08:28:46 am »
1.6 version of EnOcean plugin is now available. Fixes for occupancy sensor are included in this version and also I add a "enoceanUIswitch" variable for updating an "EnOcean switch" generated by plugin based on corresponding UI switch generated by "physical EnOcean Gateway" (on every switch generated by plugin you will find this variable. Put here the id of the "physical EnOcean Gateway" and every time it is changing its state, "EnOcean switch" generated by plugin will be updated ).

Hello Andrei,
I'm not sure to understand the fonctionnality.
All my switches (except these created by the plugin) have this variable "enoceanUIswitch".
Why all my devices are modified ?

Offline wilme2

  • Hero Member
  • *****
  • Posts: 1212
  • Karma: +27/-13
Re: EnOcean ESP3 Gateway plugin
« Reply #65 on: October 26, 2015, 09:59:17 am »
Hello Andrei,
I'm not sure to understand the fonctionnality.
All my switches (except these created by the plugin) have this variable "enoceanUIswitch".
Why all my devices are modified ?

My non-EnOcean switches have that variable as well, and I have seen no ill effects...  (I don't have any EnOcean switches)
Long Live UI5!  (OK finally made the switch to UI7 in January 2018, and am pretty happy....)

Offline theguy

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: EnOcean ESP3 Gateway plugin
« Reply #66 on: November 03, 2015, 12:04:05 am »
Hi all,

I am trying to control an actuator using my Veraedge, the actuator learn Rocker switch by listenning for 3 on clic in leraning mode. I don't understand how to emulate the 3 clic wuth my Vera. Any clue ?

Thanks

Offline wilme2

  • Hero Member
  • *****
  • Posts: 1212
  • Karma: +27/-13
Re: EnOcean ESP3 Gateway plugin
« Reply #67 on: March 14, 2016, 04:54:46 pm »
Is anyone using the Leviton WSCOM-3W for the Vera USB connection instead of the standard EnOcean USB stick?  The Leviton has a much more robust antenna.  http://www.leviton.com/OA_HTML/SectionDisplay.jsp?section=57694&minisite=10251


Also, has anyone tried using two instances of the plug-in with two different USB sticks?  My house is equipped with all 315 Mhz products - roughly 20 WSC04-IRWs, which cost between $35-$75 each, and a WSWDR-I0W for which I paid $150.  But I have been seeing the newer 902 Mhz WSWDR-H9W on eBay for around $25 each.  Today I just bought a lot of 10 WSWDR-H9Ws for $100 - less than a tenth what I paid for the 315 Mhz version.  If we can now get wireless + solar occupancy sensors for $10 (or even $25), then EnOcean goes from an expensive sensor network for Vera to the cheapest available...   So I want to test both 315 Mhz and 902 Mhz at the same time.  I will have to order a 902 Mhz USB stick...
Long Live UI5!  (OK finally made the switch to UI7 in January 2018, and am pretty happy....)

Offline pskimac

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: EnOcean ESP3 Gateway plugin
« Reply #68 on: April 30, 2016, 11:55:06 am »
Hi,
I just moved from a Vera Lite to a Vera Plus; almost everything works fine.
I had to reinstall the EnOcean plugin after the migration because I had some I/O error logged; my USB EnOcean Gateway key seems now to be recognized but, I'm unable to make it learn my EnOcean switch.
Has anyone moved successfully this plugin to a Vera Plus?
Thanks,

Offline wilme2

  • Hero Member
  • *****
  • Posts: 1212
  • Karma: +27/-13
Re: EnOcean ESP3 Gateway plugin
« Reply #69 on: June 21, 2016, 03:59:40 pm »
I just paired a light sensor.  (Leviton WSCPC-W). 
It paired fine, created a light sensor device, but the Light Level is stuck on "0".
I know it is sending and being received, Vera shows "A valid telegram has been received ! Target device : 00-03-C6-3D-06-02 Light sensor" every 60 seconds or so.

Indeed I see in the log:
Code: [Select]
50 6/21/16 2:50:08 PM luup_log:8: (EnOceanPlugin::RADIO) Handle radio telegram PROG: A5, senderId: 00-03-C6-3D, status: 00, data: CB-00-A9-2E <0x2f890680>
50 6/21/16 2:50:08 PM luup_log:8: (EnOceanPlugin::4BS)7 Device known: 114 <0x2f890680>
50 6/21/16 2:50:08 PM luup_log:8: (EnOceanPlugin::ShowSysMessage-?) mode: 1, permanent: false, message: A valid telegram has been received ! Target device : 00-03-C6-3D-06-02 Light sensor <0x2f890680>
6 6/21/16 2:50:08 PM Device_Variable::m_szValue_set device: 114 service: urn:upnp-org:serviceId:TemperatureSensor1 variable: CurrentLevel was: 676 now: 676 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2f890680>

Are we updating the wrong CurrentLevel?  There are two CurrentLevel variables.  Maybe one was Light Sensor and now we accidentally created TemperatureSensor1?
Long Live UI5!  (OK finally made the switch to UI7 in January 2018, and am pretty happy....)

Offline wilme2

  • Hero Member
  • *****
  • Posts: 1212
  • Karma: +27/-13
Re: EnOcean ESP3 Gateway plugin
« Reply #70 on: June 21, 2016, 04:17:08 pm »
Yep, the wrong SID.  SID.TEMP instead of SID.LIGHT.

One minor change (plus disabled the notification message) and the light sensor is working.  I attached my current custom code with my previous changes...

Code: [Select]
-- Light sensor
--
elseif eepFunc == 0x06 then
if not g_childDevices[altid] then
log( "(EnOceanPlugin::4BS)6 Device not known. Return" )
return
end
log( "(EnOceanPlugin::4BS)7 Device known: ".. g_childDevices[altid] )
-- wilme2 comment out on 20160621: ShowSysMessage( "A valid telegram has been received ! Target device : " .. altid .. " Light sensor" )
local range = GetValueAtLocation( data, LOCATIONS["4BS_06_RS"] )
local location = (range == 0) and LOCATIONS["4BS_06_ILL1"] or LOCATIONS["4BS_06_ILL2"]
local lux = GetValueAtLocation( data, location ) -- 0...255
-- Light sensor types:
-- 1 : 600...60000 / 300...30000 lux
-- 2 :   0... 1020 /   0...  510 lux
local minLux = 0
local maxLux = 0
if eepType == 0x01 then
minLux = (range == 0) and 600 or 300
maxLux = (range == 0) and 60000 or 30000
elseif eepType == 0x02 then
maxLux = (range == 0) and 1020 or 510
end
lux = math.floor( minLux + lux * (maxLux - minLux) / 255 ) -- minLux...maxLux
-- wilme2 comment out on 20160621: luup.variable_set( SID.TEMP, "CurrentLevel", lux, g_childDevices[altid] )
luup.variable_set( SID.LIGHT, "CurrentLevel", lux, g_childDevices[altid] )
« Last Edit: June 21, 2016, 04:31:24 pm by wilme2 »
Long Live UI5!  (OK finally made the switch to UI7 in January 2018, and am pretty happy....)

Offline lholho

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
Re: EnOcean ESP3 Gateway plugin
« Reply #71 on: October 01, 2016, 02:39:13 am »
I have a Leviton WSP05-10 3 Wire Relay Receiver.   I can't seem to figure out how to get the USB300C with Vera paired with the relay receiver so that I can toggle it from the Vera.    Any thoughts or ideas?     

Furthermore, what is the purpose of teach-in with pin code?

I have no problem using the USB300C as a receiver from wireless switches.

Offline wilme2

  • Hero Member
  • *****
  • Posts: 1212
  • Karma: +27/-13
Re: EnOcean ESP3 Gateway plugin
« Reply #72 on: September 20, 2017, 06:02:18 pm »
Also, has anyone tried using two instances of the plug-in with two different USB sticks?  My house is equipped with all 315 Mhz products - roughly 20 WSC04-IRWs, which cost between $35-$75 each, and a WSWDR-I0W for which I paid $150.  But I have been seeing the newer 902 Mhz WSWDR-H9W on eBay for around $25 each.  Today I just bought a lot of 10 WSWDR-H9Ws for $100 - less than a tenth what I paid for the 315 Mhz version.  If we can now get wireless + solar occupancy sensors for $10 (or even $25), then EnOcean goes from an expensive sensor network for Vera to the cheapest available...   So I want to test both 315 Mhz and 902 Mhz at the same time.  I will have to order a 902 Mhz USB stick...

So I solved this issue with the two frequencies.  I put in a EnOcean cross-band repeater, that takes signals at 315 Mhz and repeats them at 902 Mhz, and vice-versa.  It repeats the teach-ins and everything, so you can add devices in the other frequency as normal.  The only downsides are price, availability, and having another device to mount. 

Expensive at $315 + shipping from Canada, but for me cheaper than replacing my whole network of twenty 315 Mhz sensors ($1000 minimum), and now I can just add 902 Mhz as I want.  And if I wanted to move to HA system with EnOcean based on 902 Mhz (Zipato), this would let me use my 315 mhz devices on that other system too... 

Availability - from specialty lighting retailers, the link can point to someone local to you.  They will have to special order the device.

Mounting - small form factor, but you will want it centrally located and powered (does not come with power supply - it can take a AC or DC in a range of voltages) - for me it was pretty easy, I already had a wireless repeater for my alarm system inside a wall with a run from a 24 V alarm panel power supply.  I just mounted next to that device inside the wall and connected in line to the same power supply.

http://www.echoflexsolutions.com/products/controllers/process-control/cbr-cross-band-repeater
Long Live UI5!  (OK finally made the switch to UI7 in January 2018, and am pretty happy....)

Offline bobtob

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: EnOcean ESP3 Gateway plugin
« Reply #73 on: July 15, 2018, 09:51:33 pm »
Anyone has plugin available?
Can not download from http://apps.mios.com/

Offline wilme2

  • Hero Member
  • *****
  • Posts: 1212
  • Karma: +27/-13
Re: EnOcean ESP3 Gateway plugin
« Reply #74 on: July 19, 2018, 11:51:41 am »
Anyone has plugin available?
Can not download from http://apps.mios.com/

I see it there as http://apps.mios.com/plugin.php?id=5106
I logged into one of my UI7s, and confirmed if you search "EnOcean" it comes up as available to install (version 1.6)
Long Live UI5!  (OK finally made the switch to UI7 in January 2018, and am pretty happy....)