koktaildotcom / homey-mi-flora

Integrate Xiaomi Mi Flora Plant Sensor into Homey
MIT License
11 stars 13 forks source link

Add improved flow card #149

Open koktaildotcom opened 1 month ago

koktaildotcom commented 1 month ago

From: https://community.homey.app/t/app-pro-xiaomi-mi-flora-sensor-ropot-app/45/815

Instead of changing them, it may be an option to add it somewhere in the explanatory text of the card or in the guidance in the initial post above.

Another thought: I have a number of switches for which each button can have multiple states (pressed once, pressed twice, long press). So a 2 button switch has 2 x 3 possbible combinations of press actions.

Instead of having a WHEN card for each possible action or a combination of a WHEN card per button and an AND card to indicate the action, there is only one WHEN card in which the user can select the button/action combination in a pull down menu. See the following screenshot as an example of a 2 button switch.

Als-Kaart Schakelaar Als-Kaart Schakelaar728×888 56.1 KB

Perhaps such a setup would also be an idea for the Xiaomi Mi Flora WHEN cards. E.g. the WHEN cards ‘Sensor value is above/below/outside threshold’ would contain a dropdown menu in which you select the respective sensor. You would then not have to add an AND logic card to compare the sensor tag with the one you are addressing. Similar for the device tag in case of a generic WHEN card.