How to create button providing multiple options

Moderator: leecollings

Post Reply
ChrisVH1982
Posts: 23
Joined: Friday 16 November 2018 17:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

How to create button providing multiple options

Post by ChrisVH1982 »

Apologies if my question is too obvious. Maybe I am missing the right keywords required to find the answer myself.
My ceiling fan can be remote controlled using a 433 Mhz. The 433 Mhz transreceiver, which is attached to Domoticz, was able to learn and replicate the signals. So for testing I created a virtual button to turn on the fan. But the fan has 9 buttons and therefore same number of options available. I do not necessarily want to create 9 buttons for just one device.
Looking at other devices I have such as Xiaomi button or Shelly Button, it looks like that one button supports multiple actions. So I am wondering how I can create one button for my ceiling fan and create up to 9 functions / actions as shown in the screenshot attached but like (1 | 2 | 3 | Light | OFF ...)
Attachments
Button example
Button example
Button example.jpg (19.06 KiB) Viewed 873 times
User avatar
FireWizard
Posts: 1889
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: How to create button providing multiple options

Post by FireWizard »

Hello @ChrisVH1982,

You wrote:
So I am wondering how I can create one button for my ceiling fan and create up to 9 functions / actions as shown in the screenshot attached but like (1 | 2 | 3 | Light | OFF ...)
Just to verify.

Are you asking how to create a virtual Selector Switch?
An example see here: https://forum.mysensors.org/topic/4933/ ... z-tutorial

This is quite simple, but you provided insufficient information on what this Selector Switch (the various buttons) should do.

Regards
ChrisVH1982
Posts: 23
Joined: Friday 16 November 2018 17:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: How to create button providing multiple options

Post by ChrisVH1982 »

FireWizard wrote: Thursday 04 August 2022 21:11 Hello @ChrisVH1982,

You wrote:
So I am wondering how I can create one button for my ceiling fan and create up to 9 functions / actions as shown in the screenshot attached but like (1 | 2 | 3 | Light | OFF ...)
Just to verify.

Are you asking how to create a virtual Selector Switch?
An example see here: https://forum.mysensors.org/topic/4933/ ... z-tutorial

This is quite simple, but you provided insufficient information on what this Selector Switch (the various buttons) should do.

Regards
That tutorial does the trick, thank you very much!
Sarcas
Posts: 86
Joined: Wednesday 11 October 2017 8:50
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1ß
Location: Friesland
Contact:

Re: How to create button providing multiple options

Post by Sarcas »

After discovering that my ceiling fan with TUYA can't be added to Domoticz, I accidentally stumbled upon this post. Tried my remote and I'll be damned! My 433 picks it up :D
Thanks for posting!
--

Domoticz on rPi4 - RFXCOM RFXtrx433 USB - ZW090 Z-Stick Gen5 EU - IKEA Tradfri - Philips HUE - YouLess meter - SolarEdge
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest