Binding Souliss nativo per OpenHab - Binding vNet/MaCaco per openHAB.

942 views
Skip to first unread message

Antonino Fazio

unread,
Dec 5, 2014, 7:47:50 PM12/5/14
to sou...@googlegroups.com
Siamo lieti di aprire alla ML il progetto del binding Souliss per Openhab.
In attesa di scrivere una wiki esauriente sull'argomento tenterò di dare qualche indicazione sul suo funzionamento.

Per la configurazione del binding occorre eseguire qualche modifica ai file di configurazione di openhab. Al riguardo prevediamo di fornire prestissimo un piccolo software per l'autoconfigurazione.

----
We are pleased to open to ML the project of Souliss binding for Openhab . 
We going to write a exhaustive wiki, but just for now I will try to give some instructions. We hope to release soon a autoconfiguration software.
For start you have to add some text to OH configuration files:


1) .\openhab\configurations\openhab.cfg
Aggiungere in fondo - Add at the bottom:

################################ Souliss Binding ##########################################
#
# Souliss  
# For ITEM defination in file .item 
#{souliss=<Typical>:<nodeID>:<slot>:[<bit>]}

souliss:IP_WAN=192.168.1.105
souliss:IP_LAN=192.168.1.105
souliss:USER_INDEX=71
souliss:NODE_INDEX=134
#SERVERPORT - Leave empty for casual port
souliss:SERVERPORT=

#time in mills
souliss:REFRESH_DBSTRUCT_TIME=600000
souliss:REFRESH_SUBSCRIPTION_TIME=120000
souliss:REFRESH_HEALTY_TIME=60000
souliss:REFRESH_MONITOR_TIME=500
souliss:SEND_DELAY=1500
souliss:SEND_MIN_DELAY=100
souliss:NODE_NUMBERS=4
###########################################################################################

SARA' NECESSARIO PERSONALIZZARE SOLTANTO - You need to change only:
-IP_WAN
-IP_LAN
-NODE_NUMBER


2) .\openhab\configurations\items\defaultSitemap.items

definire i propri items ed aggiungere alla fine di ogni riga di definizione - define your items and add to the end of each line of definition

{souliss=<Typical>:<nodeID>:<slot>:[<bit>]}

dove TYPICAL ha la forma: T11, T12, T13, T16, T1A, T22, T51, T52, T53, T57, D98, D99 (questi per il momento sono i tipici supportati) (for the moment these are the typical supported)

-nodeID e slot hanno il significato che l'utente Souliss ormai conosce bene.
-bit è utilizzato per il tipico T1A (riceve un byte in ingresso, ed il bit indicato definisce il valore ON/OFF oppure OPEN/CLOSE dell'item)

ES:
Switch LuceSogg "LuceSogg"  (GF_Soggiorno, TechnicView_Node0) {souliss="T11:0:6", autoupdate=false}
Number Temperature_GF_Soggiorno "Temperatura Soggiorno [%.1f °C]" <temperature> (temperature, GF_Temperature, TechnicView_Node0) {souliss="T52:0:0", autoupdate=false}
Number Umidita_GF_Soggiorno "Umidità Soggiorno [%.1f %%]" <temperature> (temperature, GF_Temperature, TechnicView_Node0) {souliss="T53:0:2", autoupdate=false}
Number Consumo_GF_Soggiorno "Consumo [%.1f W]" <energy> (GF_Temperature, TechnicView_Node0) {souliss="T57:0:4", autoupdate=false}
Rollershutter Shutter1_GF_Soggiorno "Tenda1" (GF_Soggiorno, TechnicView_Node3 {souliss="T22:3:0", autoupdate=false} 
Contact ContattoTest "Contatto" (GF_Soggiorno, Lights) {souliss="T13:0:1", autoupdate=true}
Contact C2 "BIT 3" (GF_Soggiorno, TechnicView_Node3) {souliss="T1A:3:5:2"}
Contact C3 "BIT 4" (GF_Soggiorno, TechnicView_Node3) {souliss="T1A:3:5:3"}
Color  RGB_Led_Strip_1 "RGB Led Strip 1" <slider> (GF_Soggiorno)  {souliss="T16:0:2", autoupdate=false}


TIPICI DI SERVIZIO - SERVICE TYPICALS
Abbiamo introdotto due tipici di servizio - We introduced two service typicals: D98 (Health) e D99 (Timestamp), definiti in questo modo
{souliss="D98:<nodeNumber>:998"}
{souliss="D99:<nodeNumber>:999"}

ES:
Number HEALTNodo1_GF_Servizio "Health Nodo 1 [%1d]" <keyring> (Diagnostic, TechnicView_Node0) {souliss="D98:0:998"}
String TIMESTAMP_Nodo1_GF_Servizio "Timestamp Nodo 1 [%1$td.%1$tm.%1$tY %1$tk:%1$tM:%1$tS]" <keyring> (Diagnostic, TechnicView_Node0) {souliss="D99:0:999"}
 

3) Aggiungere il fileorg.openhab.binding.souliss_1.5.0.201411250242.jar nella cartella .\openhab\addons
Add attached file in directory .\openhab\addons

4) Riavviare OH - Restart OH

Nota: contrariamente a quanto annunciato qui (post Binding vNet/MaCaco per openHAB) in questa prima versione il binding non comunica direttamente coi nodi ma si serve, così come SoulissApp del Gateway di Souliss.
Siamo a disposizione per chiarimenti, segnalazioni di bug, proposte e suggerimenti.

In this first version the native binding does not communicate directly with nodes but it need to communicate with souliss gateway (how does SoulissApp).
We are available for questions , bug reports , proposals and suggestions.

Tonino
org.openhab.binding.souliss_1.5.0.201411250242.jar

Flavio P.

unread,
Dec 6, 2014, 5:26:09 AM12/6/14
to sou...@googlegroups.com
Ottimo lavoro, configurato con estrema facilità.
Tengo sotto test, vi riporto eventuali problemi.

p.s. strabiliante la velocità di funzionamento, nessuna differenza da SoulissApp

Complimenti ragazzi!

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/souliss/640814f7-ab6a-4876-a284-e8942a025aa6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
P ********* Consideriamo l'ambiente prima di stampare questa e-mail *** Think about environment before printing *********
Il contenuto di questo messaggio e-mail è privato e riservato al solo destinatario. L'utilizzo non autorizzato può costituire reato. Se ricevuto erroneamente siete pregati di cancellarlo e comunicarci via e-mail l'errata ricezione.

Dario Di Maio

unread,
Dec 6, 2014, 5:44:18 AM12/6/14
to sou...@googlegroups.com
This binding has been developed and tested by Antonino and Fulvio and access the Souliss network as SoulissApp does (some code has been kept from SoulissApp, thanks Alessandro!) and doesn't require any additional configuration on your Souliss nodes.

This is intended for people that has some experience with openHAB also and in the future will became public.

Keep the discussion in English and wait for your feedback.

Thanks,
Dario.

Flavio P.

unread,
Dec 6, 2014, 5:58:32 AM12/6/14
to sou...@googlegroups.com
Ok, very good binding for openHAB, this can increase a lot of time Souliss-diffusion.
Configuration are very simple. 
My configuration with 3 node and 28 slot, take me about 5 mins of time.

Very good job,congratulation to all, impressive!

This binding invite me to the thinking (the old discussion), to develop a new Qt GUI for Souliss... :-)




--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Di Maio, Dario

unread,
Dec 6, 2014, 6:51:57 AM12/6/14
to sou...@googlegroups.com

Hi Antonino,

Does this code any check on execution of a command?

The suggested way is a timeout for any command that has been send, if an incoming frame for that ID is not received within the timeout, the message is sent out again.

Dario.

From Mobile.

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

Tonino Fazio

unread,
Dec 6, 2014, 7:07:23 AM12/6/14
to sou...@googlegroups.com

At this moment the plugin does not do any check.
We will remember for next enhancements.

You received this message because you are subscribed to a topic in the Google Groups "souliss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/souliss/eU6XF8Ebwc4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to souliss+u...@googlegroups.com.

To post to this group, send email to sou...@googlegroups.com.

Juan Pinto

unread,
Dec 6, 2014, 11:10:46 AM12/6/14
to sou...@googlegroups.com
Hi, Sorry if the question it's explained yet, but I can't find how to configure.

File .jar copied to addons.

Added to openhab_default.cfg the lines from the first post, and modified :
souliss:IP_WAN=192.168.1.105
souliss:IP_LAN=192.168.1.105
souliss:USER_INDEX=71            
souliss:NODE_INDEX=134
souliss:NODE_NUMBERS=4

Two questions:
User and Node Index are the same from the Souliss App right?

NODE_NUMBERS must be the Macaco Nodes defined or the quantity of nodes actually on Souliss?

Im trying with OA 1.6.1. (Only downloaded Runtime File)

I created file defaultSitemap.items on configuration/items/ and added this:

Switch LuceSogg "LuceSogg" (GF_Soggiorno, TechnicView_Node0) {souliss="T11:0:13", autoupdate=false}
Number Temperature_GF_Soggiorno "Temperatura Soggiorno [%.1f °C]" <temperature> (temperature, GF_Temperature, TechnicView_Node0) {souliss="T52:0:0", autoupdate=false}

Once Openhab app is installed I configured the IP and desactivated demo mode. The error is: "openHab returned empty sitemap list". What I need to put on sitemap folder? Something like this?

sitemap default label="Main Menu"
{
Frame {
Switch LuceSogg "LuceSogg" (GF_Soggiorno, TechnicView_Node0) {souliss="T11:0:13", autoupdate=false}
Number Temperature_GF_Soggiorno "Temperatura Soggiorno [%.1f °C]" <temperature> (temperature, GF_Temperature, TechnicView_Node0) {souliss="T52:0:0", autoupdate=false}
     }
}

Ty for your work guys, this integration it's awesome :))

Di Maio, Dario

unread,
Dec 6, 2014, 11:56:47 AM12/6/14
to sou...@googlegroups.com

Hi Juan,

The User and Node Index MUST be different for each user interface, so shall not be the same of SoulissApp.

Consider that SoulissApp define those two randomly based on the sim serial number.

The Node number is the actual number of nodes in your installation and not the maximum number set in MaCaco.

Dario.

From Mobile.

Juan Pinto

unread,
Dec 6, 2014, 12:48:39 PM12/6/14
to sou...@googlegroups.com

Ty Dario, I'll try later but the error on the app still here.  I think that more configuration needed on sites folder.

Di Maio, Dario

unread,
Dec 6, 2014, 12:49:21 PM12/6/14
to sou...@googlegroups.com

I cannot help on the binding.

Dario.

From Mobile.

Tonino Fazio

unread,
Dec 6, 2014, 2:01:55 PM12/6/14
to sou...@googlegroups.com

Juan Pinto

unread,
Dec 6, 2014, 2:26:27 PM12/6/14
to sou...@googlegroups.com
There is no file on configurations/sitemaps, I need to create one?
> https://groups.google.com/d/msgid/souliss/CAKYnwsDQd0tyHJe1BqMMBk6O-xzGZRHJajRqOt2aovxTyB%3Dgig%40mail.gmail.com.

Fulvio Spelta

unread,
Dec 6, 2014, 8:12:15 PM12/6/14
to sou...@googlegroups.com
Before to answer to Juan a little general preface.
In order to use this binding a little knowledge of openhab is required because it offers services on top of the openhab platform so you have to deal with its characteristics and requirements.
To better start i think that it's better to avoid the use of demo configuration: use it in order to test that your environment is correctly running but following delete it from your production environment to avoid interference with your first tries to use souliss binding.

A quick reading to OH wiki is mandatory https://github.com/openhab/openhab/wiki.

Remember that OH is a very powerful and complex software that heavily rely on configuration files that have to be manually edited and not always shows clear diagnostic messages in case of errors.

About the problem:a minimum OH configuration needs 3 files
  • the binding installed as posted before
  • an .items file to define the items (slots in souliss language)
  • an .sitemap file to define the user interface
On your configuration create a file with "default.sitemap" name in the /configuration/sitemap directory with this content:
sitemap default label="Main Menu"
Frame {
Switch item=LuceSogg
Text item=Temperature_GF_Soggiorno
}

then start OH and open the url:
using chrome or a webkit enabled browser.

Let us know
Ciao
f

Juan Pinto

unread,
Dec 7, 2014, 2:01:07 PM12/7/14
to sou...@googlegroups.com
Let me say again thank you Fluvio for the info and the patience... ;)

I readed now more info about it (I've interested before, but don't made a deep reading on the wiki). Now I've eyes open wide with the posibilities and how easy is to configure OA :)

Now I have six items added on the interface and it's easy to add more.

I found this amazing webapp to configure OA:

With this you can configure all on a simple interface instead of edit text files. 

Regards

Juan Pinto

unread,
Dec 7, 2014, 5:57:14 PM12/7/14
to sou...@googlegroups.com
Well Im doing very good things with Openhab :)

T19 isn't integrated :( should be easy (like T16 but only one channel)

Other question: How I can configure a T12 to see on Openhab like on SoulissApp (On, Auto, Off buttons)

Regards and ty again :)

Tonino Fazio

unread,
Dec 8, 2014, 3:32:00 AM12/8/14
to sou...@googlegroups.com

At the moment T12 isn't fully supported by OH. The binding provides only ON/OFF funcionality.
You can look at configuration file commands_OHtoSOULISS.properties, inside the jar file.
You can modify at line
#Typical 12 : ON/OFF Digital Output with AUTO mode
0x12_ON=0x02
0x12_OFF=0x04
You can change the ON or OFF value with 0x08, that is the auto command code.
Not tested.
Let me know.

Di Maio, Dario

unread,
Dec 8, 2014, 3:32:44 AM12/8/14
to sou...@googlegroups.com

@Antonino and Fulvio,

Can openHAB be triggered remotly? I mean, using a frame from a node to start a sequence.

Dario.

From Mobile.

Fulvio Spelta

unread,
Dec 8, 2014, 5:23:35 PM12/8/14
to sou...@googlegroups.com
First at all: Juan and all others always welcome!

@Dario: I'm not sure to have understood well your question but I try: you can define an item binded to a slot, for example a T13 and create a rule that will be executed on item change. The slot could be a real "contact" or simply a service slot whose state is  changed by the sketch's logic.

This method is fully "souliss compliant" and doesn't require any other logic. Additionally you can use the OH REST interface.

What's the functional goal you are thinking about?

Di Maio, Dario

unread,
Dec 8, 2014, 5:31:54 PM12/8/14
to sou...@googlegroups.com
I don't really know o_O

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

Marcolino

unread,
Dec 8, 2014, 6:12:10 PM12/8/14
to sou...@googlegroups.com
Binding Up and Running on one typical in 3 minutes
Souliss version is chiattillo.
Tomorrow I'll move some other typical from http/xml to native bindings

Marco

Marcolino

unread,
Dec 8, 2014, 6:19:30 PM12/8/14
to sou...@googlegroups.com
Hi,
checking healt i get 255. What it means? 0 is BAD and 255 is very good?

Thanks

Di Maio, Dario

unread,
Dec 8, 2014, 6:24:18 PM12/8/14
to sou...@googlegroups.com
Yes, it the maximum value.

Dario.

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

Tonino Fazio

unread,
Dec 8, 2014, 6:24:55 PM12/8/14
to sou...@googlegroups.com

Hi. Yes 255 is very good.

--
You received this message because you are subscribed to a topic in the Google Groups "souliss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/souliss/eU6XF8Ebwc4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to souliss+u...@googlegroups.com.

To post to this group, send email to sou...@googlegroups.com.

Di Maio, Dario

unread,
Dec 8, 2014, 6:25:08 PM12/8/14
to sou...@googlegroups.com
Marco, please verify if the problem updating data to SoulissApp are there even with openHAB.

Thanks.
Dario.

On Tue, Dec 9, 2014 at 12:19 AM, Marcolino <marco.p...@gmail.com> wrote:

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

Marcolino

unread,
Dec 8, 2014, 6:27:31 PM12/8/14
to sou...@googlegroups.com
Very Very Good.
In case I would like to fire an alarm when node is down, wich is the value? I use Notify My Android and SMS to send alert, so I would like to fire an SMS when node in furnace room goes down for example.

@Dario, I need to know how this binding log into openhab.log file, and what i need to search for

Thanks

Tonino Fazio

unread,
Dec 8, 2014, 6:37:10 PM12/8/14
to sou...@googlegroups.com
For log line you can look for "o.o.b.s":

ES:
23:49:49.250 DEBUG o.o.b.s.i.n.u.UDPServerThread[:47]- Packet received
23:49:49.250 DEBUG o.o.b.s.i.n.u.UDPServerThread[:48]- HEX: [24 23 17
86 47 6A 00 31 00 00 01 18 01 01 01 00 00 00 00 etc...
23:49:49.266 DEBUG o.o.b.s.i.n.u.UDPSoulissDecoder[:265]-
decodeStateRequest: etc...
Tonino Fazio
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "souliss" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/souliss/eU6XF8Ebwc4/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> souliss+u...@googlegroups.com.
> To post to this group, send email to sou...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/souliss/cd6a7019-aee6-4fe5-b499-f697ac679ee2%40googlegroups.com.

Di Maio, Dario

unread,
Dec 9, 2014, 4:06:41 AM12/9/14
to sou...@googlegroups.com

You want do this via openHAB or SoulissApp?

Dario.

From Mobile.

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.

To post to this group, send email to sou...@googlegroups.com.

Marco Pozzuolo

unread,
Dec 9, 2014, 4:16:09 AM12/9/14
to sou...@googlegroups.com
Hi Dario,
I would like to check in binding's Logs if binding is working fine or not.

For now seems it work fine, It's only slow to push command and retrieve status to Souliss gateway.

Marco



-----------------------------------------------------------------------------------------------------------------
Marco Pozzuolo
PS. Realizzo PCB artigianali con piste stagnate.

--
You received this message because you are subscribed to a topic in the Google Groups "souliss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/souliss/eU6XF8Ebwc4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to souliss+u...@googlegroups.com.

To post to this group, send email to sou...@googlegroups.com.

Di Maio, Dario

unread,
Dec 9, 2014, 4:21:59 AM12/9/14
to sou...@googlegroups.com

Is expected to go as fast as SoulissApp, please do test over long enough time to check if it stops.

Please use both OA and SoulissApp and check if both stops as per the problem that you have reported in the past.

Dario.

From Mobile.

Marcolino

unread,
Dec 9, 2014, 4:27:21 AM12/9/14
to sou...@googlegroups.com
Hi Dario,
is not fast as Souliss APP.
When I press a switch button I see into the logs some command sent do Gateway, but then i see a lot of receiveUpdate of Item not relate to souliss:

10:22:20.040 INFO  o.o.b.s.i.SoulissBinding[:248]- receiveUpdate - ACQUARI_RS_CAVETTO = A0.53r|11:17|6.77681|0|2|
10:22:21.700 INFO  o.o.b.s.i.SoulissBinding[:248]- receiveUpdate - INGRESSO_CAMINGRESSO = 36.81
10:22:22.205 INFO  o.o.b.s.i.SoulissBinding[:248]- receiveUpdate - ACQUARI_RS_PH = 6.77681
10:22:22.358 INFO  o.o.b.s.i.SoulissBinding[:248]- receiveUpdate - PRESENZA_MACLIST = assoclist 48:02:2A:42:93:4A
10:22:22.368 INFO  o.o.b.s.i.SoulissBinding[:248]- receiveUpdate - PRESENZA_MARCO = Assente
10:22:22.385 INFO  o.o.b.s.i.SoulissBinding[:248]- receiveUpdate - PRESENZA_ANTO = Assente
10:22:22.773 INFO  o.o.b.s.i.SoulissBinding[:248]- receiveUpdate - CALDAIA_TERMOSTATO = 0
10:22:23.535 INFO  o.o.b.s.i.SoulissBinding[:248]- receiveUpdate - ACQUARI_TF_RABB = 0
10:22:23.808 INFO  o.o.b.s.i.SoulissBinding[:248]- receiveUpdate - CALDAIA_SENSOREGAS = 0
10:22:24.708 INFO  o.o.b.s.i.SoulissBinding[:248]- receiveUpdate - ACQUARI_TF_LIV = 1
10:22:24.872 INFO  o.o.b.s.i.SoulissBinding[:248]- receiveUpdate - CAMERA_PWS_SVEGLIA = 0
10:22:25.841 INFO  o.o.b.s.i.SoulissBinding[:248]- receiveUpdate - ACQUARI_RS_LIV = 1
10:22:25.932 INFO  o.o.b.s.i.SoulissBinding[:248]- receiveUpdate - INGRESSO_CURRENT_TEMP = 19.31
10:22:26.980 INFO  o.o.b.s.i.SoulissBinding[:248]- receiveUpdate - ACQUARI_RS_RABB = 0
10:22:26.983 INFO  o.o.b.s.i.SoulissBinding[:248]- receiveUpdate - CALDAIA_CONTROLLO = 0
10:22:28.018 INFO  o.o.b.s.i.SoulissBinding[:248]- receiveUpdate - CALDAIA_T_RITORNO = 25.05
10:22:28.084 INFO  o.o.b.s.i.SoulissBinding[:248]- receiveUpdate - ACQUARI_TF_FAN = A0.53t|11:15|6.57391|0|2|
10:22:28.237 INFO  o.o.b.s.i.SoulissBinding[:248]- receiveUpdate - PRESENZA_MACLIST = assoclist 48:02:2A:42:93:4A
10:22:28.242 INFO  o.o.b.s.i.SoulissBinding[:248]- receiveUpdate - PRESENZA_MARCO = Assente
10:22:28.244 INFO  o.o.b.s.i.SoulissBinding[:248]- receiveUpdate - PRESENZA_ANTO = Assente
10:22:29.042 INFO  o.o.b.s.i.SoulissBinding[:248]- receiveUpdate - CALDAIA_T_MANDATA = 23.94


All item on top are not related to souliss bindings. After sending the command to Souliss Board, take more different time to update OA each time. Sometime 2 seconds sometime 1 minutes.

Issue I have in the past with souliss app are related to a inactivity on the App. If I continue to send and receive command on App, I never have issue, so Binding send and receive command continuosly and IMHO never have this issue.

Marco

Di Maio, Dario

unread,
Dec 9, 2014, 4:29:00 AM12/9/14
to sou...@googlegroups.com

Let's wait Antonino, he can help us on that problem.

Your OA isn't working as expected.

Dario.

From Mobile.

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

Marco Pozzuolo

unread,
Dec 9, 2014, 4:30:33 AM12/9/14
to sou...@googlegroups.com
Ok I'm available to troubleshoot.
For now I setup only 2 T11 and 1 T52 on nrf24 and USART board.
I keep them in test.

Marco


-----------------------------------------------------------------------------------------------------------------
Marco Pozzuolo
PS. Realizzo PCB artigianali con piste stagnate.

--
You received this message because you are subscribed to a topic in the Google Groups "souliss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/souliss/eU6XF8Ebwc4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to souliss+u...@googlegroups.com.

To post to this group, send email to sou...@googlegroups.com.

Marcolino

unread,
Dec 9, 2014, 4:35:02 AM12/9/14
to sou...@googlegroups.com
In Example,
In this case i send command to turn off a T11 on node 3 slot 0.
OA updated the status to OFF after 30 seconds:

10:32:48.082 DEBUG o.o.b.s.i.n.t.StateTraslator[:28]- translate commands: OFF -> 0x04
10:32:48.083 DEBUG o.o.b.s.i.n.u.SoulissCommGate[:47]- sendFORCEFrame - HEX: [33 00 00 03 01 04 ], soulissNodeIPAddress: 192.168.1.129, soulissNodeIPAddressOnLAN: 192.168.1.129
10:32:48.084 DEBUG o.o.b.s.i.n.u.SendDispatcherThread[:40]- Push
10:32:48.085 DEBUG o.o.b.s.i.n.u.SendDispatcherThread[:89]- Add frame: HEX: [0D 0C 17 81 00 86 47 33 00 00 03 01 04 ]
10:32:48.131 DEBUG o.o.b.s.i.n.u.SendDispatcherThread[:126]- Pop frame HEX: [0D 0C 17 81 00 86 47 33 00 00 03 01 04 ] - Delay for 'SendDispatcherThread' setted to 100 mills.
10:32:48.132 DEBUG o.o.b.s.i.n.u.SendDispatcherThread[:143]- SendDispatcherThread - Functional Code 0x33 - Packet: HEX: [0D 0C 17 81 00 86 47 33 00 00 03 01 04 ] - Elementi rimanenti in lista: 0


Marco

Flavio P.

unread,
Dec 9, 2014, 7:29:23 AM12/9/14
to sou...@googlegroups.com
Ciao Marco,
if you can help, i've just added a rule for check health of my node(by an email alert), in a very simple way, you must add in oadirectory/conficurations/rules/yourrule.rules ,a simple code like this:

rule "Health NODO1"

when
    Item HEALTNodo1 received update   
then
if (HEALTNodo1.state < 250)         
             {sendMail("your...@mail.xx", "Sorveglianza NODO1", "Mancanza Segni di vita NODO1!")
             }
end

2014-12-09 0:27 GMT+01:00 Marcolino <marco.p...@gmail.com>:
--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.

To post to this group, send email to sou...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
P ********* Consideriamo l'ambiente prima di stampare questa e-mail *** Think about environment before printing *********
Il contenuto di questo messaggio e-mail è privato e riservato al solo destinatario. L'utilizzo non autorizzato può costituire reato. Se ricevuto erroneamente siete pregati di cancellarlo e comunicarci via e-mail l'errata ricezione.

Marco Pozzuolo

unread,
Dec 9, 2014, 7:37:13 AM12/9/14
to sou...@googlegroups.com
Hi Flavio,
I know I add rule and send notification, what I don't know is the threashold values under wich send notification.
You user 250, but sometimes my wireless node are a 243/240. My question is which is the threashold value for be sure that node is in failure.

Thanks


-----------------------------------------------------------------------------------------------------------------
Marco Pozzuolo
PS. Realizzo PCB artigianali con piste stagnate.

--
You received this message because you are subscribed to a topic in the Google Groups "souliss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/souliss/eU6XF8Ebwc4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to souliss+u...@googlegroups.com.

To post to this group, send email to sou...@googlegroups.com.

Flavio P.

unread,
Dec 9, 2014, 7:40:57 AM12/9/14
to sou...@googlegroups.com
This is a question for Dario....
@Dario, you can explain us the right means of this value? How Souliss calculate this value? 


For more options, visit https://groups.google.com/d/optout.

Di Maio, Dario

unread,
Dec 9, 2014, 7:42:23 AM12/9/14
to sou...@googlegroups.com
The minimum value is 0x01, but the value that you should use depends mostly on your network setup. Basically that value is used to define a polling rate on top of event-based communication, if your node has 0xFF you are not running in polling (almost) at all, rather the polling rate increase while the healthy decrease.

So, monitor the values for a couple of days, if your run at 230 as lower, you set your fault at 130 or lower. Consider that at startup all nodes start at a low value, so you should avoid to get alarm in that case.

Dario.

Flavio P.

unread,
Dec 9, 2014, 7:46:33 AM12/9/14
to sou...@googlegroups.com
In startup case we can add a delay, this is not a problem.

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Marco Pozzuolo

unread,
Dec 9, 2014, 7:49:12 AM12/9/14
to sou...@googlegroups.com
Hi Dario,
I'll monitor values with OpenHab Persistence for some days dreawing some chart, then I'll back with value to understand better values.
Thanks
Marco


-----------------------------------------------------------------------------------------------------------------
Marco Pozzuolo
PS. Realizzo PCB artigianali con piste stagnate.

You received this message because you are subscribed to a topic in the Google Groups "souliss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/souliss/eU6XF8Ebwc4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to souliss+u...@googlegroups.com.

To post to this group, send email to sou...@googlegroups.com.

Di Maio, Dario

unread,
Dec 9, 2014, 8:10:28 AM12/9/14
to sou...@googlegroups.com

You can probably do this directly via openHAB because the binding get those values.

Dario.

From Mobile.

Marcolino

unread,
Dec 9, 2014, 11:19:55 AM12/9/14
to sou...@googlegroups.com
Hi,
I think that this is a cosmetic, because binding work.
Using OpenHab Editor, Item defined as Souliss Binding are in error. Please check attached screenshoot


Thanks

Fulvio Spelta

unread,
Dec 9, 2014, 1:13:48 PM12/9/14
to sou...@googlegroups.com
Hi all, i suggest to open specific thread for every question in order to maintain some readability. Please start thread title with 'OpenHAB' in order to let us able to quick understand that the question is about openhab binding and related use.

@Marcolino: please test the binding avoiding as much as possible interference by other activities for the testing period.

About your post https://groups.google.com/d/msg/souliss/eU6XF8Ebwc4/OT00punvrJEJ it is correct because the binding is notified of all changes. To be clear me and Antonino have to investigate about this but at the time is considered a "correct" behavior.

About this post https://groups.google.com/d/msg/souliss/eU6XF8Ebwc4/l8cerXwFuEsJ please post the full log, by this fragment i see the "send command" activity from binding to gateway but i can't see the reception of notification frame by the gateway.

If it is possibile repeat this test using a smaller items file with souliss items only.

thx
f

Marcolino

unread,
Dec 9, 2014, 5:49:34 PM12/9/14
to sou...@googlegroups.com
I'm testing another Power Socket and Souliss Bindings. My Wife is very Happy. :-)))))


@Fulvio, I cannot reduce the numebr of item in my OpenHab config, Half of my house (Heater, Lights, and Christmas Tree :)) ) depend from OpenHAB. Now Binding is working like expected, last night did only few test. Now we have an harder tester, my wife with Christmas Tree. I'll back with result.

@Dario, could we open a new forum into mysouliss.eu dedicate to OA Binding?


Regards


Marco



Di Maio, Dario

unread,
Dec 9, 2014, 5:54:52 PM12/9/14
to sou...@googlegroups.com
Hi Marco,

the openHAB binding is not yet official, so for now discussion shall be in the ML. Later we will move to forum also.

Regards,
Dario.

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

Marco Pozzuolo

unread,
Dec 9, 2014, 5:56:01 PM12/9/14
to sou...@googlegroups.com
Dario, thanks for explanations.
M.


-----------------------------------------------------------------------------------------------------------------
Marco Pozzuolo
PS. Realizzo PCB artigianali con piste stagnate.

--
You received this message because you are subscribed to a topic in the Google Groups "souliss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/souliss/eU6XF8Ebwc4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to souliss+u...@googlegroups.com.

To post to this group, send email to sou...@googlegroups.com.

Fulvio Spelta

unread,
Dec 10, 2014, 12:17:24 AM12/10/14
to sou...@googlegroups.com
Great beta tester! Good luck!

Juan Pinto

unread,
Dec 10, 2014, 5:00:17 PM12/10/14
to sou...@googlegroups.com
Jaja, good job Marcolino! I want to add this image too!! can you tell me how I can add personalized images to OH? :P (on private if you want)

On the beta test side I want to say thank you again. I have now 5 nodes configured ok and I tried to install on my pc and my raspberry, and works perfect from both sides. Im trying to add some security now, but this is a non-relevant question. 

Regards

El miércoles, 10 de diciembre de 2014 06:17:24 UTC+1, Fulvio Spelta escribió:
Great beta tester! Good luck!

Gabriele Ribichini

unread,
Dec 13, 2014, 7:35:18 PM12/13/14
to sou...@googlegroups.com
Hello my friends,
thanks a lot for what you have done !

I have a RaspberryPI too up and running with OH, 12 nodes and 38 slots..

BR
- gab

Fulvio Spelta

unread,
Dec 14, 2014, 3:07:54 AM12/14/14
to sou...@googlegroups.com
Very good news! Great Marcolino

Saverio Sbrana

unread,
Dec 14, 2014, 6:21:17 AM12/14/14
to sou...@googlegroups.com
Hi it's the autoupdate value, this is correct
autoupdate="false"

Fulvio Spelta

unread,
Dec 14, 2014, 8:29:02 AM12/14/14
to sou...@googlegroups.com
Thanks Saverio.

Gabriele Ribichini

unread,
Dec 14, 2014, 11:44:07 AM12/14/14
to sou...@googlegroups.com
Ciao Antonino,
I handle my rollershutters with T21, are you planning to implement the binding for it too ?

thanks
- gabriele

On Saturday, December 6, 2014 1:47:50 AM UTC+1, Antonino Fazio wrote:
Siamo lieti di aprire alla ML il progetto del binding Souliss per Openhab.
In attesa di scrivere una wiki esauriente sull'argomento tenterò di dare qualche indicazione sul suo funzionamento.

Per la configurazione del binding occorre eseguire qualche modifica ai file di configurazione di openhab. Al riguardo prevediamo di fornire prestissimo un piccolo software per l'autoconfigurazione.

----
We are pleased to open to ML the project of Souliss binding for Openhab . 
We going to write a exhaustive wiki, but just for now I will try to give some instructions. We hope to release soon a autoconfiguration software.
For start you have to add some text to OH configuration files:


1) .\openhab\configurations\openhab.cfg
Aggiungere in fondo - Add at the bottom:

################################ Souliss Binding ##########################################
#
# Souliss  
# For ITEM defination in file .item 
#{souliss=<Typical>:<nodeID>:<slot>:[<bit>]}

souliss:IP_WAN=192.168.1.105
souliss:IP_LAN=192.168.1.105
souliss:USER_INDEX=71
souliss:NODE_INDEX=134
#SERVERPORT - Leave empty for casual port
souliss:SERVERPORT=

#time in mills
souliss:REFRESH_DBSTRUCT_TIME=600000
souliss:REFRESH_SUBSCRIPTION_TIME=120000
souliss:REFRESH_HEALTY_TIME=60000
souliss:REFRESH_MONITOR_TIME=500
souliss:SEND_DELAY=1500
souliss:SEND_MIN_DELAY=100
souliss:NODE_NUMBERS=4
###########################################################################################

SARA' NECESSARIO PERSONALIZZARE SOLTANTO - You need to change only:
-IP_WAN
-IP_LAN
-NODE_NUMBER


2) .\openhab\configurations\items\defaultSitemap.items

definire i propri items ed aggiungere alla fine di ogni riga di definizione - define your items and add to the end of each line of definition

{souliss=<Typical>:<nodeID>:<slot>:[<bit>]}

dove TYPICAL ha la forma: T11, T12, T13, T16, T1A, T22, T51, T52, T53, T57, D98, D99 (questi per il momento sono i tipici supportati) (for the moment these are the typical supported)

-nodeID e slot hanno il significato che l'utente Souliss ormai conosce bene.
-bit è utilizzato per il tipico T1A (riceve un byte in ingresso, ed il bit indicato definisce il valore ON/OFF oppure OPEN/CLOSE dell'item)

ES:
Switch LuceSogg "LuceSogg"  (GF_Soggiorno, TechnicView_Node0) {souliss="T11:0:6", autoupdate=false}
Number Temperature_GF_Soggiorno "Temperatura Soggiorno [%.1f °C]" <temperature> (temperature, GF_Temperature, TechnicView_Node0) {souliss="T52:0:0", autoupdate=false}
Number Umidita_GF_Soggiorno "Umidità Soggiorno [%.1f %%]" <temperature> (temperature, GF_Temperature, TechnicView_Node0) {souliss="T53:0:2", autoupdate=false}
Number Consumo_GF_Soggiorno "Consumo [%.1f W]" <energy> (GF_Temperature, TechnicView_Node0) {souliss="T57:0:4", autoupdate=false}
Rollershutter Shutter1_GF_Soggiorno "Tenda1" (GF_Soggiorno, TechnicView_Node3 {souliss="T22:3:0", autoupdate=false} 
Contact ContattoTest "Contatto" (GF_Soggiorno, Lights) {souliss="T13:0:1", autoupdate=true}
Contact C2 "BIT 3" (GF_Soggiorno, TechnicView_Node3) {souliss="T1A:3:5:2"}
Contact C3 "BIT 4" (GF_Soggiorno, TechnicView_Node3) {souliss="T1A:3:5:3"}
Color  RGB_Led_Strip_1 "RGB Led Strip 1" <slider> (GF_Soggiorno)  {souliss="T16:0:2", autoupdate=false}


TIPICI DI SERVIZIO - SERVICE TYPICALS
Abbiamo introdotto due tipici di servizio - We introduced two service typicals: D98 (Health) e D99 (Timestamp), definiti in questo modo
{souliss="D98:<nodeNumber>:998"}
{souliss="D99:<nodeNumber>:999"}

ES:
Number HEALTNodo1_GF_Servizio "Health Nodo 1 [%1d]" <keyring> (Diagnostic, TechnicView_Node0) {souliss="D98:0:998"}
String TIMESTAMP_Nodo1_GF_Servizio "Timestamp Nodo 1 [%1$td.%1$tm.%1$tY %1$tk:%1$tM:%1$tS]" <keyring> (Diagnostic, TechnicView_Node0) {souliss="D99:0:999"}
 

3) Aggiungere il fileorg.openhab.binding.souliss_1.5.0.201411250242.jar nella cartella .\openhab\addons
Add attached file in directory .\openhab\addons

4) Riavviare OH - Restart OH

Nota: contrariamente a quanto annunciato qui (post Binding vNet/MaCaco per openHAB) in questa prima versione il binding non comunica direttamente coi nodi ma si serve, così come SoulissApp del Gateway di Souliss.
Siamo a disposizione per chiarimenti, segnalazioni di bug, proposte e suggerimenti.

In this first version the native binding does not communicate directly with nodes but it need to communicate with souliss gateway (how does SoulissApp).
We are available for questions , bug reports , proposals and suggestions.

Tonino

Di Maio, Dario

unread,
Dec 14, 2014, 11:48:36 AM12/14/14
to sou...@googlegroups.com

Match it with T22.

Dario.

From Mobile.

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

Tonino Fazio

unread,
Dec 14, 2014, 6:06:51 PM12/14/14
to sou...@googlegroups.com

Can you test using T22?

--
You received this message because you are subscribed to a topic in the Google Groups "souliss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/souliss/eU6XF8Ebwc4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to souliss+u...@googlegroups.com.

Fulvio Spelta

unread,
Dec 14, 2014, 6:47:06 PM12/14/14
to sou...@googlegroups.com
Gabriele I suggest to use the new T22 (I'm using it) that have local (button) and sw commands.
It works very well in souliss and in binding.
f

Gabriele Ribichini - LEANE Int. Srl

unread,
Dec 15, 2014, 1:13:32 AM12/15/14
to sou...@googlegroups.com

OK,
I will update my code to T22.

BTW
I noticed that operating from OH (in my case is the native Android app) is slower than SoulissApp.
For slow I mean that turning on the light you wait from 1/2 sec to 5 seconds to see the light on.
The lag increase even more when tapping fast on more than a control (e.g. to turn on more than a light quickly)

I did not have the time to test if it could be related to the limited calculation power of the RaspberryPI.

Do you experience the same ?

Thanks,
Gab
   

--
You received this message because you are subscribed to a topic in the Google Groups "souliss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/souliss/eU6XF8Ebwc4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

Di Maio, Dario

unread,
Dec 15, 2014, 2:39:35 AM12/15/14
to sou...@googlegroups.com

Gabriele you don't need to update your boards, just declare your t21 as t22 in openHAB.

Dario.

From Mobile.

You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.

To post to this group, send email to sou...@googlegroups.com.

Fulvio Spelta

unread,
Dec 15, 2014, 2:58:24 AM12/15/14
to sou...@googlegroups.com, gabriele....@leane.it

BTW
I noticed that operating from OH (in my case is the native Android app) is slower than SoulissApp.
For slow I mean that turning on the light you wait from 1/2 sec to 5 seconds to see the light on.
The lag increase even more when tapping fast on more than a control (e.g. to turn on more than a light quickly)

I did not have the time to test if it could be related to the limited calculation power of the RaspberryPI.

Do you experience the same ?


Hi Gabriele, OH is a complex sw that relies on event dispatching and JVM, so it's a little heavy :-)

I never tried it on Raspberry, but other experiments on RPI show me that the power is at minimal level.

Some question:
1) do you run only OpenHab or also other sw ?
2) slightly overclock it

In order to analyze OH activity try to read (or post) the OH log. If it doesn't contain enough info start it in debug mode and do some tests, then
stop and restart in standard mode because debug log becames huge quickly.
ciao

Di Maio, Dario

unread,
Dec 15, 2014, 3:01:43 AM12/15/14
to sou...@googlegroups.com, Gabriele Ribichini

Hi Gabriele,

Have a try and run it on a PC, you just have to the change the node and vnet index. This will give you three interfaces running at same time to have a performance comparison.

Regards,
Dario.

From Mobile.

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.

To post to this group, send email to sou...@googlegroups.com.

Fulvio Spelta

unread,
Dec 15, 2014, 3:04:52 AM12/15/14
to sou...@googlegroups.com, gabriele....@leane.it

The lag increase even more when tapping fast on more than a control (e.g. to turn on more than a light quickly

About this, the binding implement a queue in order to optimize sending commands to GW and avoid network overload.

Every commands is queued on the "sendind queue"; if the queue is empty then the command is sent after SEND_MIN_DELAY ms,
after that the commands is sent after SEND_DELAY ms

Commands directed to the same node are optimized (joined) and only 1 frame is sent to the gw for this node.

So if you tap fast the first command is sent (queue empty) then the others command were queued and sent at SEND_DELAY rate.
f

Gabriele Ribichini - LEANE Int. Srl

unread,
Dec 15, 2014, 3:09:38 AM12/15/14
to sou...@googlegroups.com


Ciao Dario,
I've done this...
The rolleshutter does not move.

Gab
   

Di Maio, Dario

unread,
Dec 15, 2014, 3:10:18 AM12/15/14
to sou...@googlegroups.com, Gabriele Ribichini

@Antonino,

Could you please highlight the code changes to get this queue mechanism?

It would be nice import those changes back in SoulissApp.

Regards,
Dario.

From Mobile.

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.

To post to this group, send email to sou...@googlegroups.com.

Gabriele Ribichini

unread,
Dec 15, 2014, 3:10:21 AM12/15/14
to sou...@googlegroups.com

Ok,
I will investigate.

Thanks
Gabriele

   

--
You received this message because you are subscribed to a topic in the Google Groups "souliss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/souliss/eU6XF8Ebwc4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

Di Maio, Dario

unread,
Dec 15, 2014, 3:14:03 AM12/15/14
to sou...@googlegroups.com

Ok.

@Antonino, as far as I can remember add typicals require only to update s text file without compile it.

Could you please explain how to add the T21 starting from the T22? So that we can use that description even for the wiki.

@Fulvio,
There is a starting page on the wiki, could you please check if is ok?

Thanks,
Dario.

From Mobile.

Flavio P.

unread,
Dec 15, 2014, 4:07:26 AM12/15/14
to sou...@googlegroups.com

I have OA in raspberry too, it is true, is very slowly,specially at the startup, OA take about 2 minutes, and for example don't load gcal binding, i must investigate....
I've never overclock , but i can try, i think i must change so with a distro lighter than raspbian.
OA on a pc is more responsive but, one pc power on h24 is much expansive....

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.

To post to this group, send email to sou...@googlegroups.com.

Di Maio, Dario

unread,
Dec 15, 2014, 4:11:13 AM12/15/14
to sou...@googlegroups.com

No one has tried a Beagle Bone?

Dario.

From Mobile.

Flavio P.

unread,
Dec 15, 2014, 4:26:04 AM12/15/14
to sou...@googlegroups.com

I have aone beaglebone and one beagleboard.
But i've never tried....I can try....

Tonino Fazio

unread,
Dec 15, 2014, 5:19:18 AM12/15/14
to sou...@googlegroups.com

Also I have OA in Raspberry pi with Raspian. It is slowly at startup and sometime (rarely) sleep for some seconds.
I tried with raspbmc and it is not usable, must slow.

Now I use OH on raspian distribution, with 4 nodes: 3 T22 curtains, 5 T11 switch , 2 DHT22 (temp+humidity), 1 power mesurement, 1 RGB T16, 1 dimmer led T19, 1 T1A (casually updated every 10 seconds), and it work good and responsive.

In effect, when I tested it with T1A updated every 3 second, it become dramatically slowly.

You received this message because you are subscribed to a topic in the Google Groups "souliss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/souliss/eU6XF8Ebwc4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to souliss+u...@googlegroups.com.

To post to this group, send email to sou...@googlegroups.com.

Fulvio Spelta

unread,
Dec 15, 2014, 5:28:37 AM12/15/14
to sou...@googlegroups.com
In effect, when I tested it with T1A updated every 3 second, it become dramatically slowly.


Remember that the T1A fires up to 8 updates at same time. In my log i find true "update storms" :-)
f

Marcolino

unread,
Dec 16, 2014, 10:21:29 AM12/16/14
to sou...@googlegroups.com
Hi,
with today i migrated all my enviroment to native bidings.
I still have a T19 to control a servomotor for furnace temperature that use XML/HTTP interface but for now is fine.
No issue reported from here.

M. 

Tonino Fazio

unread,
Dec 18, 2014, 9:17:54 PM12/18/14
to sou...@googlegroups.com
All lines "receiveUpdate " are just debug string , but the link does
not work for them .
I proceeded to delete it.

I and Marcolino are going to investigate for his problem with T19...


Tonino Fazio


2014-12-09 10:27 GMT+01:00 Marcolino <marco.p...@gmail.com>:
> Hi Dario,
> is not fast as Souliss APP.
> When I press a switch button I see into the logs some command sent do
> Gateway, but then i see a lot of receiveUpdate of Item not relate to
> souliss:
>
> 10:22:20.040 INFO o.o.b.s.i.SoulissBinding[:248]- receiveUpdate -
> ACQUARI_RS_CAVETTO = A0.53r|11:17|6.77681|0|2|
> 10:22:21.700 INFO o.o.b.s.i.SoulissBinding[:248]- receiveUpdate -
> INGRESSO_CAMINGRESSO = 36.81
> 10:22:22.205 INFO o.o.b.s.i.SoulissBinding[:248]- receiveUpdate -
> ACQUARI_RS_PH = 6.77681
> 10:22:22.358 INFO o.o.b.s.i.SoulissBinding[:248]- receiveUpdate -
> PRESENZA_MACLIST = assoclist 48:02:2A:42:93:4A
> 10:22:22.368 INFO o.o.b.s.i.SoulissBinding[:248]- receiveUpdate -
> PRESENZA_MARCO = Assente
> 10:22:22.385 INFO o.o.b.s.i.SoulissBinding[:248]- receiveUpdate -
> PRESENZA_ANTO = Assente
> 10:22:22.773 INFO o.o.b.s.i.SoulissBinding[:248]- receiveUpdate -
> CALDAIA_TERMOSTATO = 0
> 10:22:23.535 INFO o.o.b.s.i.SoulissBinding[:248]- receiveUpdate -
> ACQUARI_TF_RABB = 0
> 10:22:23.808 INFO o.o.b.s.i.SoulissBinding[:248]- receiveUpdate -
> CALDAIA_SENSOREGAS = 0
> 10:22:24.708 INFO o.o.b.s.i.SoulissBinding[:248]- receiveUpdate -
> ACQUARI_TF_LIV = 1
> 10:22:24.872 INFO o.o.b.s.i.SoulissBinding[:248]- receiveUpdate -
> CAMERA_PWS_SVEGLIA = 0
> 10:22:25.841 INFO o.o.b.s.i.SoulissBinding[:248]- receiveUpdate -
> ACQUARI_RS_LIV = 1
> 10:22:25.932 INFO o.o.b.s.i.SoulissBinding[:248]- receiveUpdate -
> INGRESSO_CURRENT_TEMP = 19.31
> 10:22:26.980 INFO o.o.b.s.i.SoulissBinding[:248]- receiveUpdate -
> ACQUARI_RS_RABB = 0
> 10:22:26.983 INFO o.o.b.s.i.SoulissBinding[:248]- receiveUpdate -
> CALDAIA_CONTROLLO = 0
> 10:22:28.018 INFO o.o.b.s.i.SoulissBinding[:248]- receiveUpdate -
> CALDAIA_T_RITORNO = 25.05
> 10:22:28.084 INFO o.o.b.s.i.SoulissBinding[:248]- receiveUpdate -
> ACQUARI_TF_FAN = A0.53t|11:15|6.57391|0|2|
> 10:22:28.237 INFO o.o.b.s.i.SoulissBinding[:248]- receiveUpdate -
> PRESENZA_MACLIST = assoclist 48:02:2A:42:93:4A
> 10:22:28.242 INFO o.o.b.s.i.SoulissBinding[:248]- receiveUpdate -
> PRESENZA_MARCO = Assente
> 10:22:28.244 INFO o.o.b.s.i.SoulissBinding[:248]- receiveUpdate -
> PRESENZA_ANTO = Assente
> 10:22:29.042 INFO o.o.b.s.i.SoulissBinding[:248]- receiveUpdate -
> CALDAIA_T_MANDATA = 23.94
>
>
> All item on top are not related to souliss bindings. After sending the
> command to Souliss Board, take more different time to update OA each time.
> Sometime 2 seconds sometime 1 minutes.
>
> Issue I have in the past with souliss app are related to a inactivity on the
> App. If I continue to send and receive command on App, I never have issue,
> so Binding send and receive command continuosly and IMHO never have this
> issue.
>
> Marco
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "souliss" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/souliss/eU6XF8Ebwc4/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> souliss+u...@googlegroups.com.
> To post to this group, send email to sou...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/souliss/571fdb73-310b-498d-a4b4-4750d732c423%40googlegroups.com.

Dario Di Maio

unread,
Dec 20, 2014, 10:47:39 AM12/20/14
to sou...@googlegroups.com
Hi,

please review this wiki page for errors, missing information or any other improvement.
https://code.google.com/p/souliss/wiki/openHAB_native

Share here your feedbacks.

Thanks,
Dario.

Gabriele Ribichini

unread,
Dec 20, 2014, 5:44:49 PM12/20/14
to sou...@googlegroups.com
Hello,
I tried to use T22 in Openhab having T21 in Souliss but it simply does not work.

Changing from T21 to T22 in my sketches I noticed that the Souliss_T2n_ToogleCmd is not handled-

The comment at the top of the function Souliss_Logic_T22 says:

Using a monostable wall switch (press and spring return) or a software command from user interface, each press will toogle the output status.
#define Souliss_T2n_CloseCmd_Local 0x08
#define Souliss_T2n_OpenCmd_Local 0x10
#define Souliss_T2n_StopCmd 0x04

Am I missing something ?

Looking ad the Fulvio code I see he uses two different inputs for UP/DOWN.
In my apartment I have just a single monostable switch to invert the direction.

thanks
- gab

Di Maio, Dario

unread,
Dec 20, 2014, 5:52:39 PM12/20/14
to sou...@googlegroups.com
Hi Gabriele,

T21 is for garage doors and T22 is for windows, that's why the logics are different. In your case you should wait to get T21 support in the binding.

Regards,
Dario.

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.

To post to this group, send email to sou...@googlegroups.com.

Gabriele Ribichini

unread,
Dec 21, 2014, 2:38:49 AM12/21/14
to sou...@googlegroups.com

Dario,
why it should be different ?
To me garage doors and windows should work the same.

Do you mind if I try to add toggle to T22 logics ?

Gab

   

You received this message because you are subscribed to a topic in the Google Groups "souliss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/souliss/eU6XF8Ebwc4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to souliss+u...@googlegroups.com.

To post to this group, send email to sou...@googlegroups.com.

Di Maio, Dario

unread,
Dec 21, 2014, 2:41:47 AM12/21/14
to sou...@googlegroups.com

The main difference is that you just fully open or close with T21, rather T22 allow middle position.

If you need it, build a T22bis with all modification that fits for you.

Dario.

From Mobile.

Gabriele Ribichini

unread,
Dec 21, 2014, 3:33:31 AM12/21/14
to sou...@googlegroups.com
Ciao Dario,
I just added modified the begin of T22 as follow (cut and paste from T21), still need to be tested in the system.
I have no issue in creating a custom T22bis, but don't you believe that it make sense for the standard T22 too ?

With the following code everything will remain untouched from the original T22 but the Logic will react also on Souliss_T2n_ToogleCmd too.

U8 Souliss_Logic_T22(U8 *memory_map, U8 slot, U8 *trigger, U8 timeout=Souliss_T2n_Timer_Val)
{
U8 i_trigger=0; // Internal trigger
if(timeout<=Souliss_T2n_Timer_Off) timeout=Souliss_T2n_Timer_Val;
// Look for input value, update output. If the output is not set, trig a data
// change, otherwise just reset the input
if((memory_map[MaCaco_IN_s + slot] == Souliss_T2n_ToogleCmd) ||
(memory_map[MaCaco_IN_s + slot] == Souliss_T2n_CloseCmd_SW) || 
(memory_map[MaCaco_IN_s + slot] == Souliss_T2n_OpenCmd_SW) || 
(memory_map[MaCaco_IN_s + slot] == Souliss_T2n_OpenCmd_Local) ||
(memory_map[MaCaco_IN_s + slot] == Souliss_T2n_CloseCmd_Local) ||
(memory_map[MaCaco_IN_s + slot] == Souliss_T2n_StopCmd))
{
// Change the output value, between OPEN and CLOSE always STOP is performed
if(memory_map[MaCaco_IN_s + slot] == Souliss_T2n_ToogleCmd)
{
// Change the output value, between OPEN and CLOSE always OFF is performed
if((memory_map[MaCaco_OUT_s + slot] == Souliss_T2n_Coil_Close) || (memory_map[MaCaco_OUT_s + slot] == Souliss_T2n_Coil_Open))
{
memory_map[MaCaco_AUXIN_s + slot] = memory_map[MaCaco_OUT_s + slot]; // Save actual state
memory_map[MaCaco_OUT_s + slot] = Souliss_T2n_Coil_Stop; // Off Command
}
else if((memory_map[MaCaco_AUXIN_s + slot] == Souliss_T2n_Coil_Close) || (memory_map[MaCaco_OUT_s + slot] == Souliss_T2n_LimSwitch_Close))
memory_map[MaCaco_OUT_s + slot] = Souliss_T2n_Coil_Open; // Open Command
else if((memory_map[MaCaco_AUXIN_s + slot] == Souliss_T2n_Coil_Open) || (memory_map[MaCaco_OUT_s + slot] == Souliss_T2n_LimSwitch_Open))
memory_map[MaCaco_OUT_s + slot] = Souliss_T2n_Coil_Close; // Close command
else
memory_map[MaCaco_OUT_s + slot] = Souliss_T2n_Coil_Open; // If state is undefined, Open Command
}

Di Maio, Dario

unread,
Dec 21, 2014, 3:36:41 AM12/21/14
to sou...@googlegroups.com

It can be an option. You can push your working code on Git using a new branch, then I will merge it.

Regards,
Dario.

From Mobile.

Message has been deleted

Fulvio Spelta

unread,
Dec 21, 2014, 10:12:22 AM12/21/14
to sou...@googlegroups.com
Please check the full "states/transictions" diagram: remember that the T22 has a very complex diagram with heavy interaction between states and commands
and that the AUXIN is used for timer management. Be sure to avoid side effects.

ciao
f

Fulvio Spelta

unread,
Dec 21, 2014, 10:17:52 AM12/21/14
to sou...@googlegroups.com
An option is to insert the custom logic for the toggle management in the sketch between digin and logic functions.

There you can check current status and set the new as desired changin the command on the fly.

Checking status be aware that T22 has many"final states" and admit a middle state (STOP).

ciao
f

Gabriele Ribichini

unread,
Dec 21, 2014, 6:05:28 PM12/21/14
to sou...@googlegroups.com
Ciao Fulvio,
I am looking at the code and I see there's no chance to use Timer and Toggle in the same Logic due to the use of the same AUX slot.

Nevertheless I don't understand the following:

1) Souliss_T2n_ToogleCmd, Souliss_T2n_CloseCmd_Local and Souliss_T2n_LimSwitch_Close are all defined to 0x08
I need to change Souliss_T2n_ToogleCmd to something else like 0x05, otherwise nothing will work in my case.

2) Souliss_T2n_Timer_Val is defined as 0xAF.
Going down from 0xAF to 0xA0 (Souliss_T2n_Timer_Off) is just 15 seconds and my roller-shutters requires a couple of seconds more.
but setting the timer higher than 0xAF the Timer function does not work properly.

Please look at this code portion:

if(((memory_map[MaCaco_AUXIN_s + slot] > Souliss_T2n_Timer_Off) &&
(memory_map[MaCaco_AUXIN_s + slot] <= Souliss_T2n_Timer_Val)) || 
Souliss_T2n_IsTemporaryStop ) 

let's say I set my timer to 0xB0, this value is stored in AUX by the T22 Logic
0xB0 is greater than Souliss_T2n_Timer_Off (0xA0)
but also greater than Souliss_T2n_Timer_Val (0xAF)
so that the countdown never starts !!

What's the reason to have Souliss_T2n_Timer_Val defined as 0xAF, couldn't we set higher than that.. for example 0xB2

Wouldn't be nice to have an ASSERT on timer value ?
I wish I could get a compilation error if not defined in the correct range rather than get an headache to find out why it is not correctly working.  


thanks
- gab

--
You received this message because you are subscribed to a topic in the Google Groups "souliss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/souliss/eU6XF8Ebwc4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

Di Maio, Dario

unread,
Dec 22, 2014, 3:09:09 AM12/22/14
to sou...@googlegroups.com

Hi Gabriele,

1) An easy way suggested by Fulvio is add in your sketch somenthing like:

if(ssDigIn(pin, Toggle, 0))
{
if(Souliss_Output(memory_map, slot) == Close || == Closing || == LimitSwitchClse)
SoulissInput(,)= OpenCmd;

similar for Open
}

You should not care for the stop, is done in the typical's code.

2) Is a bug, it should compare with the costant value (that is the default delay time) but with the value from the header of the function.

Can you fix it and push the code on a dedicated branch?

Thanks,
Dario.

From Mobile.

You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.

To post to this group, send email to sou...@googlegroups.com.

Artūrs Stīpnieks

unread,
Dec 22, 2014, 3:17:40 AM12/22/14
to sou...@googlegroups.com
First off all hanks Antonino for the work, even for me, without any previous Openhab experience I got it up and running in a weakened. Now I starting to learn possibilities of Openhab and I love it more and more thanks that You made it possible.

Now I considering on what to run it permanently. RPi is an option, but as mentioned previous it is a bit sluggish. Does someone tried to run Openhab on one of those Android PC sticks like MK808 with Linux image? Compared to Rpi it has more "juice" 1.6GHz dual-core, 1GB RAM, Wifi, Bluetooth and it can easily be plugged in monitor without any additional wires (except power).

Di Maio, Dario

unread,
Dec 22, 2014, 3:27:09 AM12/22/14
to sou...@googlegroups.com

Googling doesn't give an answer, if you have yet an HDMI stick you can have a try and let us know the result.

This link can give some information
https://github.com/openhab/openhab/wiki/Hardware-FAQ

Dario.

From Mobile.

On 22 Dec 2014 09:17, "Artūrs Stīpnieks" <arturss...@gmail.com> wrote:
First off all hanks Antonino for the work, even for me, without any previous Openhab experience I got it up and running in a weakened. Now I starting to learn possibilities of Openhab and I love it more and more thanks that You made it possible.

Now I considering on what to run it permanently. RPi is an option, but as mentioned previous it is a bit sluggish. Does someone tried to run Openhab on one of those Android PC sticks like MK808 with Linux image? Compared to Rpi it has more "juice" 1.6GHz dual-core, 1GB RAM, Wifi, Bluetooth and it can easily be plugged in monitor without any additional wires (except power).

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

Flavio P.

unread,
Dec 22, 2014, 3:38:21 AM12/22/14
to sou...@googlegroups.com
I'm trying to run OA in a diffrent board,like Rpi, BBone black, Bboard, all with the most lightweight OS i've found, but with the same results: slow.
Then in this we, i've tryied with Ubuntu, in a mini-itx motherboard with ssd and atom cpu: impressive, very fast.

But now, i can do some measure about the power.
How much power require mini-itx motherboard with atom and ssd drive?
Anyone now anything about?



2014-12-22 9:17 GMT+01:00 Artūrs Stīpnieks <arturss...@gmail.com>:
First off all hanks Antonino for the work, even for me, without any previous Openhab experience I got it up and running in a weakened. Now I starting to learn possibilities of Openhab and I love it more and more thanks that You made it possible.

Now I considering on what to run it permanently. RPi is an option, but as mentioned previous it is a bit sluggish. Does someone tried to run Openhab on one of those Android PC sticks like MK808 with Linux image? Compared to Rpi it has more "juice" 1.6GHz dual-core, 1GB RAM, Wifi, Bluetooth and it can easily be plugged in monitor without any additional wires (except power).

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.



--
P ********* Consideriamo l'ambiente prima di stampare questa e-mail *** Think about environment before printing *********
Il contenuto di questo messaggio e-mail è privato e riservato al solo destinatario. L'utilizzo non autorizzato può costituire reato. Se ricevuto erroneamente siete pregati di cancellarlo e comunicarci via e-mail l'errata ricezione.

Di Maio, Dario

unread,
Dec 22, 2014, 3:41:34 AM12/22/14
to sou...@googlegroups.com

A raw value is given by the max W from the power supply. I guess 100 W.

Dario.

From Mobile.

Fulvio Spelta

unread,
Dec 22, 2014, 4:30:55 AM12/22/14
to sou...@googlegroups.com
In order to know how OH could run on a board/stick try to search forum about java support. Some of this java versions lack floating point hw calculation support or optimization so java will run very slow and OH too.

It seems that this stick with android support are some kind of cheap media center but it seems that they are too young and small to be used as general purpouse pc.

It could be nice to share our experience.
f

Artūrs Stīpnieks

unread,
Dec 22, 2014, 4:50:44 AM12/22/14
to sou...@googlegroups.com
At this point I do not own one of those Mini Android Pc's or RPI. Just considering what to buy for OH server. As Dario says goggling does not seem to say anything about that, and I am suprised about that, can not believe that anyone tried it. Will look at Fulvio's suggestion about java, but real test probably would be better than that. So if anyone has stick Pc please feel free to test and let us now. 

Di Maio, Dario

unread,
Dec 22, 2014, 4:53:30 AM12/22/14
to sou...@googlegroups.com

I've a MK802IV with Android, it works as media center streaming from a network drive.

I haven't a Linux distro to test it out and generally I don't know if those are well supported.

Antonino has one of this also, but also in his case with Android.

Dario.

From Mobile.

On 22 Dec 2014 10:50, "Artūrs Stīpnieks" <arturss...@gmail.com> wrote:
At this point I do not own one of those Mini Android Pc's or RPI. Just considering what to buy for OH server. As Dario says goggling does not seem to say anything about that, and I am suprised about that, can not believe that anyone tried it. Will look at Fulvio's suggestion about java, but real test probably would be better than that. So if anyone has stick Pc please feel free to test and let us now. 

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

Flavio P.

unread,
Dec 22, 2014, 5:16:34 AM12/22/14
to sou...@googlegroups.com
​Fulvio, can we now were you run you OA server?
Rpi? or a PC?

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Artūrs Stīpnieks

unread,
Dec 22, 2014, 5:19:19 AM12/22/14
to sou...@googlegroups.com

Linux support for USB pc's is relativly new, but some of them now ships with blinux. I will do more googling later, there should be someone who has tried rhis.

You received this message because you are subscribed to a topic in the Google Groups "souliss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/souliss/eU6XF8Ebwc4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to souliss+u...@googlegroups.com.

To post to this group, send email to sou...@googlegroups.com.

Artūrs Stīpnieks

unread,
Dec 22, 2014, 5:53:42 AM12/22/14
to sou...@googlegroups.com
Finally found some people maetioned it can run OH, and here is also one tutorial how to get it up and runnig http://projectsbymartin.blogspot.com/2013/12/installing-openhab-on-android-tv-stick.html
sadly nothing mentioned about performance.

Di Maio, Dario

unread,
Dec 22, 2014, 5:58:11 AM12/22/14
to sou...@googlegroups.com

Send him an email or an hangout, is on G+ :)

Dario.

From Mobile.

On 22 Dec 2014 11:53, "Artūrs Stīpnieks" <arturss...@gmail.com> wrote:
Finally found some people maetioned it can run OH, and here is also one tutorial how to get it up and runnig http://projectsbymartin.blogspot.com/2013/12/installing-openhab-on-android-tv-stick.html
sadly nothing mentioned about performance.

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

Fulvio Spelta

unread,
Dec 22, 2014, 6:38:34 AM12/22/14
to sou...@googlegroups.com
Currently I'm using an "home server" (functionally: not to be confused with the MS Windows addon) based on Windows 7 pro (I don't know linux so i'm using Windows due to the learning curve necessary for the change).

It offers this primary services to the home:
- NAS for family things like pictures, documents, and so on
- Share of media content through DLNA
- Live DTV receive (using 2/3 DTV USB adapters) and sharing through DLNA
- DTV recording schedule and sharing
- OpenHAB Server
- Printer sharing server
- VPN Server

It's a mini ITX Atom 330 1,6 GHz Intel board with 2GB ram and a string of HD for storage.
I really don't know how to offer this services using linux.

Fulvio Spelta

unread,
Dec 22, 2014, 6:40:54 AM12/22/14
to sou...@googlegroups.com
May I suggest to open a specific thread for this topic ?

It's very useful deserves the right visibility

Tonino Fazio

unread,
Dec 22, 2014, 9:12:34 AM12/22/14
to sou...@googlegroups.com

At this moment I use Raspberry Pi with raspian.
It work well and fast with basic configuration without persistence macro and rules.
I have to do some test for persistence and graph.

My notes: http://www.xorse.it/raspberry-installare-openhab.html

You received this message because you are subscribed to a topic in the Google Groups "souliss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/souliss/eU6XF8Ebwc4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to souliss+u...@googlegroups.com.

To post to this group, send email to sou...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages