Skip to content

Instantly share code, notes, and snippets.

blueprint:
name: ZHA - Moes Smart Knob for lights
description: |
Control lights with a Moes Smart Knob.
https://gist.github.com/damonfred/63867d83acdb6e2556c2f1f4c0e7e124
Rotating left/right will change the brightness smoothly of the selected light.
Inspired from https://gist.github.com/seamus65/939a147634942dd885c8704334627f93
domain: automation
input:
remote:
template < typename value_t >
void BogoSort( std::vector< value_t > & data )
{
while( !std::is_sorted(data.cbegin(), data.cend()) )
{
std::shuffle(data.begin(), data.end());
}
}