openhab-ios
openhab-ios copied to clipboard
Unable to trigger rule from enhanced notification
New bug checklist
- [ ] I updated the iOS openHAB app to the latest TestFlight version.
- [X] I read the Contribution Guidelines
- [X] I searched for existing GitHub issues
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.