Page 1 of 1

Touch button in virtual sensors?

Posted: Saturday 07 November 2015 23:29
by divx118
Well like the title says, is there a touch button/switch available in virtual sensors. I guess not, at least I couldn't find it. I ask this, because I want to add ir remote buttons to drive lirc on a raspberry pi b+ with an ir led connected to the gpio. The only one I came across which would do the same is the Doorbell button, however by default you can't change the icon for that.
If anyone else has done this before and has some good ideas I am all ears.
If not, I will take another look at the source code and see if it is easy to implement. I was thinking of making my own custom pages which would be the fastest, but not my preferred way. I rather have the option available in domoticz.

Thanks in advance for any ideas or usefull info

Re: Touch button in virtual sensors?

Posted: Sunday 08 November 2015 11:03
by gizmocuz
You could add a switch, and set the type to 'push on'

Re: Touch button in virtual sensors?

Posted: Sunday 08 November 2015 13:43
by divx118
Well then it will be on constantly or did I miss something? It doesn't seem to work correctly or I am misusing it. When I select a push on switch type It switches on for the first time and then doesn't switch of again. Also there is no way to add a custom icon. The push off has also no custom icons, that would then be a better option if it had.
I do however have another idea, just using a regular light switch and make my script that I call turn it off again with a json call. By no means perfect, but I think it will work for now until I have a better understanding on the source code to implement something better.

Ah sorry I would need to set the off delay timer, then the push on works correctly. However like I said no way to select a custom icon.