Sorry, no, it is not. I suspected the milight plugin also extends it’s light devices from the switch class which doesn’t seem to be the case. Nevertheless maybe it would be an easy addition/fix in the milight plugin to use the baseclass provided with pimatic.
There seems to be a bug at least in 0.9 which doesn’t let you do comparisons for boolean attributes.
@pimatic-team who could have a look at it?
neither $blah = "true"
nor $blub = 1
currently works to evaluate a boolean attribute. (for example the state)
What I found is a workaround with other comparison methods, not nice but seems to work in 0.9 but only for checking the true state:
$licht_kueche.state is increasing //triggers on change to true
$licht_kueche.state is decreasing //triggers on change to false
$licht_kueche.state > 0 //evaluetes true for true