@developer can I also use the API for simulate pressing a amazon dash button?
-
Execute a rule by another rule
-
With pimatic-amazing-dash-button it is currently not possible.
With pimatic-dash-button I don’t think it is currently possible either, but I haven’t tried this out. Even though it is a ButtonsDevice the action declaration is missing on the most derived class.
I’ll provide a solution for pimatic-amazing-dash-button asap
https://github.com/mwittig/pimatic-amazing-dash-button/issues/10
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
@mwittig I am using your plugin so I wait. Thanks
-
@temp Released pimatic-amazing-dash-button@0.9.13.
See also README for details on trigger action.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
but there is a possibility to execute the THEN part of a rule via api.
i know that @slix made that possible in his kodi addon. there, you are able to trigger the then part of rules (from within kodi!)
https://github.com/SLiX69/plugin.program.pimatic/blob/master/addon.py#L98-L109pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
@leader21 said in Execute a rule by another rule:
but there is a possibility to execute the THEN part of a rule via api.
Well, not exactly. The code you’re referring to is using the
execute-action
a service. This allows for executing an action string, but it is not referring to the action part of a specific rule. For example, theactionString
property may look like as follows:{"actionString": "switch mySwitch off"}
It should also be noted that
execute-action
can only handle a single action. It does not allow for an action statement with a complex action expression contain multiple actions."It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
ok, maybe the wrong part in the code ^^
just have a look here
the pimatic addon in kodi scans all rules and provides a trigger option.
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
Any feedback here @mwittig
Big thanks to your update
-
I have no idea, guys. Maybe the author of the kodi plugin can shed some light on this
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
@slix, Jannis can you help us with that?
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !