Integrate Siemens Logo (plclogo) in OpenHAB 2

openhab2
binding
siemens
Tags: #<Tag:0x00007fe05939fc10> #<Tag:0x00007fe05939f828> #<Tag:0x00007fe05939f6e8>

(Jfix) #42

I know it may seem dumb but what or where to look now ?

figured out now that i need to link that to item but i dont know what item should i make i cant link it to an item switch or number item. im very new to this so bare with me im getting smarter every hour :smiley:


(Alexander Falkenstern) #43

According to the documentation, Channel - Chapter, you need “Switch”-Items for digital outputs.
Can you take a look please, if your bridge is “Online”?


(Jfix) #44

Under Things there is
Siemens LOGO! PLC and green status ONLINE
If i click on that Q1 nothing happens if i click to same blue ring in weather app binding it works well and asks me to what item to link or smthn


(Alexander Falkenstern) #45

I thinks it’s why thing is offline. Is there something in log-file?
My be it’s the same problem @BlackAlpha found some posts above.


(Jfix) #46

My log when i configure system item linking to easy mode then i get a switch to homepage and if i switch it i get this:

2017-04-04 22:47:30.560 [INFO ] [lclogo.discovery.PLCDiscoveryService] - LOGO! device found at: 192.168.1.50.
2017-04-04 22:47:35.067 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'plclogo:device:192_168_1_50' to inbox.
2017-04-04 22:52:00.662 [INFO ] [ome.core.thing.internal.ThingManager] - Not delegating command 'ON' for item 'plclogo_digital_028c2fac_state' to handler for channel 'plclogo:digital:028c2fac:state', because handler is not initialized (thing must be in status UNKNOWN, ONLINE or OFFLINE).

(Alexander Falkenstern) #47

Can you activate debug logging for binding and send me complete log file via PM?
BTW. Take a look into example section in documentation.

Thanks.


(Jens) #48

Hi all,

i have 4 Logo’s with 16 output’s, 24 input’s and 16 network input’s(i use a VB for each) per Logo and although discovery is nice it’s a lot of things and items to add and click on.

I made a sheet that gives me an easy to “copy and paste” list and add it with Eclipse SmartHome Designer.

Maybe someone has a use for it.


(Alexander Falkenstern) #49

Hi @jens,
cool:-) Sadly I’ve not found better solution for this, since channels can not be modified via Paper-UI.
Currently i think really hard about to make one thing for digital/analog inputs/outputs. This would reduce
a number of things rapidly. In this case, i should prohibit to create some things, for example digital-input thing, twice.
And sadly, I#ve no idea how to do this :frowning:

Greetings,

Alexander.


(Carsten) #50

Hi,

if I use HABmin to change the config, adding a new Logo is no problem, but adding a digital block shows an empty bridge drop down. Clicking on save adds a faulty thing. If I edit this thing, I could select a bridge and save the changes. Changing the block/memory isn’t possible.

I don’t know if it’s the same problem as using the PaperUI or if it’s a HABmin bug.

Greetings,
BlackAlpha


(Jfix) #51

@falkena Hi, Any news ?


(Jens) #52

Hi Alexander,

is there any limit to the amount of the things for the binding?

After testing the binding and finding the rules i need to get the functions i want, i began to setup all my thing’s.

As i have 4 Logo’s that made this these configuration files:

Logo.things
Bridge plclogo:device:Logo1 [ address="192.168.0.181", family="0BA7", localTSAP="0x1000", remoteTSAP="0x2000", refresh ="1000" ]
{
	Thing plclogo:digital:Logo_1_Q_1 [ block="Q1" ]
	Thing plclogo:digital:Logo_1_Q_2 [ block="Q2" ]
	Thing plclogo:digital:Logo_1_Q_3 [ block="Q3" ]
	Thing plclogo:digital:Logo_1_Q_4 [ block="Q4" ]
	Thing plclogo:digital:Logo_1_Q_5 [ block="Q5" ]
	Thing plclogo:digital:Logo_1_Q_6 [ block="Q6" ]
	Thing plclogo:digital:Logo_1_Q_7 [ block="Q7" ]
	Thing plclogo:digital:Logo_1_Q_8 [ block="Q8" ]
	Thing plclogo:digital:Logo_1_Q_9 [ block="Q9" ]
	Thing plclogo:digital:Logo_1_Q_10 [ block="Q10" ]
	Thing plclogo:digital:Logo_1_Q_11 [ block="Q11" ]
	Thing plclogo:digital:Logo_1_Q_12 [ block="Q12" ]
	Thing plclogo:digital:Logo_1_Q_13 [ block="Q13" ]
	Thing plclogo:digital:Logo_1_Q_14 [ block="Q14" ]
	Thing plclogo:digital:Logo_1_Q_15 [ block="Q15" ]
	Thing plclogo:digital:Logo_1_Q_16 [ block="Q16" ]
	
	Thing plclogo:digital:Logo_1_VB_101_0 [ block="VB101.0" ]
	Thing plclogo:digital:Logo_1_VB_102_0 [ block="VB102.0" ]
	Thing plclogo:digital:Logo_1_VB_103_0 [ block="VB103.0" ]
	Thing plclogo:digital:Logo_1_VB_104_0 [ block="VB104.0" ]
	Thing plclogo:digital:Logo_1_VB_105_0 [ block="VB105.0" ]
	Thing plclogo:digital:Logo_1_VB_106_0 [ block="VB106.0" ]
	Thing plclogo:digital:Logo_1_VB_107_0 [ block="VB107.0" ]
	Thing plclogo:digital:Logo_1_VB_108_0 [ block="VB108.0" ]
	Thing plclogo:digital:Logo_1_VB_109_0 [ block="VB109.0" ]
	Thing plclogo:digital:Logo_1_VB_110_0 [ block="VB110.0" ]
	Thing plclogo:digital:Logo_1_VB_111_0 [ block="VB111.0" ]
	Thing plclogo:digital:Logo_1_VB_112_0 [ block="VB112.0" ]
	Thing plclogo:digital:Logo_1_VB_113_0 [ block="VB113.0" ]
	Thing plclogo:digital:Logo_1_VB_114_0 [ block="VB114.0" ]
	Thing plclogo:digital:Logo_1_VB_115_0 [ block="VB115.0" ]
	Thing plclogo:digital:Logo_1_VB_116_0 [ block="VB116.0" ]
	
	Thing plclogo:analog:Logo_1_VW_452 [ block="452", threshold="1" ]
	Thing plclogo:analog:Logo_1_VW_456 [ block="456", threshold="1" ]
	Thing plclogo:analog:Logo_1_VW_460 [ block="460", threshold="1" ]
	Thing plclogo:analog:Logo_1_VW_464 [ block="464", threshold="1" ]
}
	
Bridge plclogo:device:Logo2 [ address="192.168.0.182", family="0BA7", localTSAP="0x1000", remoteTSAP="0x2000", refresh ="1000" ]
{
	Thing plclogo:digital:Logo_2_Q_1 [ block="Q1" ]
        ...
        had to cut some text out because of post limitations
        ...
	Thing plclogo:digital:Logo_2_Q_16 [ block="Q16" ]
	
	Thing plclogo:digital:Logo_2_VB_201_0 [ block="VB201.0" ]
        ...
        had to cut some text out because of post limitations
        ...
	Thing plclogo:digital:Logo_2_VB_216_0 [ block="VB216.0" ]
	
	Thing plclogo:analog:Logo_2_VW_452 [ block="VW452", threshold="1" ]
	Thing plclogo:analog:Logo_2_VW_456 [ block="VW456", threshold="1" ]	
}
Bridge plclogo:device:Logo3 [ address="192.168.0.183", family="0BA7", localTSAP="0x1000", remoteTSAP="0x2000", refresh ="1000" ]
{
	Thing plclogo:digital:Logo_3_Q_1 [ block="Q1" ]
        ...
        had to cut some text out because of post limitations
        ...
	Thing plclogo:digital:Logo_3_Q_16 [ block="Q16" ]
	
	Thing plclogo:digital:Logo_3_VB_301_0 [ block="VB301.0" ]
        ...
        had to cut some text out because of post limitations
        ...
	Thing plclogo:digital:Logo_3_VB_316_0 [ block="VB316.0" ]
	
	Thing plclogo:analog:Logo_3_VW_352 [ block="VW352", threshold="1" ]
	Thing plclogo:analog:Logo_3_VW_356 [ block="VW356", threshold="1" ]
}
Bridge plclogo:device:Logo4 [ address="192.168.0.184", family="0BA7", localTSAP="0x1000", remoteTSAP="0x2000", refresh ="1000" ]
{
	Thing plclogo:digital:Logo_4_Q_1 [ block="Q1" ]
        ...
        had to cut some text out because of post limitations
        ...
	Thing plclogo:digital:Logo_4_Q_16 [ block="Q16" ]
	
	Thing plclogo:digital:Logo_4_VB_401_0 [ block="VB401.0" ]
        ...
        had to cut some text out because of post limitations
        ...
	Thing plclogo:digital:Logo_4_VB_416_0 [ block="VB416.0" ]
	
	Thing plclogo:analog:Logo_4_VW_452 [ block="452", threshold="1" ]
	Thing plclogo:analog:Logo_4_VW_456 [ block="456", threshold="1" ]
	Thing plclogo:analog:Logo_4_VW_460 [ block="460", threshold="1" ]
}

// vim: syntax=Xtend
Logo.items
Switch  Logo_1_state_Q_1    {channel="plclogo:digital:Logo_1_Q_1:state"}
Switch  Logo_1_state_Q_2    {channel="plclogo:digital:Logo_1_Q_2:state"}
Switch  Logo_1_state_Q_3    {channel="plclogo:digital:Logo_1_Q_3:state"}
Switch  Logo_1_state_Q_4    {channel="plclogo:digital:Logo_1_Q_4:state"}
Switch  Logo_1_state_Q_5    {channel="plclogo:digital:Logo_1_Q_5:state"}
Switch  Logo_1_state_Q_6    {channel="plclogo:digital:Logo_1_Q_6:state"}
Switch  Logo_1_state_Q_7    {channel="plclogo:digital:Logo_1_Q_7:state"}
Switch  Logo_1_state_Q_8    {channel="plclogo:digital:Logo_1_Q_8:state"}
Switch  Logo_1_state_Q_9    {channel="plclogo:digital:Logo_1_Q_9:state"}
Switch  Logo_1_state_Q_10    {channel="plclogo:digital:Logo_1_Q_10:state"}
Switch  Logo_1_state_Q_11    {channel="plclogo:digital:Logo_1_Q_11:state"}
Switch  Logo_1_state_Q_12    {channel="plclogo:digital:Logo_1_Q_12:state"}
Switch  Logo_1_state_Q_13    {channel="plclogo:digital:Logo_1_Q_13:state"}
Switch  Logo_1_state_Q_14    {channel="plclogo:digital:Logo_1_Q_14:state"}
Switch  Logo_1_state_Q_15    {channel="plclogo:digital:Logo_1_Q_15:state"}
Switch  Logo_1_state_Q_16    {channel="plclogo:digital:Logo_1_Q_16:state"}

Switch  Logo_1_state_VB_101_0    {channel="plclogo:digital:Logo_1_VB_101_0:state"}
Switch  Logo_1_state_VB_102_0    {channel="plclogo:digital:Logo_1_VB_102_0:state"}
Switch  Logo_1_state_VB_103_0    {channel="plclogo:digital:Logo_1_VB_103_0:state"}
Switch  Logo_1_state_VB_104_0    {channel="plclogo:digital:Logo_1_VB_104_0:state"}
Switch  Logo_1_state_VB_105_0    {channel="plclogo:digital:Logo_1_VB_105_0:state"}
Switch  Logo_1_state_VB_106_0    {channel="plclogo:digital:Logo_1_VB_106_0:state"}
Switch  Logo_1_state_VB_107_0    {channel="plclogo:digital:Logo_1_VB_107_0:state"}
Switch  Logo_1_state_VB_108_0    {channel="plclogo:digital:Logo_1_VB_108_0:state"}
Switch  Logo_1_state_VB_109_0    {channel="plclogo:digital:Logo_1_VB_109_0:state"}
Switch  Logo_1_state_VB_110_0    {channel="plclogo:digital:Logo_1_VB_110_0:state"}
Switch  Logo_1_state_VB_111_0    {channel="plclogo:digital:Logo_1_VB_111_0:state"}
Switch  Logo_1_state_VB_112_0    {channel="plclogo:digital:Logo_1_VB_112_0:state"}
Switch  Logo_1_state_VB_113_0    {channel="plclogo:digital:Logo_1_VB_113_0:state"}
Switch  Logo_1_state_VB_114_0    {channel="plclogo:digital:Logo_1_VB_114_0:state"}
Switch  Logo_1_state_VB_115_0    {channel="plclogo:digital:Logo_1_VB_115_0:state"}
Switch  Logo_1_state_VB_116_0    {channel="plclogo:digital:Logo_1_VB_116_0:state"}

Switch  Logo_2_state_Q_1    {channel="plclogo:digital:Logo_2_Q_1:state"}
        ...
        had to cut some text out because of post limitations
        ...
Switch  Logo_2_state_Q_16    {channel="plclogo:digital:Logo_2_Q_16:state"}

Switch  Logo_2_state_VB_201_0    {channel="plclogo:digital:Logo_2_VB_201_0:state"}
        ...
        had to cut some text out because of post limitations
        ...
Switch  Logo_2_state_VB_216_0    {channel="plclogo:digital:Logo_2_VB_216_0:state"}

Contact  Logo_2_state_I_1    {channel="plclogo:digital:Logo_2_I_1:state"}
Contact  Logo_2_state_I_2    {channel="plclogo:digital:Logo_2_I_2:state"}
Contact  Logo_2_state_I_3    {channel="plclogo:digital:Logo_2_I_3:state"}
Contact  Logo_2_state_I_4    {channel="plclogo:digital:Logo_2_I_4:state"}
Contact  Logo_2_state_I_5    {channel="plclogo:digital:Logo_2_I_5:state"}
Contact  Logo_2_state_I_6    {channel="plclogo:digital:Logo_2_I_6:state"}
Contact  Logo_2_state_I_7    {channel="plclogo:digital:Logo_2_I_7:state"}
Contact  Logo_2_state_I_8    {channel="plclogo:digital:Logo_2_I_8:state"}
Contact  Logo_2_state_I_9    {channel="plclogo:digital:Logo_2_I_9:state"}
Contact  Logo_2_state_I_10    {channel="plclogo:digital:Logo_2_I_10:state"}
Contact  Logo_2_state_I_11    {channel="plclogo:digital:Logo_2_I_11:state"}
Contact  Logo_2_state_I_12    {channel="plclogo:digital:Logo_2_I_12:state"}
Contact  Logo_2_state_I_13    {channel="plclogo:digital:Logo_2_I_13:state"}
Contact  Logo_2_state_I_14    {channel="plclogo:digital:Logo_2_I_14:state"}
Contact  Logo_2_state_I_15    {channel="plclogo:digital:Logo_2_I_15:state"}
Contact  Logo_2_state_I_16    {channel="plclogo:digital:Logo_2_I_16:state"}
Contact  Logo_2_state_I_17    {channel="plclogo:digital:Logo_2_I_17:state"}
Contact  Logo_2_state_I_18    {channel="plclogo:digital:Logo_2_I_18:state"}
Contact  Logo_2_state_I_19    {channel="plclogo:digital:Logo_2_I_19:state"}
Contact  Logo_2_state_I_20    {channel="plclogo:digital:Logo_2_I_20:state"}
Contact  Logo_2_state_I_21    {channel="plclogo:digital:Logo_2_I_21:state"}
Contact  Logo_2_state_I_22    {channel="plclogo:digital:Logo_2_I_22:state"}
Contact  Logo_2_state_I_23    {channel="plclogo:digital:Logo_2_I_23:state"}
Contact  Logo_2_state_I_24    {channel="plclogo:digital:Logo_2_I_24:state"}

Switch  Logo_3_state_Q_1    {channel="plclogo:digital:Logo_3_Q_1:state"}
        ...
        had to cut some text out because of post limitations
        ...
Switch  Logo_3_state_Q_16    {channel="plclogo:digital:Logo_3_Q_16:state"}

Switch  Logo_3_state_VB_301_0    {channel="plclogo:digital:Logo_3_VB_301_0:state"}
        ...
        had to cut some text out because of post limitations
        ...
Switch  Logo_3_state_VB_316_0    {channel="plclogo:digital:Logo_3_VB_316_0:state"}

Switch  Logo_4_state_Q_1    {channel="plclogo:digital:Logo_4_Q_1:state"}
        ...
        had to cut some text out because of post limitations
        ...
Switch  Logo_4_state_Q_16    {channel="plclogo:digital:Logo_4_Q_16:state"}

Switch  Logo_4_state_VB_401_0    {channel="plclogo:digital:Logo_4_VB_401_0:state"}
        ...
        had to cut some text out because of post limitations
        ...
Switch  Logo_4_state_VB_416_0    {channel="plclogo:digital:Logo_4_VB_416_0:state"}

Number Roll_state_1_Q_1_Q_2 {channel="plclogo:analog:Logo_1_VW_452:value"}
Number Roll_state_1_Q_5_Q_6 {channel="plclogo:analog:Logo_1_VW_456:value"}
Number Roll_state_1_Q_7_Q_8 {channel="plclogo:analog:Logo_1_VW_460:value"}
Number Roll_state_1_Q_14_Q_13 {channel="plclogo:analog:Logo_1_VW_464:value"}
Number Roll_state_2_Q_7_Q_8 {channel="plclogo:analog:Logo_2_VW_452:value"}
Number Roll_state_2_Q_9_Q_10 {channel="plclogo:analog:Logo_2_VW_456:value"}
Number Roll_state_3_Q_7_Q_8 {channel="plclogo:analog:Logo_3_VW_352:value"}
Number Roll_state_3_Q_10_Q_11 {channel="plclogo:analog:Logo_3_VW_356:value"}
Number Roll_state_4_Q_5_Q_6 {channel="plclogo:analog:Logo_4_VW_452:value"}
Number Roll_state_4_Q_7_Q_8 {channel="plclogo:analog:Logo_4_VW_456:value"}
Number Roll_state_4_Q_9_Q_10 {channel="plclogo:analog:Logo_4_VW_460:value"}

Rollershutter Proxy_LogoRollo_1_Q_1_Q_2 "Kinder Schlafzimmer [%d %%]" <rollershutter> (gObergeschoss, gLogoRollProxySwitch) {autoupdate="false"}
Rollershutter Proxy_LogoRollo_1_Q_5_Q_6 "Kinder Spielzimmer Fenster [%d %%]" <rollershutter> (gObergeschoss, gLogoRollProxySwitch) {autoupdate="false"}
Rollershutter Proxy_LogoRollo_1_Q_7_Q_8 "Kinder Spielzimmer Tür [%d %%]" <rollershutter> (gObergeschoss, gLogoRollProxySwitch) {autoupdate="false"}
Rollershutter Proxy_LogoRollo_1_Q_14_Q_13 "Gästezimmer [%d %%]" <rollershutter> (gObergeschoss, gLogoRollProxySwitch) {autoupdate="false"}
Rollershutter Proxy_LogoRollo_2_Q_7_Q_8 "Eltern [%d %%]" <rollershutter> (gDachgeschoss, gLogoRollProxySwitch) {autoupdate="false"}
Rollershutter Proxy_LogoRollo_2_Q_9_Q_10 "Eltern 2 [%d %%]" <rollershutter> (gDachgeschoss, gLogoRollProxySwitch) {autoupdate="false"}
Rollershutter Proxy_LogoRollo_3_Q_7_Q_8 "Gäste WC [%d %%]" <rollershutter> (gErdgeschoss, gLogoRollProxySwitch) {autoupdate="false"}
Rollershutter Proxy_LogoRollo_3_Q_10_Q_11 "Bad OG [%d %%]" <rollershutter> (gObergeschoss, gLogoRollProxySwitch) {autoupdate="false"}
Rollershutter Proxy_LogoRollo_4_Q_5_Q_6 "Küche [%d %%]" <rollershutter> (gErdgeschoss, gLogoRollProxySwitch) {autoupdate="false"}
Rollershutter Proxy_LogoRollo_4_Q_7_Q_8 "Wohnzimmer [%d %%]" <rollershutter> (gErdgeschoss, gLogoRollProxySwitch) {autoupdate="false"}
Rollershutter Proxy_LogoRollo_4_Q_9_Q_10 "Wohnzimmer 2 [%d %%]" <rollershutter> (gErdgeschoss, gLogoRollProxySwitch) {autoupdate="false"}

// Logo 1
Switch Proxy_Logo_1_Q_3 "Kinder Schlafzimmer SD" <light> (gObergeschoss, gLogoLightProxySwitch) [ "Lighting" ]
Switch Proxy_Logo_1_Q_4 "Kinder Schlafzimmer Licht" <light> (gObergeschoss, gLogoLightProxySwitch) [ "Lighting" ]
Switch Proxy_Logo_1_Q_9 "Kinder Spielzimmer Licht" <light> (gObergeschoss, gLogoLightProxySwitch) [ "Lighting" ]
Switch Proxy_Logo_1_Q_10 "Kinder Spielzimmer SD" <light> (gObergeschoss, gLogoLightProxySwitch) [ "Lighting" ]
Switch Proxy_Logo_1_Q_15 "Gästezimmer SD" <light> (gObergeschoss, gLogoLightProxySwitch) [ "Lighting" ]
Switch Proxy_Logo_1_Q_16 "Gästezimmer Licht" <light> (gObergeschoss, gLogoLightProxySwitch) [ "Lighting" ]

// Logo 2
Switch Proxy_Logo_2_Q_1 "Terrasse Licht" <light> (gTerrasse, gLogoLightProxySwitch) [ "Lighting" ]
Switch Proxy_Logo_2_Q_2 "Terrasse SD" <light> (gTerrasse, gLogoLightProxySwitch) [ "Lighting" ]
Switch Proxy_Logo_2_Q_5 "Gr. Keller Licht" <light> (gKellergeschoss, gLogoLightProxySwitch) [ "Lighting" ]
Switch Proxy_Logo_2_Q_6 "Schrank Licht" <light> (gDachgeschoss, gLogoLightProxySwitch) [ "Lighting" ]
Switch Proxy_Logo_2_Q_11 "Bett Licht" <light> (gLogoLightProxySwitch) [ "Lighting" ] 
Switch Proxy_Logo_2_Q_12 "PC Licht" <light> (gDachgeschoss, gLogoLightProxySwitch) [ "Lighting" ] 
Switch Proxy_Logo_2_Q_13 "Bett Licht Li" <light> (gDachgeschoss, gLogoLightProxySwitch) [ "Lighting" ] 
Switch Proxy_Logo_2_Q_14 "Bett Licht Re" <light> (gDachgeschoss, gLogoLightProxySwitch) [ "Lighting" ] 
Switch Proxy_Logo_2_Q_15 "Werkstatt Licht" <light> (gKellergeschoss, gLogoLightProxySwitch) [ "Lighting" ] 
Switch Proxy_Logo_2_Q_16 "Garage Licht" <light> (gKellergeschoss, gLogoLightProxySwitch) [ "Lighting" ] 

// Logo 3
Switch Proxy_Logo_3_Q_1 "KG Flur Licht" <light> (gKellergeschoss, gLogoLightProxySwitch) [ "Lighting" ]
Switch Proxy_Logo_3_Q_2 "EG Flur Licht" <light> (gErdgeschoss, gLogoLightProxySwitch) [ "Lighting" ]
Switch Proxy_Logo_3_Q_3 "EG Flur SD" <light> (gErdgeschoss, gLogoLightProxySwitch) [ "Lighting" ]
Switch Proxy_Logo_3_Q_4 "OG Flur Licht" <light> (gObergeschoss, gLogoLightProxySwitch) [ "Lighting" ]
Switch Proxy_Logo_3_Q_5 "OG Flur SD" <light> (gObergeschoss, gLogoLightProxySwitch) [ "Lighting" ]
Switch Proxy_Logo_3_Q_6 "DG Flur" <light> (gDachgeschoss, gLogoLightProxySwitch) [ "Lighting" ]
Switch Proxy_Logo_3_Q_9 "GästeWC Licht" <light> (gErdgeschoss, gLogoLightProxySwitch) [ "Lighting" ]
Switch Proxy_Logo_3_Q_12 "Bad Licht" <light> (gObergeschoss, gLogoLightProxySwitch) [ "Lighting" ]
Switch Proxy_Logo_3_Q_13 "Bad SpiegelLicht" <light> (gObergeschoss, gLogoLightProxySwitch) [ "Lighting" ]

// Logo 4
Switch Proxy_Logo_4_Q_1 "Esszimmer" <light> (gErdgeschoss, gLogoLightProxySwitch) [ "Lighting" ]
Switch Proxy_Logo_4_Q_2 "Esszimmer SD" <light> (gErdgeschoss, gLogoLightProxySwitch) [ "Lighting" ]
Switch Proxy_Logo_4_Q_3 "Küche" <light> (gErdgeschoss, gLogoLightProxySwitch) [ "Lighting" ]
Switch Proxy_Logo_4_Q_4 "Küche SD" <light> (gErdgeschoss, gLogoLightProxySwitch) [ "Lighting" ]
Switch Proxy_Logo_4_Q_11 "Wohnzimmer" <light> (gErdgeschoss, gLogoLightProxySwitch) [ "Lighting" ]
Switch Proxy_Logo_4_Q_12 "Wohnzimmer SD1" <light> (gErdgeschoss, gLogoLightProxySwitch) [ "Lighting" ]
Switch Proxy_Logo_4_Q_13 "Wohnzimmer SD2" <light> (gErdgeschoss, gLogoLightProxySwitch) [ "Lighting" ]
Switch Proxy_Logo_4_Q_15 "Wohnzimmer SD3" <light> (gErdgeschoss, gLogoLightProxySwitch) [ "Lighting" ]
Switch Proxy_Logo_4_Q_16 "Wohnzimmer SD4" <light> (gErdgeschoss, gLogoLightProxySwitch) [ "Lighting" ]



// vim: syntax=Xtend

with these rules:

Logo_Switches.rules
import org.eclipse.smarthome.core.library.items.SwitchItem
import org.eclipse.xtext.xbase.lib.Functions



val Functions.Function4 LogoSwitchLogic = [ 
	org.openhab.core.types.Command Command, SwitchItem RuleProxySwitch, SwitchItem RuleReadLogo, SwitchItem RuleSwitch  |
  logWarn("DebugOutput", "Rule start with:" + RuleProxySwitch.name.toString + " " + RuleReadLogo.name.toString + " " + RuleSwitch.name.toString )
  switch(Command)
  {
    case ON: {
    	logWarn("DebugOutput", "Rule case ON")
    	if (RuleReadLogo.state != Command) {     	// only if state changed
        	logWarn("DebugOutput", "Rule case ON:switching")
            RuleSwitch.sendCommand(ON)
            Thread::sleep(400)
            RuleSwitch.sendCommand(OFF)
            } 
    }
    case OFF: {
    	logWarn("DebugOutput", "Rule case OFF")
    	if (RuleReadLogo.state != Command) {     	// only if state changed
            logWarn("DebugOutput", "Rule case OFF:switching")
            RuleSwitch.sendCommand(ON)
            Thread::sleep(400)
            RuleSwitch.sendCommand(OFF)
            } 
    }
    default: {
    	logWarn("DebugOutput", "Rule case default")
        Thread::sleep(350)
        if (RuleReadLogo.state != RuleProxySwitch.state) { // if state changed really
        	logWarn("DebugOutput", "Rule case default:state changed externally")
            RuleProxySwitch.postUpdate(RuleReadLogo.state) // update the state without triggering the rule
            
     	}
  	}
  }
]


// Logo 1
rule "Switch Light through Logo 1_Q_3" when Item Logo_1_state_Q_3 changed or Item Proxy_Logo_1_Q_3 received command then LogoSwitchLogic.apply(receivedCommand, Proxy_Logo_1_Q_3, Logo_1_state_Q_3, Logo_1_state_VB_103_0) end	
rule "Switch Light through Logo 1_Q_4" when Item Logo_1_state_Q_4 changed or Item Proxy_Logo_1_Q_4 received command then LogoSwitchLogic.apply(receivedCommand, Proxy_Logo_1_Q_4, Logo_1_state_Q_4, Logo_1_state_VB_104_0) end	
rule "Switch Light through Logo 1_Q_9" when Item Logo_1_state_Q_9 changed or Item Proxy_Logo_1_Q_9 received command then LogoSwitchLogic.apply(receivedCommand, Proxy_Logo_1_Q_9, Logo_1_state_Q_9, Logo_1_state_VB_109_0) end	
rule "Switch Light through Logo 1_Q_10" when Item Logo_1_state_Q_10 changed or Item Proxy_Logo_1_Q_10 received command then LogoSwitchLogic.apply(receivedCommand, Proxy_Logo_1_Q_10, Logo_1_state_Q_10, Logo_1_state_VB_110_0) end	
rule "Switch Light through Logo 1_Q_15" when Item Logo_1_state_Q_15 changed or Item Proxy_Logo_1_Q_15 received command then LogoSwitchLogic.apply(receivedCommand, Proxy_Logo_1_Q_15, Logo_1_state_Q_15, Logo_1_state_VB_115_0) end	
rule "Switch Light through Logo 1_Q_16" when Item Logo_1_state_Q_16 changed or Item Proxy_Logo_1_Q_16 received command then LogoSwitchLogic.apply(receivedCommand, Proxy_Logo_1_Q_16, Logo_1_state_Q_16, Logo_1_state_VB_116_0) end	

// Logo 2
rule "Switch Light through Logo 2_Q_1" when Item Logo_2_state_Q_1 changed or Item Proxy_Logo_2_Q_1 received command then LogoSwitchLogic.apply(receivedCommand, Proxy_Logo_2_Q_1, Logo_2_state_Q_1, Logo_2_state_VB_201_0) end	
rule "Switch Light through Logo 2_Q_2" when Item Logo_2_state_Q_2 changed or Item Proxy_Logo_2_Q_2 received command then LogoSwitchLogic.apply(receivedCommand, Proxy_Logo_2_Q_2, Logo_2_state_Q_2, Logo_2_state_VB_202_0) end	
rule "Switch Light through Logo 2_Q_5" when Item Logo_2_state_Q_5 changed or Item Proxy_Logo_2_Q_5 received command then LogoSwitchLogic.apply(receivedCommand, Proxy_Logo_2_Q_5, Logo_2_state_Q_5, Logo_2_state_VB_205_0) end	
rule "Switch Light through Logo 2_Q_6" when Item Logo_2_state_Q_6 changed or Item Proxy_Logo_2_Q_6 received command then LogoSwitchLogic.apply(receivedCommand, Proxy_Logo_2_Q_6, Logo_2_state_Q_6, Logo_2_state_VB_206_0) end	
rule "Switch Light through Logo 2_Q_11" when Item Logo_2_state_Q_11 changed or Item Proxy_Logo_2_Q_11 received command then LogoSwitchLogic.apply(receivedCommand, Proxy_Logo_2_Q_11, Logo_2_state_Q_11, Logo_2_state_VB_211_0) end	
//   PC-Licht Anfang
rule "Switch Light through Logo 2_Q_12" when Item Logo_2_state_Q_12 changed or Item Proxy_Logo_2_Q_12 received command then LogoSwitchLogic.apply(receivedCommand, Proxy_Logo_2_Q_12, Logo_2_state_Q_12, Logo_2_state_VB_212_0) end	
//   PC-Licht Ende
rule "Switch Light through Logo 2_Q_13" when Item Logo_2_state_Q_13 changed or Item Proxy_Logo_2_Q_13 received command then LogoSwitchLogic.apply(receivedCommand, Proxy_Logo_2_Q_13, Logo_2_state_Q_13, Logo_2_state_VB_213_0) end	
rule "Switch Light through Logo 2_Q_14" when Item Logo_2_state_Q_14 changed or Item Proxy_Logo_2_Q_14 received command then LogoSwitchLogic.apply(receivedCommand, Proxy_Logo_2_Q_14, Logo_2_state_Q_14, Logo_2_state_VB_214_0) end	
rule "Switch Light through Logo 2_Q_15" when Item Logo_2_state_Q_15 changed or Item Proxy_Logo_2_Q_15 received command then LogoSwitchLogic.apply(receivedCommand, Proxy_Logo_2_Q_15, Logo_2_state_Q_15, Logo_2_state_VB_215_0) end	
rule "Switch Light through Logo 2_Q_16" when Item Logo_2_state_Q_16 changed or Item Proxy_Logo_2_Q_16 received command then LogoSwitchLogic.apply(receivedCommand, Proxy_Logo_2_Q_16, Logo_2_state_Q_16, Logo_2_state_VB_216_0) end	

// Logo 3
rule "Switch Light through Logo 3_Q_1" when Item Logo_3_state_Q_1 changed or Item Proxy_Logo_3_Q_1 received command then LogoSwitchLogic.apply(receivedCommand, Proxy_Logo_3_Q_1, Logo_3_state_Q_1, Logo_3_state_VB_301_0) end	
rule "Switch Light through Logo 3_Q_2" when Item Logo_3_state_Q_2 changed or Item Proxy_Logo_3_Q_2 received command then LogoSwitchLogic.apply(receivedCommand, Proxy_Logo_3_Q_2, Logo_3_state_Q_2, Logo_3_state_VB_302_0) end	
rule "Switch Light through Logo 3_Q_3" when Item Logo_3_state_Q_3 changed or Item Proxy_Logo_3_Q_3 received command then LogoSwitchLogic.apply(receivedCommand, Proxy_Logo_3_Q_3, Logo_3_state_Q_3, Logo_3_state_VB_303_0) end	
rule "Switch Light through Logo 3_Q_4" when Item Logo_3_state_Q_4 changed or Item Proxy_Logo_3_Q_4 received command then LogoSwitchLogic.apply(receivedCommand, Proxy_Logo_3_Q_4, Logo_3_state_Q_4, Logo_3_state_VB_304_0) end	
rule "Switch Light through Logo 3_Q_5" when Item Logo_3_state_Q_5 changed or Item Proxy_Logo_3_Q_5 received command then LogoSwitchLogic.apply(receivedCommand, Proxy_Logo_3_Q_5, Logo_3_state_Q_5, Logo_3_state_VB_305_0) end	
rule "Switch Light through Logo 3_Q_6" when Item Logo_3_state_Q_6 changed or Item Proxy_Logo_3_Q_6 received command then LogoSwitchLogic.apply(receivedCommand, Proxy_Logo_3_Q_6, Logo_3_state_Q_6, Logo_3_state_VB_306_0) end	
rule "Switch Light through Logo 3_Q_9" when Item Logo_3_state_Q_9 changed or Item Proxy_Logo_3_Q_9 received command then LogoSwitchLogic.apply(receivedCommand, Proxy_Logo_3_Q_9, Logo_3_state_Q_9, Logo_3_state_VB_309_0) end	
rule "Switch Light through Logo 3_Q_12" when Item Logo_3_state_Q_12 changed or Item Proxy_Logo_3_Q_12 received command then LogoSwitchLogic.apply(receivedCommand, Proxy_Logo_3_Q_12, Logo_3_state_Q_12, Logo_3_state_VB_312_0) end	
rule "Switch Light through Logo 3_Q_13" when Item Logo_3_state_Q_13 changed or Item Proxy_Logo_3_Q_13 received command then LogoSwitchLogic.apply(receivedCommand, Proxy_Logo_3_Q_13, Logo_3_state_Q_13, Logo_3_state_VB_313_0) end	

// Logo 4
rule "Switch Light through Logo 4_Q_1" when Item Logo_4_state_Q_1 changed or Item Proxy_Logo_4_Q_1 received command then LogoSwitchLogic.apply(receivedCommand, Proxy_Logo_4_Q_1, Logo_4_state_Q_1, Logo_4_state_VB_401_0) end	
rule "Switch Light through Logo 4_Q_2" when Item Logo_4_state_Q_2 changed or Item Proxy_Logo_4_Q_2 received command then LogoSwitchLogic.apply(receivedCommand, Proxy_Logo_4_Q_2, Logo_4_state_Q_2, Logo_4_state_VB_402_0) end	
rule "Switch Light through Logo 4_Q_3" when Item Logo_4_state_Q_3 changed or Item Proxy_Logo_4_Q_3 received command then LogoSwitchLogic.apply(receivedCommand, Proxy_Logo_4_Q_3, Logo_4_state_Q_3, Logo_4_state_VB_403_0) end	
rule "Switch Light through Logo 4_Q_4" when Item Logo_4_state_Q_4 changed or Item Proxy_Logo_4_Q_4 received command then LogoSwitchLogic.apply(receivedCommand, Proxy_Logo_4_Q_4, Logo_4_state_Q_4, Logo_4_state_VB_404_0) end	
rule "Switch Light through Logo 4_Q_11" when Item Logo_4_state_Q_11 changed or Item Proxy_Logo_4_Q_11 received command then LogoSwitchLogic.apply(receivedCommand, Proxy_Logo_4_Q_11, Logo_4_state_Q_11, Logo_4_state_VB_411_0) end	
rule "Switch Light through Logo 4_Q_12" when Item Logo_4_state_Q_12 changed or Item Proxy_Logo_4_Q_12 received command then LogoSwitchLogic.apply(receivedCommand, Proxy_Logo_4_Q_12, Logo_4_state_Q_12, Logo_4_state_VB_412_0) end	
rule "Switch Light through Logo 4_Q_13" when Item Logo_4_state_Q_13 changed or Item Proxy_Logo_4_Q_13 received command then LogoSwitchLogic.apply(receivedCommand, Proxy_Logo_4_Q_13, Logo_4_state_Q_13, Logo_4_state_VB_413_0) end	
rule "Switch Light through Logo 4_Q_15" when Item Logo_4_state_Q_15 changed or Item Proxy_Logo_4_Q_15 received command then LogoSwitchLogic.apply(receivedCommand, Proxy_Logo_4_Q_15, Logo_4_state_Q_15, Logo_4_state_VB_415_0) end	
rule "Switch Light through Logo 4_Q_16" when Item Logo_4_state_Q_16 changed or Item Proxy_Logo_4_Q_16 received command then LogoSwitchLogic.apply(receivedCommand, Proxy_Logo_4_Q_16, Logo_4_state_Q_16, Logo_4_state_VB_416_0) end	

// vim: syntax=Xtend
Logo_Shutters.rules
import org.eclipse.smarthome.core.library.items.SwitchItem
import org.eclipse.xtext.xbase.lib.Functions

val Functions.Function5 LogoRolloLogic = [ 
	org.openhab.core.types.Command Command, SwitchItem RuleProxySwitch, SwitchItem RuleRollState, SwitchItem RuleSwitchUp, SwitchItem RuleSwitchDown  |
  switch(Command)
  {
    case UP: {
    	RuleSwitchUp.sendCommand(ON)
		Thread::sleep(150)
		RuleSwitchUp.sendCommand(OFF)
    }
    case DOWN: {
    	RuleSwitchDown.sendCommand(ON)
	    Thread::sleep(150)
	    RuleSwitchDown.sendCommand(OFF)
    }
    case STOP: {
      if(RuleRollState.state == 2 || RuleRollState.state==0){
	    		RuleSwitchDown.sendCommand(ON)
	    		Thread::sleep(1300)
	    		RuleSwitchDown.sendCommand(OFF)
	    	}
	    	else
	    	{
		    	RuleSwitchUp.sendCommand(ON)
				Thread::sleep(150)
				RuleSwitchUp.sendCommand(OFF)	
	    	}
    }
    default: {
    	switch RuleRollState.state {
 			case 0 : RuleProxySwitch.postUpdate(100)
 			case 1 : RuleProxySwitch.postUpdate(50)
 			case 2 : RuleProxySwitch.postUpdate(0)
  			default : RuleProxySwitch.postUpdate(0)
		}
    }
  }
]

rule "Rollershutter up_down Logo_1_Q1_Q2" when Item Roll_state_1_Q_1_Q_2 changed or Item Proxy_LogoRollo_1_Q_1_Q_2 received command then LogoRolloLogic.apply(receivedCommand, Proxy_LogoRollo_1_Q_1_Q_2, Roll_state_1_Q_1_Q_2, Logo_1_state_VB_101_0, Logo_1_state_VB_102_0 ) end
rule "Rollershutter up_down Logo_1_Q5_Q6" when Item Roll_state_1_Q_5_Q_6 changed or Item Proxy_LogoRollo_1_Q_5_Q_6 received command then LogoRolloLogic.apply(receivedCommand, Proxy_LogoRollo_1_Q_5_Q_6, Roll_state_1_Q_5_Q_6, Logo_1_state_VB_105_0, Logo_1_state_VB_106_0 ) end
rule "Rollershutter up_down Logo_1_Q7_Q8" when Item Roll_state_1_Q_7_Q_8 changed or Item Proxy_LogoRollo_1_Q_7_Q_8 received command then LogoRolloLogic.apply(receivedCommand, Proxy_LogoRollo_1_Q_7_Q_8, Roll_state_1_Q_7_Q_8, Logo_1_state_VB_107_0, Logo_1_state_VB_108_0 ) end
rule "Rollershutter up_down Logo_1_Q14_Q13" when Item Roll_state_1_Q_14_Q_13 changed or Item Proxy_LogoRollo_1_Q_14_Q_13 received command then LogoRolloLogic.apply(receivedCommand, Proxy_LogoRollo_1_Q_14_Q_13, Roll_state_1_Q_14_Q_13, Logo_1_state_VB_114_0, Logo_1_state_VB_113_0 ) end

rule "Rollershutter up_down Logo_2_Q7_Q8" when Item Roll_state_2_Q_7_Q_8 changed or Item Proxy_LogoRollo_2_Q_7_Q_8 received command then LogoRolloLogic.apply(receivedCommand, Proxy_LogoRollo_2_Q_7_Q_8, Roll_state_2_Q_7_Q_8, Logo_2_state_VB_207_0, Logo_2_state_VB_208_0 ) end
rule "Rollershutter up_down Logo_2_Q9_Q10" when Item Roll_state_2_Q_9_Q_10 changed or Item Proxy_LogoRollo_2_Q_9_Q_10 received command then LogoRolloLogic.apply(receivedCommand, Proxy_LogoRollo_2_Q_9_Q_10, Roll_state_2_Q_9_Q_10, Logo_2_state_VB_209_0, Logo_2_state_VB_210_0 ) end

rule "Rollershutter up_down Logo_3_Q7_Q8" when Item Roll_state_3_Q_7_Q_8 changed or Item Proxy_LogoRollo_3_Q_7_Q_8 received command then LogoRolloLogic.apply(receivedCommand, Proxy_LogoRollo_3_Q_7_Q_8, Roll_state_3_Q_7_Q_8, Logo_3_state_VB_307_0, Logo_3_state_VB_308_0 ) end
rule "Rollershutter up_down Logo_3_Q10_Q11" when Item Roll_state_3_Q_10_Q_11 changed or Item Proxy_LogoRollo_3_Q_10_Q_11 received command then LogoRolloLogic.apply(receivedCommand, Proxy_LogoRollo_3_Q_10_Q_11, Roll_state_3_Q_10_Q_11, Logo_3_state_VB_310_0, Logo_3_state_VB_311_0 ) end
rule "Rollershutter up_down Logo_4_Q5_Q6" when Item Roll_state_4_Q_5_Q_6 changed or Item Proxy_LogoRollo_4_Q_5_Q_6 received command then LogoRolloLogic.apply(receivedCommand, Proxy_LogoRollo_4_Q_5_Q_6, Roll_state_4_Q_5_Q_6, Logo_4_state_VB_405_0, Logo_4_state_VB_406_0 ) end

rule "Rollershutter up_down Logo_4_Q7_Q8" when Item Roll_state_4_Q_7_Q_8 changed or Item Proxy_LogoRollo_4_Q_7_Q_8 received command then LogoRolloLogic.apply(receivedCommand, Proxy_LogoRollo_4_Q_7_Q_8, Roll_state_4_Q_7_Q_8, Logo_4_state_VB_407_0, Logo_4_state_VB_408_0 ) end
rule "Rollershutter up_down Logo_4_Q9_Q10" when Item Roll_state_4_Q_9_Q_10 changed or Item Proxy_LogoRollo_4_Q_9_Q_10 received command then LogoRolloLogic.apply(receivedCommand, Proxy_LogoRollo_4_Q_9_Q_10, Roll_state_4_Q_9_Q_10, Logo_4_state_VB_409_0, Logo_4_state_VB_410_0 ) end

// vim: syntax=Xtend

I put the ProxyItems in my sitemap.

But somehow the binding seems to stop getting updates from Logo’s…

I can still trigger a proxy switch and the Logo will change the output Q, but i do not get the updated status of the logo’s Q back. Now if i trigger a light externally (wall push button) i won’t see it in openhab at all and i am out of sync…

I already reduced the refresh time to 1000ms, that seemed to make more things possible but some time later it stop’s working too. If i go without:

Thing plclogo:analog:Logo_1_VW_452 [ block="452", threshold="1" ]

the status updates are working even longer, but stop working nevertheless.

I didn’t see any errors, but as i am not very experienced in openhab, maybe i was looking at the wrong log. I did:

log:set TRACE org.openhab.binding.plclogo

but there is no messages indicating a error…

Do you have any Idea? If you need any log’s, tell me. You can PM me, if you like (i’m german :wink: ). I’m really interested i going deeper into it…

Thanks and greets
Jens

ps. hehe had to cut some text out due to input field limit of 32000 characters…


(Alexander Falkenstern) #53

Hi everybody,

after two really crazy weeks, I’ve updated binding.
Fixed stuff:

  1. NPE on creation things via PaperUI. Please reconfigure or delete/add LOGO bridge via PaperUI.
  2. Implement get/set of DWORD values.

Updated binary can be found under https://github.com/falkena/binaries.

@BlackAlpha: Can you test get/set DWORD more expensive, please?
@grefix: Can you try new version, if it works for you, please?
@jens: Normally there is no restriction abount number of things/items.
It seems, that ScheduledExecutorService stop working for some reason.
I’ll put more debug logging into service thread. May we get more clue what going wrong here.


(Alexander Falkenstern) #54

Again me.
@jens I’ve extended logging and made synchronisation more restrictive.
New binary can be found under https://github.com/falkena/binaries
Can you please take a look, if it works better for you?

Kind regards,

Alexander.


(Jens) #55

Hi Alexander,

yeah, that’s a lot of logging… :slight_smile:

I did a lot testing in the meantime, i even did a complete new install and found one mistake in my thing definition:

Thing plclogo:analog:Logo_1_VW_452 [ block="452", threshold="1" ]

this has to be

Thing plclogo:analog:Logo_1_VW_452 [ block="VW452", threshold="1" ]

but the logs with the old version of the binding didn’t show any error on this.

With the new version, you get an info:

[INFO ] [me.event.ThingStatusInfoChangedEvent] - 'plclogo:analog:Logo_1_VW_452' changed from ONLINE to OFFLINE (CONFIGURATION_ERROR): Can not initialize LOGO! block. Please check blocks.

and an error, but it’s hard to get a clue from the error:

[ERROR] [ing.plclogo.handler.PLCBridgeHandler] - Reader thread was interrupted: null.

The INFO would have given a hint but i didn’t recognize it, maybe it can be switched to ERROR…

The binding is currently running without any problems and all switches, shutters and status reading do what they are supposed to do. :smiley: good work :thumbsup:

I’m keen to see if it is still working after some hours, i always had problems after some time with that much thing’s. I hope my SD card will hold that much of logging, the files grow fast, hehe…

What is meant with: [quote=“falkena, post:54, topic:24272”]
synchronisation more restrictive
[/quote]

@all: How many Logo PLC things and Logo’s do you have? and what is your refresh time?

Thanks for your support
Jens


(Alexander Falkenstern) #56

Hi @jens,

It’s strange, that the error/info about wrong thing configuration is not shown by old version.
This was checked by first version of the binding. Check is performed during thing initialization method called by openHAB/Eclipse SmartHome core. [INFO] is produced by core also, means, i can’t change the type easily.

About [ERROR]. This was my hope to get more information here. Scheduler throws an exception here with
a null message. Very helpful :frowning:

About syncronisation. I thought, that volatile will be enough, since one thread fills the handler map and another one reads from this map. Now i changed it to synchronized to be sure, that only one thread will access to the map.
There is no huge performance issue, unless you create/remove things every millisecond :slight_smile:

In my configuration i have 40 output, 48 input, 40 network inputs and 20 analog things. Refresh time is 100ms.

Fixed possible creation of reader job twice. Find updated version in https://github.com/falkena/binaries
Please restart openHAB/SmartHome after update.

Kind regards, Alexander.


(Jens) #57

Hi Alexander,

it is possible that i missed that INFO message on the old version, i wasn’t thinking there might be something wrong on those messages - i was looking for the color, when 240 things get updated there is a lot of messages… - sorry for that

I’m really glad the binding is still running stable :smiley:

Are there any changes or features you have in the pipe?

Thanks for your good work
Jens


(Alexander Falkenstern) #58

Hi Jens,

i will implement support for refresh command next days. It’s useful for example during channel initialization.
The next is reducing the number of things. Normally it should be enough to have 4 things for analog/digital input/output and “a lot” of them for VB/VD/VW-blocks, As I’ve wrote above, in this case i should prohibit to create things twice. Anyway this version of binding has this problem too: It allows to create more things than inputs/outputs are available.

I run static code analyse tool today and fixed reported issues. Pushed the changes to https://github.com/falkena/binaries right now.

You are welcome and kind regards,

Alexander


(Alexander Falkenstern) #59

Hi @everybody,

implemented support for refresh command. Updated jar can be found under https://github.com/falkena/binaries
Feel free to test it :slight_smile:

Kind regards,

Alexander.


(Alexander Falkenstern) #60

Again me,

I’ve updated https://github.com/falkena/binaries repository with new version of a binding. Changes:

  1. Use xml configuration files instead of getting parameters from handler.
  2. Fix parameter checking for correct recognition of VD memory blocks via PaperUI.

This will be the last update for the moment, excepting somebody report a bug :slight_smile:

@BlackAlpha, @grefix, @jens: Feedback on current version is always welcome :slight_smile:

Kind regards,

Alexander


(Jens) #61

Hi Alexander,

i downloaded the new version, put it in addons folder and rebooted openhab, but i get errors now:

Errors
23:28:30.081 [WARN ] [.smarthome.config.core.Configuration] - Could not set field value for field 'refresh': Can not set java.lang.Integer field org.openhab.binding.plclogo.config.PLCLogoBridgeConfiguration.refresh to java.lang.String
java.lang.IllegalArgumentException: Can not set java.lang.Integer field org.openhab.binding.plclogo.config.PLCLogoBridgeConfiguration.refresh to java.lang.String
        at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:167)[:1.8.0_121]
        at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:171)[:1.8.0_121]
        at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:81)[:1.8.0_121]
        at java.lang.reflect.Field.set(Field.java:764)[:1.8.0_121]
        at org.apache.commons.lang.reflect.FieldUtils.writeField(FieldUtils.java:523)[34:org.apache.commons.lang:2.6.0]
        at org.apache.commons.lang.reflect.FieldUtils.writeField(FieldUtils.java:500)[34:org.apache.commons.lang:2.6.0]
        at org.apache.commons.lang.reflect.FieldUtils.writeField(FieldUtils.java:560)[34:org.apache.commons.lang:2.6.0]
        at org.eclipse.smarthome.config.core.Configuration.as(Configuration.java:96)[97:org.eclipse.smarthome.config.core:0.9.0.b4]
        at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.getConfigAs(BaseThingHandler.java:248)[108:org.eclipse.smarthome.core.thing:0.9.0.b4]
        at org.openhab.binding.plclogo.handler.PLCBridgeHandler.<init>(PLCBridgeHandler.java:62)[237:org.openhab.binding.plclogo:2.1.0.201704191730]
        at org.openhab.binding.plclogo.internal.PLCLogoHandlerFactory.createHandler(PLCLogoHandlerFactory.java:58)[237:org.openhab.binding.plclogo:2.1.0.201704191730]
        at org.eclipse.smarthome.core.thing.binding.BaseThingHandlerFactory.registerHandler(BaseThingHandlerFactory.java:98)[108:org.eclipse.smarthome.core.thing:0.9.0.b4]
        at org.eclipse.smarthome.core.thing.internal.ThingManager.doRegisterHandler(ThingManager.java:593)[108:org.eclipse.smarthome.core.thing:0.9.0.b4]
        at org.eclipse.smarthome.core.thing.internal.ThingManager.registerHandler(ThingManager.java:572)[108:org.eclipse.smarthome.core.thing:0.9.0.b4]
        at org.eclipse.smarthome.core.thing.internal.ThingManager.access$29(ThingManager.java:568)[108:org.eclipse.smarthome.core.thing:0.9.0.b4]
        at org.eclipse.smarthome.core.thing.internal.ThingManager$17.call(ThingManager.java:981)[108:org.eclipse.smarthome.core.thing:0.9.0.b4]
        at org.eclipse.smarthome.core.thing.internal.ThingManager$17.call(ThingManager.java:1)[108:org.eclipse.smarthome.core.thing:0.9.0.b4]
        at org.eclipse.smarthome.core.common.SafeMethodCaller$CallableWrapper.call(SafeMethodCaller.java:179)[101:org.eclipse.smarthome.core:0.9.0.b4]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_121]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_121]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_121]
        at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]

and 

23:28:37.212 [WARN ] [.smarthome.config.core.Configuration] - Could not set field value for field 'threshold': Can not set java.lang.Integer field org.openhab.binding.plclogo.config.PLCLogoAnalogConfiguration.threshold to java.lang.String
java.lang.IllegalArgumentException: Can not set java.lang.Integer field org.openhab.binding.plclogo.config.PLCLogoAnalogConfiguration.threshold to java.lang.String
        at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:167)[:1.8.0_121]
        at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:171)[:1.8.0_121]
        at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:81)[:1.8.0_121]
        at java.lang.reflect.Field.set(Field.java:764)[:1.8.0_121]
        at org.apache.commons.lang.reflect.FieldUtils.writeField(FieldUtils.java:523)[34:org.apache.commons.lang:2.6.0]
        at org.apache.commons.lang.reflect.FieldUtils.writeField(FieldUtils.java:500)[34:org.apache.commons.lang:2.6.0]
        at org.apache.commons.lang.reflect.FieldUtils.writeField(FieldUtils.java:560)[34:org.apache.commons.lang:2.6.0]
        at org.eclipse.smarthome.config.core.Configuration.as(Configuration.java:96)[97:org.eclipse.smarthome.config.core:0.9.0.b4]
        at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.getConfigAs(BaseThingHandler.java:248)[108:org.eclipse.smarthome.core.thing:0.9.0.b4]
        at org.openhab.binding.plclogo.handler.PLCAnalogBlockHandler.<init>(PLCAnalogBlockHandler.java:46)[237:org.openhab.binding.plclogo:2.1.0.201704191730]
        at org.openhab.binding.plclogo.internal.PLCLogoHandlerFactory.createHandler(PLCLogoHandlerFactory.java:62)[237:org.openhab.binding.plclogo:2.1.0.201704191730]
        at org.eclipse.smarthome.core.thing.binding.BaseThingHandlerFactory.registerHandler(BaseThingHandlerFactory.java:98)[108:org.eclipse.smarthome.core.thing:0.9.0.b4]
        at org.eclipse.smarthome.core.thing.internal.ThingManager.doRegisterHandler(ThingManager.java:593)[108:org.eclipse.smarthome.core.thing:0.9.0.b4]
        at org.eclipse.smarthome.core.thing.internal.ThingManager.registerHandler(ThingManager.java:576)[108:org.eclipse.smarthome.core.thing:0.9.0.b4]
        at org.eclipse.smarthome.core.thing.internal.ThingManager.access$29(ThingManager.java:568)[108:org.eclipse.smarthome.core.thing:0.9.0.b4]
        at org.eclipse.smarthome.core.thing.internal.ThingManager$17.call(ThingManager.java:981)[108:org.eclipse.smarthome.core.thing:0.9.0.b4]
        at org.eclipse.smarthome.core.thing.internal.ThingManager$17.call(ThingManager.java:1)[108:org.eclipse.smarthome.core.thing:0.9.0.b4]
        at org.eclipse.smarthome.core.common.SafeMethodCaller$CallableWrapper.call(SafeMethodCaller.java:179)[101:org.eclipse.smarthome.core:0.9.0.b4]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_121]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_121]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_121]
        at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]

Do i have to change the syntax of the things?

Thanks
Jens