mvalla / openhab-addons

Add-ons for openHAB
Eclipse Public License 2.0
24 stars 16 forks source link

support for Energy Management (WHO=18) #11

Closed enrico-cc closed 5 years ago

enrico-cc commented 6 years ago

it would be nice to support the readings of power consumption

e.g. frame=*#18*51*113*1253##

thanks, Enrico

gilbertococchi commented 6 years ago

+1 to add Energy Management, here some logs about this kind of support below:

2018-09-04 01:04:31.107 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=ENERGY_MANAGEMENT not supported, frame=*#18*51*113*81##

2018-09-04 01:04:31.109 [DEBUG] [org.openwebnet.OpenGatewayBus       ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *#18*51*113*81##

2018-09-04 01:05:01.072 [INFO ] [org.openwebnet.OpenGatewayBus$a     ] - MON RECEIVED  <<<<<<<<<<< *#18*51*113*81##

2018-09-04 01:05:01.078 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=ENERGY_MANAGEMENT not supported, frame=*#18*51*113*81##

2018-09-04 01:05:01.082 [DEBUG] [org.openwebnet.OpenGatewayBus       ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *#18*51*113*81##

2018-09-04 01:05:07.357 [DEBUG] [org.openwebnet.bus.MyHomeConnection ] - ##gw-openwebnet-conn## sending MON keepalive ACK

2018-09-04 01:05:07.360 [DEBUG] [org.openwebnet.bus.MyHomeConnection ] - MON SENDING    ======>>>>>> *#*1##

2018-09-04 01:05:31.036 [INFO ] [org.openwebnet.OpenGatewayBus$a     ] - MON RECEIVED  <<<<<<<<<<< *#18*51*113*82##

2018-09-04 01:05:31.040 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=ENERGY_MANAGEMENT not supported, frame=*#18*51*113*82##

2018-09-04 01:05:31.045 [DEBUG] [org.openwebnet.OpenGatewayBus       ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *#18*51*113*82##

2018-09-04 01:05:53.013 [INFO ] [org.openwebnet.OpenGatewayBus$a     ] - MON RECEIVED  <<<<<<<<<<< *#18*51*113*80##

2018-09-04 01:05:53.018 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=ENERGY_MANAGEMENT not supported, frame=*#18*51*113*80##

2018-09-04 01:05:53.021 [DEBUG] [org.openwebnet.OpenGatewayBus       ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *#18*51*113*80##

2018-09-04 01:05:54.013 [INFO ] [org.openwebnet.OpenGatewayBus$a     ] - MON RECEIVED  <<<<<<<<<<< *#18*51*113*117##

2018-09-04 01:05:54.018 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=ENERGY_MANAGEMENT not supported, frame=*#18*51*113*117##

2018-09-04 01:05:54.022 [DEBUG] [org.openwebnet.OpenGatewayBus       ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *#18*51*113*117##

2018-09-04 01:05:55.010 [INFO ] [org.openwebnet.OpenGatewayBus$a     ] - MON RECEIVED  <<<<<<<<<<< *#18*51*113*148##

2018-09-04 01:05:55.014 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=ENERGY_MANAGEMENT not supported, frame=*#18*51*113*148##

2018-09-04 01:05:55.016 [DEBUG] [org.openwebnet.OpenGatewayBus       ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *#18*51*113*148##

2018-09-04 01:05:56.010 [INFO ] [org.openwebnet.OpenGatewayBus$a     ] - MON RECEIVED  <<<<<<<<<<< *#18*51*113*178##

2018-09-04 01:05:56.014 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=ENERGY_MANAGEMENT not supported, frame=*#18*51*113*178##

2018-09-04 01:05:56.017 [DEBUG] [org.openwebnet.OpenGatewayBus       ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *#18*51*113*178##

2018-09-04 01:05:57.008 [INFO ] [org.openwebnet.OpenGatewayBus$a     ] - MON RECEIVED  <<<<<<<<<<< *#18*51*113*208##

2018-09-04 01:05:57.012 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=ENERGY_MANAGEMENT not supported, frame=*#18*51*113*208##

2018-09-04 01:05:57.016 [DEBUG] [org.openwebnet.OpenGatewayBus       ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *#18*51*113*208##

2018-09-04 01:06:08.003 [INFO ] [org.openwebnet.OpenGatewayBus$a     ] - MON RECEIVED  <<<<<<<<<<< *#18*51*113*192##

2018-09-04 01:06:08.006 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=ENERGY_MANAGEMENT not supported, frame=*#18*51*113*192##

2018-09-04 01:06:08.010 [DEBUG] [org.openwebnet.OpenGatewayBus       ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *#18*51*113*192##

2018-09-04 01:06:18.983 [INFO ] [org.openwebnet.OpenGatewayBus$a     ] - MON RECEIVED  <<<<<<<<<<< *#18*51*113*202##

2018-09-04 01:06:18.987 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=ENERGY_MANAGEMENT not supported, frame=*#18*51*113*202##

2018-09-04 01:06:18.991 [DEBUG] [org.openwebnet.OpenGatewayBus       ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *#18*51*113*202##
alessandro-lac commented 6 years ago

+1 for Energy Management

mvalla commented 5 years ago

could you use the official BTicino client (https://www.myopen-legrandgroup.com/developers/ 51 then tab TOOLS then download and run OpenWebNet Client - Windows, exec file is OpenWebNet_Client.exe) and then connect using IP+password and send me the result of this command:

*#1018*0*7## (you have to copy as a screenshot the output window, is not possible to save the output)

and then clear the output and send the result also of this command: *#18*0##

enrico-cc commented 5 years ago

Hi Massi,

here we are: power test1 power test2

the second seems to have no reponse

mvalla commented 5 years ago

ok @enrico-cc, can you confirm that you have these 5 energy sensors and which model are they ?

  1. 51 - Energy Management Central Unit ?? Model??
  2. 72#0 - Energy Management Actuator ?? Model ??
  3. 73#0 - Energy Management Actuator ?? Model ??
  4. 74#0 - Energy Management Actuator ?? Model ??
  5. 75#0 - Energy Management Actuator ?? Model ??
enrico-cc commented 5 years ago

I have only 1 sensor (521), the other 4 items are specific actuators (523) used to turn off and on the appliance if the sensor read a value above a certain threshold. Each 523 has to be set with a number to choose the order in which they are turned off when the theshold is exeeded. They can also be turned on and off using myhomeup

If you need other details let me know!

Il dom 28 ott 2018, 19:28 M V notifications@github.com ha scritto:

ok @enrico-cc https://github.com/enrico-cc, can you confirm that you have these 5 energy sensors ?

  1. 51
  2. 72#0
  3. 73#0
  4. 74#0
  5. 75#0

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mvalla/openhab-openwebnet/issues/11#issuecomment-433729442, or mute the thread https://github.com/notifications/unsubscribe-auth/AkdUVqBSbijm7FjIQzughvECifzmqk-aks5upfdBgaJpZM4Uz8Z1 .

llegovich commented 5 years ago

+1 for energy management

mvalla commented 5 years ago

closed in release beta9-1

gabrieledaltoe commented 5 years ago

Can I use beta9 with bticino F520 ?

alessandro-lac commented 5 years ago

Hi, I'm trying to use beta9-2 with my bticino (I also have one 521 and 4 523) but it seems that the auto discovery it's not working and, if I add it manually, I receive an "OFFLINE - COMMUNICATION_ERROR". Is there anything I need to do in order to make it work?

The manual configuration is done like this: schermata 2019-02-01 alle 13 52 09

After this I receive:

schermata 2019-02-01 alle 13 53 55

Any hints?

Thanks

mvalla commented 5 years ago

@alessandrolacroce follow the test of my first comment using the official OpenWebNet client for BTcino to see if your device is discoverable in the BUS. And also you should see periodically event messages stattting with 18 that indicate a new power measurement . Post the result of he test here.

alessandro-lac commented 5 years ago

Ok, here are the results of the test:

schermata 2019-02-01 alle 19 07 59

And this:

schermata 2019-02-01 alle 19 08 24

While this is the output of the log viewer if I search for "18"

schermata 2019-02-01 alle 19 09 50

Hope it helps

mvalla commented 5 years ago

From the log, the command has found 6 devices with WHERE=71...76. Devices that have a WHERE starting with 7 are, (from OWN documentation) "Energy Management Actuators: Bticino reference: F522, F523". So 2 issues here: