I have set up the tweet action in openhab 2 using the instructions at
and received a successful authorization but cannot get a rule to fire using the sendTweet method as sendTweet(‘status update message’).
Is there an import that must include to get my rules file to see the java class ?
I tried adding
import org.openhab.action.twitter.*
I have the jar files
/usr/share/openhab2/runtime/system/org/openhab/action/org.openhab.action.twitter/1.9.0.b5/org.openhab.action.twitter-1.9.0.b5.jar and
/var/lib/openhab2/cache/org.eclipse.osgi/212/0/.cp/lib/twitter4j-core-3.0.5.jar
I have also copied the org.openhab.action.twitter-1.9.0.b5.jar to the addons folder
any hints on how to get the rule to fire would be appreciated
Are you seeing errors in Designer or the logs? Designer right now is not able to recognize non-default Actions like this, but it will run just fine.
Did you install the action through PaperUI or the Karaf Console? You shouldn’t be messing with or copying jar files around anywhere for officially supported add-ons (i.e. those that can be installed through PaperUI).
Finally, Actions do not fire rules. Events fire a rule. So you have a trigger in the rule that defines what event should occur to cause the body of the rule to run. Then your sendTweet will run.