I haven’t changed anything, it’s already compatible → Amazon.fr
In my example, it serves as a trigger. On a « single press », the value is 1.
Yes, I agree, I might have expressed myself poorly. Of course, a connected outlet or a wall switch (like a Fibaro switch / Xiaomi switch and co) is not just for turning on lamps
What I suggested was having an action (card) named: « Turn on light or switch ». In this, both « light » and « device » types would appear.
If we don’t want to combine these two types of devices in the same card, I think my code is quite clean and I can make a PR as is.
Here is the current rendering:
