With pimatic 0.9 at least you can do the following in the when section. Currently don’t have a 0.8 system running anymore
Stehlampe Wohnzimmer is on and trigger: Bewegungsmelder Flur is present
React on Milight actions
With pimatic 0.9 at least you can do the following in the when section. Currently don’t have a 0.8 system running anymore
Stehlampe Wohnzimmer is on and trigger: Bewegungsmelder Flur is present
Is your “Stehlampe Wohnzimmer” a Milight device? For my switched power sockets I can ask whether they are on or off, but not for my Milight devices.
Does not help a dummy switch with a rule?
{
“class”: “DummySwitch”,
“id”: “dummy-switch”,
“name”: “Dummy Switch”
},
if
Dummy Switch is turned on and Door is opened
then
turn Milight on for 5 minutes
Who/What will turn the Dummy switch on and off?
I was thinking that you want to switch manually separated milight rule.
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
Created an issue for the problem with evaluation:
https://github.com/pimatic/pimatic/issues/889
@thex said in React on Milight actions:
I suspected the milight plugin also extends it’s light devices from the switch class which doesn’t seem to be the case.
I am assuming you’re referring to pimatic-led-light plugin, right? As you have suspected this plugin
does not derive from the standard switch as it should. Instead of “state” the attribute is “power”. The following works for milight:
if power of MyDevice is on (then) turn myDevice2 on
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
if contact-bad is opened and power of beleuchtung-bad is off then turn beleuchtung-bad on for 5 minutes
does the trick. Thank you very much.
neither
$blah = "true"
nor$blub = 1
currently works to evaluate a boolean attribute.
For normal, a if $blah
should be enough for a boolean check
guess this issue is “solved” now ?
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebook
make it so !
@SaxnPaule said in React on Milight actions:
For normal, a if $blah should be enough for a boolean check
Note, for variables only string and number types are supported as far as I know. $blub = 1
should match if $blub has been assigned a number. If $blah
is a string the is equal to operator should match.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law