This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Closed
Boolean logic support
I would like to have some boolean logic support. So for example, When I click on a button a variable always gets assigned the inverse of its previous value.
If button 1 click
Then
WantCoffee = !WantCoffee
This saves me a flow and a button on my KAKU remote.
Furthermore for switch devices (e.g. a KAKU power plug, a lamp, a fan etc) this bool could be used to either turn on or turn off the device based on the state. This second feature would reduce the amount of flows even more.
if WantCoffee is changed
Socket = WantCoffee
Instead of having 4 flows I would now have 2 flows
If button 1 click
Then
WantCoffee = !WantCoffee
This saves me a flow and a button on my KAKU remote.
Furthermore for switch devices (e.g. a KAKU power plug, a lamp, a fan etc) this bool could be used to either turn on or turn off the device based on the state. This second feature would reduce the amount of flows even more.
if WantCoffee is changed
Socket = WantCoffee
Instead of having 4 flows I would now have 2 flows
This discussion has been closed.
Comments