Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to trigger rule from enhanced notification #841

Open
2 of 3 tasks
lukiep opened this issue Oct 12, 2024 · 1 comment
Open
2 of 3 tasks

Unable to trigger rule from enhanced notification #841

lukiep opened this issue Oct 12, 2024 · 1 comment

Comments

@lukiep
Copy link

lukiep commented Oct 12, 2024

New bug checklist

Describe the bug
As per https://community.openhab.org/t/ios-notifications-with-openhab-cloud-connector/159490
Selecting the action button which is configured to run a rule does not trigger the rule as expected

To Reproduce
Steps to reproduce the behavior:
Notification definition:
actions.NotificationAction.sendNotification("[email protected]", "ALERT: This is a test.", "motion", "HVAC", "Im Really Hot!!!", "msg-alert-its_hot", "ui:/basicui/app?w=0000&sitemap=Crib", null, "OpenHAB=ui:/basicui/app?sitemap=Crib", "CoolTheHouse=rule:NotificationTest:prop1=OFF", "Cool The House=command:Test_Switch_1:ON");

This action button CoolTheHouse=rule:NotificationTest:prop1=OFF is meant to trigger rule with ID "NotificationTest" but does not. The rule is a simple rule which for testing purposes contains a line of logging to indicate when it is triggered:

rules.JSRule({ name: "NotificationTest", description: "NotificationTest", tags: ["TEST1", "TEST2"], id: "NotificationTest", triggers: [triggers.ItemCommandTrigger("Test_Switch_1")], execute: (event) => { console.log ("**** NotificationTest successful"); } });

Expected behavior
Trigger rule as specified in the docs

Screenshots
If applicable, add screenshots to help explain your problem.

App (please complete the following information):

  • Version: 3.0.5(11)

Smartphone (please complete the following information):

  • Device: iPhone 13, iOS 18.0.1

openHAB (please complete the following information):

  • Version 4.3M2

Additional context
Add any other context about the problem here.

@florian-h05
Copy link
Contributor

I can confirm that this does not work with the latest TestFlight build 3.0.6 (22).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants