Vai al contenuto
PLC Forum


Integrazione OpenHAB con Hplc


flavio.dallara

Messaggi consigliati

Ciao flavio.dallara,

qualche informazione sulla formattazione della label degli item

la si può trovare qui. La pagina wiki del sito di openhab.org va sempre

consultata perchè, qui e la, c'è sempre qualche informazione utile

nascosta tra le righe.

 

Ad ogni modo ho visto che hai trovato le informazioni che cercavi.

Anche se non so se è effettivamente lo stesso formatter.

 

Direi che è ora di chiarire maggiormente come il plugin homeplc deve interpretare i valori 

che gli arrivano dal sistema domotico.

 

Copiando proprio dal Ladder ho definito le configurazioni per IX, QX, MX, MW.

IX, QX e MX condividono la stessa sintassi:

- IX:<registro>.<bit>[#NC]      <---- solo in lettura

- QX:<registro>.<bit>[#NC]      <---- solo in lettura

- MX:<registro>.<bit>[#NC]      <---- disattivato in scrittura per registri < 400 e 5500<=reg.<= 5935

dove [...] indica che è opzionale.

In questo caso leggo o scrivo un bit nel registro specificato.

L'indicazione del bit segue quella informatica e quindi parte da 0 e finisce a 15.

Il campo opzionale #NC può essere utilizzato se il valore da leggere o scrivere va invertito.

Ad esempio il sensore di presenza da frutto è un contatto del tipo NC.

 

- MW:<registro>[:S][/16][#decimali]        <---- disattivato in scrittura per registri < 400 e 5500<=reg.<= 5935

In questo caso abbiamo qualche parametro opzionale in più:

- :S indica che il valore ricavato va trattato come valore con segno e quindi posso avere anche grandezze negative

- /16 indica che la grandezza collegata è espressa in sedicesimi anzichè in decimi

... come ad esempio le temperature delle sonde da frutto o dei termoregolatori

- #decimali quando la grandezza deve avere dei decimali (raramente più di 1 o 2)

Quando si utilizza /16 verranno utilizzati automaticamente 2 decimali a meno di

non inserire anche il parametro #decimali.

 

Vediamo qualche esempio.

{homeplc="IX:1.2"}

{homeplc="QX:3.8#NC"}

{homeplc="MW:7800#1"}   <--- restituirà il valore del registro /10 (con una cifra decimale)

{homeplc="MW:5503/16"}    <--- restituisce un valore espresso in sedicesimi e inoltre /100 (due cifre decimali)

{homeplc="MW:5503:S#1"}   <--- restituisce un valore con segno e con una cifra decimale

...e così via.

 

Link al commento
Condividi su altri siti


  • Risposte 161
  • Created
  • Ultima risposta

Top Posters In This Topic

  • flavio.dallara

    74

  • smoothhands

    63

  • del_user_56966

    19

  • ilgio80

    4

Per le risorse che occupano qualche manciata di bit oppure, come hai indicato tu,

byte alto o byte basso ho inventato una codifica non standard ma utile al nostro scopo.

- RW:<registro>.<start bit>.<numero di bit>[/16][#decimali]

 

Si tratta di una specifica molto simile a quella utilizzata per MW.

Se voglio ricavare il byte alto non dovrò che scrivere

{homeplc="RW:5506.8.8"}

...parto dal bit numero 8 e prelevo un valore intero espresso da 8 bit.

 

In questo caso non ho ancora implementato la possibilità di gestire

valori con segno.

Ovviamente funziona sia in lettura che in scrittura.

 

 

 

 

Link al commento
Condividi su altri siti

Quote

Number Temperatura_Living "Temperatura [%.1f °C]" <temperature> {homeplc="MW:12"}

Number Umidita_Living "Umidità [%.d %%RH]" {homeplc="MW:5506 byte alto"}           ( Qui mi rimane in sospeso il discorso di estrapolare il byte alto - Vedi post precedenti )

Contact Finestra_Living "Finestra Living {homeplc="MX:3505.0"}

 

giusto smoothhands? ( Non sono poi così sicuro... :P )

Direi che in generale ci sei e dovresti riuscire a correggere oramai la risorsa umidità.

Ti ricordo che limitazioni del masterWEB sono in scrittura quindi puoi "leggere"

ingressi e uscite direttamente dai registri con IX, QX o MX come contatti 

evitando registri di appoggio.

 

 

 

Link al commento
Condividi su altri siti

Quote

Ovviamente nel programma in ladder ho utilizzato un dimmer lite appoggiato al registro MW2000... corretto? 

In questo caso però come suggerito devo anche creare la rules che mi aggiorna lo stato dello slider quando per esempio accendo o spengo la luce dall'interruttore.

Non ho mai usato il sistema DALI però, visto che le risorse legate ai 2 possibili master DALI 

non sono raggiungibili direttamente dal masterWEB, sei costretto a usare dei registri

di appoggio.

 

Ti servirà un risorsa di appoggio da 1 bit per l'on-off del ballast e poi un registro per

l'intensità dell'illuminamento.

Così... a braccio... non ti servono le rule per modificare i valori.

In Ladder devi inserire in parallelo del comando on-off anche la risorsa di

appoggio legata allo switch openhab.

Sempre in ladder quando viene spento il ballast devi modificare il valore

del bit di appoggio. openhab aggiorna automaticamente lo switch quando

rileva una variazione.

Per il valore del dimmer è la stessa cosa.

 

Se mi spieghi come realizzi il comando dei ballast in ladder poi vediamo

come inserire i registri di appoggio.

A quest'ora comincio a perdere i colpi... magari ci ragioniamo meglio domani :wacko:

 

 

 

 

Link al commento
Condividi su altri siti

flavio.dallara
Quote

Anche se non so se è effettivamente lo stesso formatter.

 

ho trovato quella pagina appunto nel wiki:  "Formatting is done applying Java formatter class syntax". Quindi credo sia lo stesso.

Grazie di tutte le info! sei mitico! Credo di aver capito abbastanza bene.

 

A questo punto completo giusto per condivisione di informazioni:

 

Number Temperatura_Living "Temperatura [%.1f °C]" <temperature> {homeplc="MW:12"}

Number Umidita_Living "Umidità [%.d %%RH]" {homeplc="MW:5506.8.8"}

Contact Finestra_Living "Finestra Living {homeplc="MX:3505.0"}

 

Questione DALI:

 

Dimmer Luce_Living "Dimmer [%s %%]" {homeplc="MW:2000"} secondo me dovrebbe esssere corretto così.

Forse devo aggiungere in parallelo a IX2.12 il registro di appoggio per fare l'on-off. Anche se già impostando 0% sul registro MW2000 la luce si spegne.

 

Schermata 2016-07-14 alle 18.09.44.png

 

Link al commento
Condividi su altri siti

Quote

Number Umidita_Living "Umidità [%.d %%RH]" {homeplc="MW:5506.8.8"}

No... devi usare RW:5506.8.8

 

Quote

Dimmer Luce_Living "Dimmer [%s %%]" {homeplc="MW:2000"} secondo me dovrebbe esssere corretto così.

Dovrebbe funzionare in quanto modifichi lo stato interno della libreria... che poi va a comandare il master DALI.

Luce_Living si dovrebbe aggiornare di conseguenza.

 

Quote

Forse devo aggiungere in parallelo a IX2.12 il registro di appoggio per fare l'on-off. Anche se già impostando 0% sul registro MW2000 la luce si spegne.

Se ti può essere comoda come funzione puoi inserirla.

Devi però ricordarti di fare l'update di quel bit di appoggio

modificando lo stato a spento quando il valore di %MW2000 è uguale a 0% 

oppure ad acceso quando è diverso da 0%. Questo lo fai con una rule.

Non conosco bene questa libreria ma se fosse simile al dimmer 2 canali

sfruttando qualche valore di CHG e STAT potresti rilevare la fine della regolazione 

e solo a quel punto aggiornare il valore dello Switch openhab.

Spero di essere stato abbastanza chiaro.

 

 


 

 

 

 

 

Link al commento
Condividi su altri siti

flavio.dallara

finalmente con l'installazione dell'homeplc v2 sono riuscito a risolvere gli errori su bus.. Ora il masterweb è correttamente riconosciuto dalla diagnostica di ABS.! :thumb_yello::thumb_yello:

Questa è la configurazione degli item:

Group All

 

Group Setup (All)

Group HVAC (All)

 

 

Number Netatmo_Indoor_CO2 "Carbon dioxide [%d ppm]" {netatmo="XXXXXXXXXX#Co2"}

Number Netatmo_Indoor_Temperature "Indoor Temperature [%.2f C]" {netatmo="XXXXXXXXXXXX#Temperature"}

Number Netatmo_Indoor_wifi "Indoor Wifi status [%d / 4]" {netatmo="XXXXXXXXXXXXX#Wifistatus"}

 

Number Temperatura_Living "Temperatura [%.1f °C]" <temperature> {homeplc="MW:12"}

Number Umidita_Living "Umidità [%.2d RH]" {homeplc="RW:5506.8.8"}

Contact Finestra_Living "Finestra Living"  {homeplc="MX:3505.0"}

Dimmer Luce_Living "Dimmer [%s %%]" {homeplc="MW:2000"}

 

Questo invece il sitemap:

 

sitemap homeplc label= "Casa" {

 

    Frame label="Ambienti" {

  Text label="Ambiente di test" icon="info" {

    Text item=Netatmo_Indoor_CO2

    Text item=Netatmo_Indoor_Temperature

    Text item=Netatmo_Indoor_wifi

    Text item=Temperatura_Living

    Text item=Umidita_Living

    Text item=Finestra_Living

    Slider item=Luce_Living 

   }

   }

}

 

 

La parte della stazione meteo Netatmo funziona correttamente.. vedo CO2, temperatura e il segnale wifi..

Purtroppo non leggo nulla lato HPLC...:(

 

Link al commento
Condividi su altri siti

Il file degli item e la sitemap sembrano buoni.

Userei per la temperatura MW:12#1

mentre per l'umidità userei l'etichetta %d RH

in quanto è un valore che va da 0 a 100

Che file hai inserito nella cartella addon?

Link al commento
Condividi su altri siti

flavio.dallara

Ho corretto come da indicazioni ma nulla... ( perchè MW:12#1? cosa vuole dire #1? )

Nella cartella addons ho il file che mi hai girato in privato "org.openhab.binding.homeplc_1.2.0.201603190741.jar" + quelli di default in openhab e quello della stazione netatmo.

Link al commento
Condividi su altri siti

flavio.dallara

Questo è il risultato del Debug quando lo apro... Non vedo nessun riferimento in cui carica il binding homeplc...

nel file openhab.cfg non devo inserirenulla per caricare il binding?

 

Launching the openHAB runtime in debug mode...

Listening for transport dt_socket at address: 8001

osgi> 01:01:00.738 [DEBUG] [.s.internal.SchedulerActivator:36   ] - Scheduler has been started.

01:01:01.947 [INFO ] [uartz.impl.StdSchedulerFactory:1175 ] - Using default implementation for ThreadExecutor

01:01:02.376 [INFO ] [rtz.core.SchedulerSignalerImpl:61   ] - Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl

01:01:02.379 [INFO ] [rg.quartz.core.QuartzScheduler:243  ] - Quartz Scheduler v.2.1.7 created.

01:01:02.399 [INFO ] [org.quartz.simpl.RAMJobStore  :154  ] - RAMJobStore initialized.

01:01:02.412 [INFO ] [rg.quartz.core.QuartzScheduler:268  ] - Scheduler meta-data: Quartz Scheduler (v2.1.7) 'openHAB-job-scheduler' with instanceId 'NON_CLUSTERED'

  Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.

  NOT STARTED.

  Currently in standby mode.

  Number of jobs executed: 0

  Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 2 threads.

  Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.

 

01:01:02.416 [INFO ] [uartz.impl.StdSchedulerFactory:1324 ] - Quartz scheduler 'openHAB-job-scheduler' initialized from specified file: './etc/quartz.properties'

01:01:02.419 [INFO ] [uartz.impl.StdSchedulerFactory:1328 ] - Quartz scheduler version: 2.1.7

01:01:02.425 [INFO ] [rg.quartz.core.QuartzScheduler:534  ] - Scheduler openHAB-job-scheduler_$_NON_CLUSTERED started.

01:01:02.456 [DEBUG] [o.config.core.ConfigDispatcher:146  ] - Processing openHAB default configuration file '/mnt/microsd/openhab/configurations/openhab_default.cfg'.

01:01:02.938 [DEBUG] [o.config.core.ConfigDispatcher:168  ] - Processing openHAB main configuration file '/mnt/microsd/openhab/configurations/openhab.cfg'.

01:01:03.424 [DEBUG] [.o.core.internal.CoreActivator:93   ] - UUID file already exists at '/mnt/microsd/openhab/webapps/static/uuid' with content '8d5d14a8-1343-47d8-853a-6fcf7bb57489'

01:01:03.429 [DEBUG] [.o.core.internal.CoreActivator:115  ] - Created file '/mnt/microsd/openhab/webapps/static/version' with content '1.7.1'

01:01:03.442 [INFO ] [.o.core.internal.CoreActivator:61   ] - openHAB runtime has been started (v1.7.1).

01:01:03.832 [DEBUG] [a.internal.AutoUpdateActivator:31   ] - AutoUpdate binding has been started.

01:01:22.977 [DEBUG] [.p.i.PersistenceModelActivator:23   ] - Registered 'persistence' configuration parser

01:01:23.150 [DEBUG] [.c.t.i.TransformationActivator:38   ] - Transformation Service has been started.

01:01:23.629 [DEBUG] [m.internal.MultimediaActivator:34   ] - Multimedia I/O bundle has been started.

01:01:24.163 [DEBUG] [.s.i.DiscoveryServiceActivator:27   ] - Discovery service has been started.

01:01:24.275 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl:93   ] - mDNS service has been started

01:01:24.922 [DEBUG] [.io.transport.mqtt.MqttService:123  ] - Starting MQTT Service...

01:01:25.380 [WARN ] [javax.jmdns.impl.HostInfo     :96   ] - Could not intialize the host network interface on nullbecause of an error: (none): (none)

java.net.UnknownHostException: (none): (none)

at java.net.InetAddress.getLocalHost(InetAddress.java:1473) ~[na:1.7.0_75]

at javax.jmdns.impl.HostInfo.newHostInfo(HostInfo.java:76) ~[jmdns-3.4.1.jar:3.4.1]

at javax.jmdns.impl.JmDNSImpl.<init>(JmDNSImpl.java:407) [jmdns-3.4.1.jar:3.4.1]

at javax.jmdns.JmDNS.create(JmDNS.java:60) [jmdns-3.4.1.jar:3.4.1]

at org.openhab.io.servicediscovery.internal.DiscoveryServiceImpl.updated(DiscoveryServiceImpl.java:52) [org.openhab.io.servicediscovery_1.7.1.jar:na]

at org.eclipse.equinox.internal.cm.ManagedServiceTracker$1.run(ManagedServiceTracker.java:183) [org.eclipse.equinox.cm_1.0.400.v20120522-1841.jar:na]

at org.eclipse.equinox.internal.cm.SerializedTaskQueue$1.run(SerializedTaskQueue.java:36) [org.eclipse.equinox.cm_1.0.400.v20120522-1841.jar:na]

Caused by: java.net.UnknownHostException: (none)

at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method) ~[na:1.7.0_75]

at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901) ~[na:1.7.0_75]

at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1293) ~[na:1.7.0_75]

at java.net.InetAddress.getLocalHost(InetAddress.java:1469) ~[na:1.7.0_75]

... 6 common frames omitted

01:01:25.616 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl:53   ] - Service Discovery initialization completed.

01:01:27.026 [DEBUG] [.i.internal.ItemModelActivator:24   ] - Registered 'item' configuration parser

01:01:28.773 [DEBUG] [o.o.c.i.items.ItemRegistryImpl:137  ] - Item provider 'GenericItemProvider' has been added.

01:01:38.267 [INFO ] [c.internal.ModelRepositoryImpl:80   ] - Loading model 'homeplc.items'

01:01:40.305 [DEBUG] [i.internal.GenericItemProvider:154  ] - Processing binding configs for items from model 'homeplc.items'

01:01:40.432 [DEBUG] [i.internal.GenericItemProvider:133  ] - Read items from model 'homeplc.items'

01:01:43.114 [DEBUG] [.o.m.s.i.SitemapModelActivator:23   ] - Registered 'sitemap' configuration parser

01:01:44.089 [DEBUG] [io.rest.internal.RESTActivator:33   ] - REST API has been started.

01:01:45.573 [INFO ] [org.atmosphere.util.IOUtils   :370  ] - META-INF/services/org.atmosphere.cpr.AtmosphereFramework not found in class loader

01:01:46.445 [INFO ] [sphere.cpr.AtmosphereFramework:2601 ] - Atmosphere is using org.atmosphere.cpr.DefaultAnnotationProcessor for processing annotation

01:01:46.479 [INFO ] [cpr.DefaultAnnotationProcessor:138  ] - AnnotationProcessor class org.atmosphere.cpr.DefaultAnnotationProcessor$BytecodeBasedAnnotationProcessor being used

01:01:47.478 [WARN ] [cpr.DefaultAnnotationProcessor:178  ] - Unable to detect annotations. Application may fail to deploy.

01:01:47.874 [INFO ] [c.internal.ModelRepositoryImpl:80   ] - Loading model 'homeplc.script'

01:01:48.520 [INFO ] [sphere.cpr.AtmosphereFramework:1891 ] - Auto detecting atmosphere handlers /WEB-INF/classes/

01:01:49.206 [INFO ] [sphere.cpr.AtmosphereFramework:639  ] - Installed AtmosphereHandler org.atmosphere.handler.ReflectorServletProcessor mapped to context-path /* and Broadcaster Class org.atmosphere.jersey.JerseyBroadcaster

01:01:49.209 [INFO ] [sphere.cpr.AtmosphereFramework:1945 ] - Auto detecting WebSocketHandler in /WEB-INF/classes/

01:01:49.283 [INFO ] [sphere.cpr.AtmosphereFramework:1602 ] - Installed WebSocketProtocol org.atmosphere.websocket.protocol.SimpleHttpProtocol 

01:01:50.279 [INFO ] [.a.h.ReflectorServletProcessor:103  ] - Installing Servlet com.sun.jersey.spi.container.servlet.ServletContainer

01:01:52.123 [INFO ] [c.s.j.s.i.a.WebApplicationImpl:815  ] - Initiating Jersey application, version 'Jersey: 1.18.1 02/19/2014 03:28 AM'

01:01:52.160 [INFO ] [c.s.j.s.i.a.WebApplicationImpl:826  ] - Adding the following classes declared in META-INF/services/jersey-server-components to the resource configuration:

  class org.atmosphere.jersey.AtmosphereResourceConfigurator

01:01:52.686 [INFO ] [j.s.i.a.DeferredResourceConfig:101  ] - Instantiated the Application class org.openhab.io.rest.RESTApplication

01:01:56.542 [INFO ] [c.internal.ModelRepositoryImpl:80   ] - Loading model 'rrd4j.persist'

01:02:07.085 [INFO ] [sphere.cpr.AtmosphereFramework:2435 ] - AtmosphereInterceptor CORS Interceptor Support will always be executed first

01:02:07.092 [INFO ] [sphere.cpr.AtmosphereFramework:2404 ] - Installed AtmosphereInterceptor CORS Interceptor Support with priority FIRST_BEFORE_DEFAULT 

01:02:07.096 [INFO ] [sphere.cpr.AtmosphereFramework:2404 ] - Installed AtmosphereInterceptor Default Response's Headers Interceptor with priority AFTER_DEFAULT 

01:02:07.125 [INFO ] [sphere.cpr.AtmosphereFramework:2404 ] - Installed AtmosphereInterceptor Android Interceptor Support with priority AFTER_DEFAULT 

01:02:07.508 [INFO ] [sphere.cpr.AtmosphereFramework:2404 ] - Installed AtmosphereInterceptor SSE Interceptor Support with priority AFTER_DEFAULT 

01:02:07.524 [INFO ] [sphere.cpr.AtmosphereFramework:2404 ] - Installed AtmosphereInterceptor JSONP Interceptor Support with priority AFTER_DEFAULT 

01:02:07.557 [INFO ] [sphere.cpr.AtmosphereFramework:2404 ] - Installed AtmosphereInterceptor Atmosphere JavaScript Protocol with priority AFTER_DEFAULT 

01:02:07.592 [INFO ] [sphere.cpr.AtmosphereFramework:2404 ] - Installed AtmosphereInterceptor Browser disconnection detection with priority AFTER_DEFAULT 

01:02:07.711 [INFO ] [sphere.cpr.AtmosphereFramework:935  ] - Using EndpointMapper class org.atmosphere.util.DefaultEndpointMapper

01:02:07.719 [WARN ] [sphere.cpr.AtmosphereFramework:941  ] - No BroadcasterCache configured. Broadcasted message between client reconnection will be LOST. It is recommended to configure the org.atmosphere.cache.UUIDBroadcasterCache

01:02:07.763 [INFO ] [sphere.cpr.AtmosphereFramework:949  ] - Default Broadcaster Class: org.atmosphere.jersey.JerseyBroadcaster

01:02:07.765 [INFO ] [sphere.cpr.AtmosphereFramework:950  ] - Broadcaster Polling Wait Time 100

01:02:07.768 [INFO ] [sphere.cpr.AtmosphereFramework:951  ] - Shared ExecutorService supported: true

01:02:07.806 [INFO ] [sphere.cpr.AtmosphereFramework:958  ] - Messaging Thread Pool Size: 10

01:02:07.809 [INFO ] [sphere.cpr.AtmosphereFramework:968  ] - Async I/O Thread Pool Size: 10

01:02:07.823 [INFO ] [sphere.cpr.AtmosphereFramework:979  ] - Using BroadcasterFactory: org.atmosphere.cpr.DefaultBroadcasterFactory

01:02:07.826 [INFO ] [sphere.cpr.AtmosphereFramework:980  ] - Using WebSocketProcessor: org.atmosphere.websocket.DefaultWebSocketProcessor

01:02:07.828 [INFO ] [sphere.cpr.AtmosphereFramework:990  ] - Invoke AtmosphereInterceptor on WebSocket message true

01:02:07.851 [INFO ] [sphere.cpr.AtmosphereFramework:991  ] - HttpSession supported: false

01:02:07.854 [INFO ] [sphere.cpr.AtmosphereFramework:993  ] - Atmosphere is using DefaultAtmosphereObjectFactory for dependency injection and object creation

01:02:07.882 [INFO ] [sphere.cpr.AtmosphereFramework:994  ] - Atmosphere is using async support: org.atmosphere.container.JettyAsyncSupportWithWebSocket running under container: jetty/8.1.3.v20120522 with WebSocket enabled.

01:02:07.909 [INFO ] [sphere.cpr.AtmosphereFramework:996  ] - Atmosphere Framework 2.2.5 started.

01:02:07.913 [INFO ] [sphere.cpr.AtmosphereFramework:998  ] - 

 

For Atmosphere Framework Commercial Support, visit 

http://www.async-io.org/ or send an email to support@async-io.org

 

01:02:07.946 [INFO ] [penhab.io.rest.RESTApplication:144  ] - Started REST API at /rest

01:02:07.952 [DEBUG] [o.o.i.s.i.DiscoveryServiceImpl:66   ] - Registering new service _openhab-server._tcp.local. at port 8080

01:02:08.365 [INFO ] [sphere.cpr.AtmosphereFramework:1053 ] - Latest version of Atmosphere's JavaScript Client 2.3.1

01:02:08.368 [INFO ] [sphere.cpr.AtmosphereFramework:1060 ] - 

 

Atmosphere Framework Updates

Minor available (bugs fixes): 2.2.9

Major available (new features): 2.4.5

01:02:08.835 [INFO ] [c.internal.ModelRepositoryImpl:80   ] - Loading model 'homeplc.sitemap'

01:02:10.506 [DEBUG] [o.o.i.s.i.DiscoveryServiceImpl:66   ] - Registering new service _openhab-server-ssl._tcp.local. at port 8443

01:02:14.137 [INFO ] [.o.u.w.i.servlet.WebAppServlet:79   ] - Started Classic UI at /openhab.app

01:02:19.707 [INFO ] [c.internal.ModelRepositoryImpl:98   ] - Refreshing model 'homeplc.script'

01:02:22.191 [DEBUG] [.r.internal.RuleModelActivator:42   ] - Registered 'rules' configuration parser

01:02:22.377 [DEBUG] [m.r.internal.engine.RuleEngine:77   ] - Started rule engine

01:02:28.409 [DEBUG] [.m.i.MyOpenHABServiceActivator:28   ] - MyOpenHAB service has been started.

01:02:28.467 [DEBUG] [o.o.i.m.i.MyOpenHABServiceImpl:300  ] - setEventPublisher

01:02:28.470 [DEBUG] [o.o.i.m.i.MyOpenHABServiceImpl:135  ] - my.openHAB service activated

01:02:28.549 [DEBUG] [.p.internal.PersistenceManager:147  ] - Initializing myopenhab persistence service.

01:02:28.630 [DEBUG] [c.internal.ModelRepositoryImpl:64   ] - Configuration model 'myopenhab.persist' can not be found

01:02:28.677 [DEBUG] [o.o.i.m.i.MyOpenHABServiceImpl:118  ] - config is null

01:02:28.712 [DEBUG] [o.o.i.m.i.MyOpenHABServiceImpl:176  ] - UUID file found at '/mnt/microsd/openhab/webapps/static/uuid' with content '8d5d14a8-1343-47d8-853a-6fcf7bb57489'

01:02:28.715 [DEBUG] [o.o.i.m.i.MyOpenHABServiceImpl:228  ] - Secret file already exists at '/mnt/microsd/openhab/webapps/static/secret' with content 'RmyD25if6D6OwvShFGmA'

01:02:28.717 [DEBUG] [o.o.i.m.i.MyOpenHABServiceImpl:120  ] - UUID = 8d5d14a8-1343-47d8-853a-6fcf7bb57489, secret = RmyD25if6D6OwvShFGmA

01:02:28.905 [DEBUG] [o.o.i.m.i.MyOpenHABServiceImpl:176  ] - UUID file found at '/mnt/microsd/openhab/webapps/static/uuid' with content '8d5d14a8-1343-47d8-853a-6fcf7bb57489'

01:02:28.908 [DEBUG] [o.o.i.m.i.MyOpenHABServiceImpl:228  ] - Secret file already exists at '/mnt/microsd/openhab/webapps/static/secret' with content 'RmyD25if6D6OwvShFGmA'

01:02:28.918 [DEBUG] [.b.n.internal.NetatmoActivator:42   ] - Netatmo binding has been started.

01:02:28.942 [DEBUG] [o.o.i.m.i.MyOpenHABServiceImpl:162  ] - Version file found at '/mnt/microsd/openhab/webapps/static/version' with content '1.7.1'

01:02:29.016 [DEBUG] [i.internal.GenericItemProvider:341  ] - Start processing binding configuration of Item 'Netatmo_Indoor_CO2 (Type=NumberItem, State=Uninitialized)' with 'NetatmoGenericBindingProvider' reader.

01:02:29.019 [DEBUG] [.NetatmoGenericBindingProvider:154  ] - Processing binding configuration: '70:ee:50:16:22:82#Co2'

01:02:29.086 [DEBUG] [.NetatmoGenericBindingProvider:203  ] - Adding binding: NetatmoBindingConfig [userid=null, deviceId=70:ee:50:16:22:82, moduleId=null, measure=CO2]

01:02:29.090 [DEBUG] [i.internal.GenericItemProvider:341  ] - Start processing binding configuration of Item 'Netatmo_Indoor_Temperature (Type=NumberItem, State=Uninitialized)' with 'NetatmoGenericBindingProvider' reader.

01:02:29.123 [DEBUG] [.NetatmoGenericBindingProvider:154  ] - Processing binding configuration: '70:ee:50:16:22:82#Temperature'

01:02:29.125 [DEBUG] [.NetatmoGenericBindingProvider:203  ] - Adding binding: NetatmoBindingConfig [userid=null, deviceId=70:ee:50:16:22:82, moduleId=null, measure=Temperature]

01:02:29.128 [DEBUG] [i.internal.GenericItemProvider:341  ] - Start processing binding configuration of Item 'Netatmo_Indoor_wifi (Type=NumberItem, State=Uninitialized)' with 'NetatmoGenericBindingProvider' reader.

01:02:29.161 [DEBUG] [.NetatmoGenericBindingProvider:154  ] - Processing binding configuration: '70:ee:50:16:22:82#Wifistatus'

01:02:29.164 [DEBUG] [.NetatmoGenericBindingProvider:203  ] - Adding binding: NetatmoBindingConfig [userid=null, deviceId=70:ee:50:16:22:82, moduleId=null, measure=WifiStatus]

01:02:29.672 [INFO ] [.service.AbstractActiveService:169  ] - Netatmo Refresh Service has been started

01:02:29.674 [DEBUG] [.o.b.n.internal.NetatmoBinding:110  ] - Querying Netatmo API

01:02:29.677 [DEBUG] [.o.b.n.internal.NetatmoBinding:759  ] - Refreshing access token.

01:02:30.015 [DEBUG] [.myopenhab.internal.MyOHClient:138  ] - Manager.EVENT_TRANSPORT

01:02:30.517 [DEBUG] [nhab.io.habmin.HABminActivator:33   ] - HABmin Interface has been started.

01:02:31.189 [INFO ] [org.atmosphere.util.IOUtils   :370  ] - META-INF/services/org.atmosphere.cpr.AtmosphereFramework not found in class loader

01:02:31.449 [INFO ] [sphere.cpr.AtmosphereFramework:2601 ] - Atmosphere is using org.atmosphere.cpr.DefaultAnnotationProcessor for processing annotation

01:02:31.513 [INFO ] [cpr.DefaultAnnotationProcessor:138  ] - AnnotationProcessor class org.atmosphere.cpr.DefaultAnnotationProcessor$BytecodeBasedAnnotationProcessor being used

01:02:32.016 [WARN ] [cpr.DefaultAnnotationProcessor:178  ] - Unable to detect annotations. Application may fail to deploy.

01:02:32.876 [INFO ] [sphere.cpr.AtmosphereFramework:1891 ] - Auto detecting atmosphere handlers /WEB-INF/classes/

01:02:33.204 [INFO ] [sphere.cpr.AtmosphereFramework:639  ] - Installed AtmosphereHandler org.atmosphere.handler.ReflectorServletProcessor mapped to context-path /* and Broadcaster Class org.atmosphere.jersey.JerseyBroadcaster

01:02:33.206 [INFO ] [sphere.cpr.AtmosphereFramework:1945 ] - Auto detecting WebSocketHandler in /WEB-INF/classes/

01:02:33.319 [INFO ] [sphere.cpr.AtmosphereFramework:1602 ] - Installed WebSocketProtocol org.atmosphere.websocket.protocol.SimpleHttpProtocol 

01:02:33.568 [INFO ] [.a.h.ReflectorServletProcessor:103  ] - Installing Servlet com.sun.jersey.spi.container.servlet.ServletContainer

01:02:33.869 [INFO ] [c.s.j.s.i.a.WebApplicationImpl:815  ] - Initiating Jersey application, version 'Jersey: 1.18.1 02/19/2014 03:28 AM'

01:02:33.907 [INFO ] [c.s.j.s.i.a.WebApplicationImpl:826  ] - Adding the following classes declared in META-INF/services/jersey-server-components to the resource configuration:

  class org.atmosphere.jersey.AtmosphereResourceConfigurator

01:02:38.146 [DEBUG] [.myopenhab.internal.MyOHClient:143  ] - Transport.EVENT_REQUEST_HEADERS

01:02:38.100 [INFO ] [j.s.i.a.DeferredResourceConfig:101  ] - Instantiated the Application class org.openhab.io.habmin.HABminApplication

01:02:38.319 [INFO ] [c.internal.ModelRepositoryImpl:80   ] - Loading model 'homeplc.rules'

01:02:42.970 [DEBUG] [.o.b.n.internal.NetatmoBinding:763  ] - Request: RefreshTokenRequest[clientId=574c9bd469f740bf068b45bc,clientSecret=JGEa7YqjiWIFaw0tKiGLFKE7Y,refreshToken=572eea5be8ede10661d530e1|3a1b08e027f2212aaf8a3fd161e437c3]

01:02:43.025 [DEBUG] [.o.b.n.i.m.RefreshTokenRequest:86   ] - HTTP Post url='https://api.netatmo.net/oauth2/token' content='grant_type=refresh_token&refresh_token=572eea5be8ede10661d530e1|3a1b08e027f2212aaf8a3fd161e437c3&client_id=574c9bd469f740bf068b45bc&client_secret=JGEa7YqjiWIFaw0tKiGLFKE7Y&scope=read_station'

01:02:44.840 [INFO ] [c.internal.ModelRepositoryImpl:98   ] - Refreshing model 'rrd4j.persist'

01:02:46.878 [DEBUG] [.myopenhab.internal.MyOHClient:138  ] - Manager.EVENT_TRANSPORT

01:02:46.894 [DEBUG] [.myopenhab.internal.MyOHClient:143  ] - Transport.EVENT_REQUEST_HEADERS

01:02:50.714 [DEBUG] [.o.b.n.internal.NetatmoBinding:766  ] - Response: RefreshTokenResponse[accessToken=572eea5be8ede10661d530e1|a98927be1d3a8f5f26997feceee2361a]

01:02:50.762 [DEBUG] [b.n.i.m.GetStationsDataRequest:78   ] - HTTP Post url='https://api.netatmo.net/api/getstationsdata' content='access_token=572eea5be8ede10661d530e1|a98927be1d3a8f5f26997feceee2361a'

01:02:51.031 [DEBUG] [.myopenhab.internal.MyOHClient:138  ] - Manager.EVENT_TRANSPORT

01:02:51.063 [DEBUG] [.myopenhab.internal.MyOHClient:143  ] - Transport.EVENT_REQUEST_HEADERS

01:02:53.478 [DEBUG] [.o.b.n.internal.NetatmoBinding:370  ] - Request: GetStationsDataRequest[accessToken=572eea5be8ede10661d530e1|a98927be1d3a8f5f26997feceee2361a]

01:02:53.517 [DEBUG] [.o.b.n.internal.NetatmoBinding:371  ] - Response: GetStationsDataResponse[status=ok,body=GetStationsDataResponse.Body[devices=[GetStationsDataResponse.Device[id=70:ee:50:16:22:82,co2Calibrating=false,firmware=119,lastStatusStore=Sat Jan 17 23:58:23 GMT 1970,lastUpgrade=Sat Jan 17 22:19:59 GMT 1970,moduleName=Zona giorno,modules=[GetStationsDataResponse.Module[id=02:00:00:15:e9:62,moduleName=Esterno,type=NAModule1,firmware=43,lastMessage=Sat Jan 17 23:58:23 GMT 1970,lastSeen=Sat Jan 17 23:58:23 GMT 1970,rfStatus=73,batteryVp=5954,dataTypes=[Temperature, Humidity]]],place=GetStationsDataResponse.Place[altitude=18.0,city=Cesena,country=IT,improveLocProposed=<null>,location=[12.2415668, 44.2096764],timezone=Europe/Rome],stationName=Casa,type=NAMain,wifiStatus=42,measurements=[Temperature, CO2, Humidity, Noise, Pressure]]]],executionTime=0.018146991729736]

01:02:53.557 [INFO ] [.o.b.n.internal.NetatmoBinding:493  ] - The following Netatmo measurements are not yet configured:

70:ee:50:16:22:82#Noise (Zona giorno)

70:ee:50:16:22:82#Humidity (Zona giorno)

70:ee:50:16:22:82#Pressure (Zona giorno)

70:ee:50:16:22:82#02:00:00:15:e9:62#Temperature (Esterno)

70:ee:50:16:22:82#02:00:00:15:e9:62#Humidity (Esterno)

 

01:02:53.586 [DEBUG] [o.o.b.n.i.m.MeasurementRequest:163  ] - HTTP Post url='https://api.netatmo.net/api/getmeasure' content='access_token=572eea5be8ede10661d530e1|a98927be1d3a8f5f26997feceee2361a&scale=max&date_end=last&device_id=70:ee:50:16:22:82&type=CO2,Temperature'

01:02:54.542 [DEBUG] [.myopenhab.internal.MyOHClient:138  ] - Manager.EVENT_TRANSPORT

01:02:54.567 [DEBUG] [.myopenhab.internal.MyOHClient:143  ] - Transport.EVENT_REQUEST_HEADERS

01:02:55.393 [DEBUG] [.o.b.n.internal.NetatmoBinding:340  ] - Request: MeasurementRequest[accessToken=572eea5be8ede10661d530e1|a98927be1d3a8f5f26997feceee2361a,deviceId=70:ee:50:16:22:82,measures=[CO2, Temperature]]

01:02:55.399 [DEBUG] [.o.b.n.internal.NetatmoBinding:341  ] - Response: MeasurementResponse[status=ok,body=[MeasurementResponse.Body[values=[[307, 23.3]],begTime=1468703215]]]

01:02:55.499 [WARN ] [sphere.cpr.AtmosphereFramework:1097 ] - 

java.lang.ClassNotFoundException: org.atmosphere.interceptor.DefaultHeadersInterceptor

at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501) ~[org.eclipse.osgi_3.8.2.v20130124-134944.jar:na]

at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421) ~[org.eclipse.osgi_3.8.2.v20130124-134944.jar:na]

at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412) ~[org.eclipse.osgi_3.8.2.v20130124-134944.jar:na]

at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107) ~[org.eclipse.osgi_3.8.2.v20130124-134944.jar:na]

at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ~[na:1.7.0_75]

at org.atmosphere.util.IOUtils.loadClass(IOUtils.java:309) ~[atmosphere-runtime-2.2.5.jar:2.2.5]

at org.atmosphere.cpr.AtmosphereFramework.configureAtmosphereInterceptor(AtmosphereFramework.java:1094) [atmosphere-runtime-2.2.5.jar:2.2.5]

at org.atmosphere.cpr.AtmosphereFramework.init(AtmosphereFramework.java:892) [atmosphere-runtime-2.2.5.jar:2.2.5]

at org.atmosphere.cpr.AtmosphereFramework.init(AtmosphereFramework.java:780) [atmosphere-runtime-2.2.5.jar:2.2.5]

at org.atmosphere.cpr.AtmosphereServlet.configureFramework(AtmosphereServlet.java:101) [atmosphere-runtime-2.2.5.jar:2.2.5]

at org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:80) [atmosphere-runtime-2.2.5.jar:2.2.5]

at org.eclipse.equinox.http.servlet.internal.ServletRegistration.init(ServletRegistration.java:49) [org.eclipse.equinox.http.servlet_1.1.300.v20120522-1841.jar:na]

at org.eclipse.equinox.http.servlet.internal.ProxyServlet.registerServlet(ProxyServlet.java:179) [org.eclipse.equinox.http.servlet_1.1.300.v20120522-1841.jar:na]

at org.eclipse.equinox.http.servlet.internal.HttpServiceImpl.registerServlet(HttpServiceImpl.java:66) [org.eclipse.equinox.http.servlet_1.1.300.v20120522-1841.jar:na]

at org.openhab.io.habmin.HABminApplication.activate(HABminApplication.java:178) [bundlefile:na]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_75]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_75]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_75]

at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_75]

at org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:235) [org.eclipse.equinox.ds_1.4.1.v20120926-201320.jar:na]

at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) [org.eclipse.equinox.ds_1.4.1.v20120926-201320.jar:na]

at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345) [org.eclipse.equinox.ds_1.4.1.v20120926-201320.jar:na]

at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620) [org.eclipse.equinox.ds_1.4.1.v20120926-201320.jar:na]

at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197) [org.eclipse.equinox.ds_1.4.1.v20120926-201320.jar:na]

at org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied(Resolver.java:473) [org.eclipse.equinox.ds_1.4.1.v20120926-201320.jar:na]

at org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.java:217) [org.eclipse.equinox.ds_1.4.1.v20120926-201320.jar:na]

at org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRManager.java:816) [org.eclipse.equinox.ds_1.4.1.v20120926-201320.jar:na]

at org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatch(SCRManager.java:783) [org.eclipse.equinox.ds_1.4.1.v20120926-201320.jar:na]

at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:89) [org.eclipse.equinox.ds_1.4.1.v20120926-201320.jar:na]

at org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Executor.java:70) [org.eclipse.equinox.util_1.0.400.v20120917-192807.jar:na]

01:02:55.544 [INFO ] [sphere.cpr.AtmosphereFramework:2404 ] - Installed AtmosphereInterceptor Android Interceptor Support with priority AFTER_DEFAULT 

01:02:55.547 [INFO ] [sphere.cpr.AtmosphereFramework:2404 ] - Installed AtmosphereInterceptor SSE Interceptor Support with priority AFTER_DEFAULT 

01:02:55.573 [INFO ] [sphere.cpr.AtmosphereFramework:2404 ] - Installed AtmosphereInterceptor JSONP Interceptor Support with priority AFTER_DEFAULT 

01:02:55.576 [INFO ] [sphere.cpr.AtmosphereFramework:2404 ] - Installed AtmosphereInterceptor Atmosphere JavaScript Protocol with priority AFTER_DEFAULT 

01:02:55.579 [INFO ] [sphere.cpr.AtmosphereFramework:2404 ] - Installed AtmosphereInterceptor Browser disconnection detection with priority AFTER_DEFAULT 

01:02:55.613 [INFO ] [sphere.cpr.AtmosphereFramework:935  ] - Using EndpointMapper class org.atmosphere.util.DefaultEndpointMapper

01:02:55.615 [WARN ] [sphere.cpr.AtmosphereFramework:941  ] - No BroadcasterCache configured. Broadcasted message between client reconnection will be LOST. It is recommended to configure the org.atmosphere.cache.UUIDBroadcasterCache

01:02:55.617 [INFO ] [sphere.cpr.AtmosphereFramework:949  ] - Default Broadcaster Class: org.atmosphere.jersey.JerseyBroadcaster

01:02:55.619 [INFO ] [sphere.cpr.AtmosphereFramework:950  ] - Broadcaster Polling Wait Time 100

01:02:55.642 [INFO ] [sphere.cpr.AtmosphereFramework:951  ] - Shared ExecutorService supported: true

01:02:55.655 [INFO ] [sphere.cpr.AtmosphereFramework:958  ] - Messaging Thread Pool Size: Unlimited

01:02:55.657 [INFO ] [sphere.cpr.AtmosphereFramework:968  ] - Async I/O Thread Pool Size: 200

01:02:55.659 [INFO ] [sphere.cpr.AtmosphereFramework:979  ] - Using BroadcasterFactory: org.atmosphere.cpr.DefaultBroadcasterFactory

01:02:55.692 [INFO ] [sphere.cpr.AtmosphereFramework:980  ] - Using WebSocketProcessor: org.atmosphere.websocket.DefaultWebSocketProcessor

01:02:55.694 [INFO ] [sphere.cpr.AtmosphereFramework:990  ] - Invoke AtmosphereInterceptor on WebSocket message true

01:02:55.697 [INFO ] [sphere.cpr.AtmosphereFramework:991  ] - HttpSession supported: false

01:02:55.699 [INFO ] [sphere.cpr.AtmosphereFramework:993  ] - Atmosphere is using DefaultAtmosphereObjectFactory for dependency injection and object creation

01:02:55.722 [INFO ] [sphere.cpr.AtmosphereFramework:994  ] - Atmosphere is using async support: org.atmosphere.container.JettyAsyncSupportWithWebSocket running under container: jetty/8.1.3.v20120522 with WebSocket enabled.

01:02:55.725 [INFO ] [sphere.cpr.AtmosphereFramework:996  ] - Atmosphere Framework 2.2.5 started.

01:02:55.727 [INFO ] [sphere.cpr.AtmosphereFramework:998  ] - 

 

For Atmosphere Framework Commercial Support, visit 

http://www.async-io.org/ or send an email to support@async-io.org

 

01:02:55.751 [INFO ] [.o.io.habmin.HABminApplication:181  ] - Started HABmin REST API at /services/habmin

01:02:55.754 [DEBUG] [o.o.i.s.i.DiscoveryServiceImpl:66   ] - Registering new service _openhab-server._tcp.local. at port 8080

01:02:55.936 [INFO ] [sphere.cpr.AtmosphereFramework:1053 ] - Latest version of Atmosphere's JavaScript Client 2.3.1

01:02:55.939 [INFO ] [sphere.cpr.AtmosphereFramework:1060 ] - 

 

Atmosphere Framework Updates

Minor available (bugs fixes): 2.2.9

Major available (new features): 2.4.5

01:02:58.497 [DEBUG] [o.o.i.s.i.DiscoveryServiceImpl:66   ] - Registering new service _openhab-server-ssl._tcp.local. at port 8443

01:03:00.054 [INFO ] [c.internal.ModelRepositoryImpl:98   ] - Refreshing model 'homeplc.script'

01:03:00.074 [DEBUG] [.myopenhab.internal.MyOHClient:138  ] - Manager.EVENT_TRANSPORT

01:03:00.112 [DEBUG] [.myopenhab.internal.MyOHClient:143  ] - Transport.EVENT_REQUEST_HEADERS

01:03:01.223 [INFO ] [runtime.busevents             :26   ] - Netatmo_Indoor_wifi state updated to 2

01:03:01.226 [INFO ] [runtime.busevents             :26   ] - Netatmo_Indoor_CO2 state updated to 307

01:03:01.228 [INFO ] [runtime.busevents             :26   ] - Netatmo_Indoor_Temperature state updated to 23.3

01:03:01.374 [DEBUG] [.zwave.internal.ZWaveActivator:36   ] - Z-Wave binding has been started.

01:03:01.913 [DEBUG] [.rrd4j.internal.RRD4jActivator:31   ] - RRD4j persistence bundle has been started.

01:03:02.327 [DEBUG] [.p.internal.PersistenceManager:147  ] - Initializing rrd4j persistence service.

01:03:04.203 [DEBUG] [.p.internal.PersistenceManager:441  ] - Scheduled strategy rrd4j.everyMinute with cron expression 0 * * * * ?

01:03:04.278 [DEBUG] [.p.rrd4j.internal.RRD4jService:345  ] - using default configuration only

01:03:04.427 [DEBUG] [p.r.i.charts.RRD4jChartServlet:118  ] - Starting up rrd chart servlet at /rrdchart.png

01:03:05.447 [DEBUG] [.myopenhab.internal.MyOHClient:138  ] - Manager.EVENT_TRANSPORT

01:03:05.468 [DEBUG] [.myopenhab.internal.MyOHClient:143  ] - Transport.EVENT_REQUEST_HEADERS

01:03:10.834 [DEBUG] [.myopenhab.internal.MyOHClient:138  ] - Manager.EVENT_TRANSPORT

01:03:10.872 [DEBUG] [.myopenhab.internal.MyOHClient:143  ] - Transport.EVENT_REQUEST_HEADERS

01:03:15.166 [INFO ] [c.internal.ModelRep

Link al commento
Condividi su altri siti

Allora... il problema è che quasi sicuramente ti manca un file

nella cartella addon.

Per homeplc servono 2 file .jar:

il primo è il binding vero e proprio mentre

il secondo è l'interfaccia verso il sistema homeplc.

Il primo non funziona/non viene caricato senza il secondo.

In privato c'erano tutti i pacchetti che ti servivano ma

oramai i link non funzionano più. Poco male te li ripreparo.

 

Il #1, come ti avevo indicato qualche giorno fa, indica

che il valore restituito va trattato come numero con una

cifra decimale.

Siccome hai definito il tuo item come %.1f gli devi passare

un numero con decimali. Se non istruisci il binding homeplc

restituisce esclusivamente numeri interi.

 

Il file config.cfg non va modificato per homeplc

 

Se mi scrivi cos'hai di preciso nella cartella addon

ti dico cosa eliminare o sostituire.

Quelli per netatmo puoi anche tralasciarli.

 

Domani ti ripreparo i file giusti e ti metto i

link in privato.

 

Link al commento
Condividi su altri siti

Allora... scusa flavio.dallara ma ho fatto un pò di confusione.

I link che ti avevo messo in privato erano:

 

1) openhab_homeplc_v1.7.1.tar.gz che ti inseriva nella cartella addons

- org.openhab.binding.zwave-1.5.0-SNAPSHOT.jar (serve anche se non hai dispositivi zwave)

- org.openhab.io.habmin-1.5.0-SNAPSHOT.jar (per la webapp di amministrazione openhab)

- org.openhab.persistence.rrd4j-1.7.1.jar (per la gestione dello storico dei comandi etc)

 

2) addon_masterweb_v1.1.2.tar.gz che aggiungeva tra le altre cose

- org.openhab.binding.homeplc_1.1.2.201511252011.jar che è il binding vero e proprio tra openhab e homeplc

Come vedi, nel passo successivo, questo andrà cancellato. Il pacchetto era già pronto e quindi l'ho lasciato così.

 

3) il binding più recente per master web

- org.openhab.binding.homeplc_1.2.0.201603190741.jar che deve sostituire quello precedente.

 

Però mi sono dimenticato di darti un altro file da mettere nella cartella addons.

Senza di quello il binding homeplc non può funzionare. :toobad:

- com.netbuildingautomation.homeplc_1.0.0.201607171311.jar

Si tratta dell'interfaccia vera e propria tra binding homeplc e sistema domotico homeplc.

 

Scusa... il link te lo mando in privato.

 

 

Link al commento
Condividi su altri siti

Ricapitolando... nella cartella addons per far funzionare homeplc

devi avere due file:

org.openhab.binding.homeplc_1.2.0.201603190741.jar

- com.netbuildingautomation.homeplc_1.0.0.201607171311.jar

 

Link al commento
Condividi su altri siti

flavio.dallara

Non preoccuparti... sono io che ringrazio te per la pazienza ! :thumb_yello:

Dunque nella cartella addons ora ho:

 

org.openhab.binding.homeplc_1.2.0.201603190741.jar

com.netbuildingautomation.homeplc_1.0.0.201607171311.jar

org.openhab.binding.netatmo-1.8.2.jar

org.openhab.binding.zwave-1.5.0-SNAPSHOT.jar

org.openhab.io.habmin-1.5.0-SNAPSHOT.jar

org.openhab.io.myopenhab-1.8.0.jar

org.openhab.persistence.rrd4j-1.7.1.jar

 

ancora ho qualche problemino...ora nel debug sembra si attivi il binding homeplc... ma i dati ancora non compaiono sulla pagina web..

 

02:06:17.960 [DEBUG] [.b.h.internal.HomePLCActivator:30   ] - HomePLC binding has been started.

02:06:18.793 [DEBUG] [i.internal.GenericItemProvider:341  ] - Start processing binding configuration of Item 'Temperatura_Living (Type=NumberItem, State=Uninitialized)' with 'HomePLCGenericBindingProvider' reader.

02:06:18.796 [DEBUG] [.HomePLCGenericBindingProvider:50   ] - Processing HomePLC Binding Configuration for Temperatura_Living

02:06:18.856 [DEBUG] [i.internal.GenericItemProvider:341  ] - Start processing binding configuration of Item 'Umidita_Living (Type=NumberItem, State=Uninitialized)' with 'HomePLCGenericBindingProvider' reader.

02:06:18.858 [DEBUG] [.HomePLCGenericBindingProvider:50   ] - Processing HomePLC Binding Configuration for Umidita_Living

02:06:18.883 [DEBUG] [i.internal.GenericItemProvider:341  ] - Start processing binding configuration of Item 'Finestra_Living (Type=ContactItem, State=Uninitialized)' with 'HomePLCGenericBindingProvider' reader.

02:06:18.886 [DEBUG] [.HomePLCGenericBindingProvider:50   ] - Processing HomePLC Binding Configuration for Finestra_Living

02:06:18.889 [DEBUG] [i.internal.GenericItemProvider:341  ] - Start processing binding configuration of Item 'Luce_Living (Type=DimmerItem, State=Uninitialized)' with 'HomePLCGenericBindingProvider' reader.

02:06:18.912 [DEBUG] [.HomePLCGenericBindingProvider:50   ] - Processing HomePLC Binding Configuration for Luce_Living

Loading JNI lib - Enhanced Edition

Done...

02:06:19.253 [DEBUG] [.o.b.h.internal.HomePLCBinding:68   ] - HomePLCbinding activate

 

cosa posso fare?

 

 

 

Link al commento
Condividi su altri siti

del_user_56966

chiedo solo per chiarimento....

Flavio stai utilizzando HomePLC come Controller o come Master Web...

questo dato che in questo secondo caso c'è solo delle aree predisposte che si possono utilizzare...??

Link al commento
Condividi su altri siti

Le aree del MasterWEB dovrebbero essere queste:

 

Aree

Registri

Modalità

 

Area I/O

1-400

Only Read

1024 I/O

144 Registri Speciali

Area Relè

400-449

R/W

800 Relè

Area Relè

500-549

R/W - Ritentivi

800 Relè Ritentivi

Area Dati

1000-1099

R/W

100   Registri

Area Dati

2000-2099

R/W - Ritentivi

100   Registri

Area Security

3500-3599

 

100 Registri

Area I/O Extender

5500-5935

Only Read

436 Registri

 

Dovresti esserci dentro.

 

Link al commento
Condividi su altri siti

Il binding homeplc invia dati ad openhab solo quando questi subiscono una variazione.

 

Quote

02:06:18.793 [DEBUG] [i.internal.GenericItemProvider:341  ] - Start processing binding configuration of Item 'Temperatura_Living (Type=NumberItem, State=Uninitialized)' with 'HomePLCGenericBindingProvider' reader.

Come vedi lo stato di Temperatura_Living è del tipo Uninitialized. Ovvero non ha ancora ricevuto dati.

 

Per avere un valore iniziale proverei a creare un ulteriore Item del tipo

Switch HomePLCInit {homeplc="INIT"}

 

Poi creerei una rule del tipo

rule "Init"
    when System started
    then
        HomePLCInit.sendCommand(ON)
        HomePLCInit.postUpdate(OFF)
end

In questo modo dovrebbe fare manualmente una lettura di tutti gli item

definiti una volta che si è avviato openhab.

 

Se tutto va bene dovresti vedere dei valori nei relativi campi.

 

NB. Se per caso nelle Rule hai delle istruzioni con START e STOP

quelle commentale pure perchè servono per la versione controller.

Anche i relativi Item li puoi commentare perchè non vengono considerati.

 

Link al commento
Condividi su altri siti

flavio.dallara

Mitico Smoothhands!! funziona! Non riesco a pilotare il dimmer ma non ho capito se è una questione di browser o meno...

appena ho un attimo ci guardo meglio. 

Quindi teoricamente se lasciavo in esecuzione openhab prima o poi tutti i valori venivano aggiornati anche senza questo switch... giusto?

 

 

Link al commento
Condividi su altri siti

Si, alla prima variazione si sarebbero aggiornati.

Il dimmer, se lo utilizzi da browser, ha un comportamento strano

e ho avuto alcune difficoltà anch'io a farlo funzionare.

 

Se hai uno smartphone android/apple puoi installare l'app

openhab e li il dimmer funziona decisamente meglio.

Se anche con l'app non funziona allora dobbiamo riguardare

meglio la logica di funzionamento tra openhab e ladder.

 

 

Link al commento
Condividi su altri siti

flavio.dallara

Funziona perfettamente da app.. Direi che ora posso dedicarmi a creare meglio la sitemap e aggiungere un po' di items. mi complimento ancora per l'ottimo lavoro svolto da smotthhands!

 

 

Link al commento
Condividi su altri siti

flavio.dallara

ho qualche problemino con l'autostart... ho inserito lo script openhab nella cartella /etc/init.d e gli ho dati i permessi di "esecuzione" ( chmod 777 )

però quando provo ad inserirlo in autostart con update-rc.d openhab defaults la risposta è questa:

 

dummy update-rc.d: nothing to do

 

qualcuno mi può aiutare? ovviamente non parte al reboot.. però se provo con /etc/init.d/openhab start funziona...
 

Link al commento
Condividi su altri siti

Crea un account o accedi per commentare

Devi essere un utente per poter lasciare un commento

Crea un account

Registrati per un nuovo account nella nostra comunità. è facile!

Registra un nuovo account

Accedi

Hai già un account? Accedi qui.

Accedi ora

×
×
  • Crea nuovo/a...