Virtual switch

Functionality and usage of the OpenNethome Server
Post Reply
tobbe
Posts: 17
Joined: Mon Dec 15, 2014 8:14 pm

Virtual switch

Post by tobbe » Fri Jul 14, 2017 5:43 pm

Hi

I was wondering if it would be possible to implement a virtual switch as an item?
My problem is I have a few serially controlled relays (24 to be exact) and it would be very handy to have an item, where you can define for example "ON=exec /home/serial1_1 on" "OFF=/home/serial1_1 off".
It would then also be possible to include them in lampgroups to turn them on or off.
I currently use ActionButtons, but this is really inflexible....
Or does something like this exist and I'm just too blind to see it??

Regards,
Tobbe

stefangsbb
Site Admin
Posts: 311
Joined: Sun Nov 30, 2014 2:16 pm

Re: Virtual switch

Post by stefangsbb » Tue Jul 18, 2017 8:52 am

This is an excellent idea. There is no such Item yet (I did not think of it). I will implement it right away. Traditionally Items that turn things on and off are called Lamps in OpenNetHome, so I will probably call it CustomLamp or something similar.

tobbe
Posts: 17
Joined: Mon Dec 15, 2014 8:14 pm

Re: Virtual switch

Post by tobbe » Tue Jul 18, 2017 12:57 pm

Yay :D
This makes me very happy!
Please tell me when a snapshot is available for download
Thank you for your quick reply!

Tobbe

stefangsbb
Site Admin
Posts: 311
Joined: Sun Nov 30, 2014 2:16 pm

Re: Virtual switch

Post by stefangsbb » Tue Jul 18, 2017 1:53 pm

Ok, a brand new shiny HomeItem called CustomLamp is now in the latest nightly build. Please try it out, and tell me if it is what you needed.

tobbe
Posts: 17
Joined: Mon Dec 15, 2014 8:14 pm

Re: Virtual switch

Post by tobbe » Tue Jul 18, 2017 3:26 pm

Hi

Yes, this is exactly what I needed.
Thank you so much!

Tobbe

Post Reply