Openhab on Raspberry Pi syncing time/date on 'Velbus'-bus

Hi,

Since I was able to enable Openhab and Velbus I was wondering how an automatic time/date sync could be done from the Pi to the Velbus system. Is there a command able to do this?

Thanks again,

Jona

Hi

Iā€™m reliably informed that itā€™s on the to-do list.

When creating ā€˜myā€™ scripts (https://github.com/StefCoene/velserver), I included the option to sync the date and time.
I do this every night at 4 oā€™ clock so the time is corrected after it changed due to daylight saving.

I also added an option that loops all glass panels and configure them so they transmit the temperature every 60 seconds.
In my setup, some of the glass panels forget these settings after a while.

Stef

1 Like

Iā€™ll check it after this sunny WE :wink:

Enjoy your WE and thanks again for your helpful replies.

Jona

Hi Stef,

just to make things clear to meā€¦

After I upgraded to Openhab 2.3 on the pi, I enabled the Velbus binding 2.3.0 Snapshot This is probably not the same binding as in your Velserver (see above)? So this means that in this 2.3.0 Velbus binding no time sync will be done?

Thanks for your time.

Best regards,

Jona

where can I find the script to reset the temperature settings, Greetings Joram

Iā€™m told that time updating is under test right now :slight_smile:
As are plenty of other great featuresā€¦

Looking forward to it Steward. Thanks for sharing this information.

Big thanks also to the developers!

Best regards,

Jona

Hi Jona

Have you tried any of Cedricbā€™s recent versions of the OpenHab2 Velbus binding?

I believe that time & date updating has been in there for quite some time now.

Cheers,

Stuart

Hi Stuart,

Havenā€™t seen your latest reply because found it in my spam folder todayā€¦:scream:
Believe I tried the one of 1 month ago. Canā€™t test it right now because Iā€™m on holidays for 1 month in Canada. Will download latest version upon arrival home. Cedric confirmed you the time and date update in the latest version?

Will let you know when it works.

Thanks as always for your kind help!!!

Jona

1 Like

Hi guys

Any news on this? Also, how can I set this up?
Iā€™m still relatively new to OpenHAB :blush:

Grtz!

Hi

Time updating for Velbus within openHAB2 is taken care of by either of the Velbus Bridge Things.

If you want to adjust the update interval, itā€™s in the ā€œShow Moreā€ section of the bridge.

If you want a stand alone app for Velbus time updating, @jeroends has written a great little app that runs alongside his VelServ TCP server.

@MDAR

:thinking: :man_facepalming:
I have seen that time update interval and never made the connectionā€¦ :blush:

Thanks !

1 Like

While weā€™re talking about the Velbus Bridge Thingā€¦
Thanks to your help in another post I got the Velbus Network Bridge running.
But when I reboot my rpi the connection is lost, so I have to enter the IP address + port again (127.0.0.1).
Maybe I can make a Velbus Network Bridge Thing ā€œhard-codedā€, so not in Paper UI, but in whatā€™s-it-called-where-you-make-your-own-things-so-you-can-use-them-in-eg-Habpanel?
Or would you know another reason why I have to enter that IP every time the rpi reboots?

@CobleS

I wouldnā€™t have admitted to that, which proves youā€™re a better person than me :wink:

Thatā€™s never happened to any of the setups Iā€™ve created, on all kinds of machines.

The only person I know that is running a network bridge on a Pi is @RossJe
And as he hasnā€™t said anything, Iā€™ll assume itā€™s all working perfectly.

Is there anything else in your setup that behaves strangely after a reboot?

:thought_balloon: is it only after a reboot, or does an openHAB2 restart have the same result?

As for hard coding, (PaperUI stores everything in a JSON file in /var/lib/openhab2 so it should be protected / backed up on each restart) you can look at creating a Text Things file for the Network bridge, but as someone on the community.openhab.org forum says regularly, ā€œits better to find the fault, than create work aroundsā€ :wink:

As a thought, the next time you have to enter the details, as soon as itā€™s working.
Run these commands to make sure there is a zip backup and a backup of the JSON files.

systemctl stop openHAB2

This will stop openHAB2 and create JSON backups

openhab-cli backup

This will create a Zip file of your whole config

systemctl start openhab2

This will restart openHAB2 for you

@MDAR

No, not reallyā€¦

Did the stop-backup-start
Same problem.



As you can see, blankā€¦

Edit ā†’ Just saw that the time interval (which I changed to 60) is set back to 360.
So the entire Velbus Network Bridge seems to be a/the problemā€¦

Thatā€™s really strange.

What happens if you create a whole new network bridge ?

(Donā€™t bother linking it to anything, just create a bridge (with a slightly different name) and see if it resets after a restart)

systemctl restart openhab2

@MDAR
Did what you suggested

Result :smile:

So thereā€™s an issue in the JSON file for the first Velbus bridge :slight_smile:

Now just edit each (sorry, canā€™t think of a way around this) of your Velbus Things and get them to use your new bridge.

Then delete the original one.

Please let me / us know if that works after a reboot / restart