This is a new feature that enables you to send IoT Push Notifications form your devices directly to your phone or desktop.
It has been an adventure making this happen and true to the ChipChop modus operandi it is a native ChipChop system not dependant on any third party services. It has required a deployment of a completely new specialised server that has one and only extremely boring job... to handle push notifications for your devices!
As always, I have prioritised making this available to everyone quickly so I am assigning this a Beta status. This is a complex functionality that can only be truly tested through real life use so please make an effort and report if you come across any problems.
Usage Guidelines1. This feature is mostly intended to be used on a phone and requires the WebApp to be "installed". This is anyway how the app should be run and all you need to do is to use "Add to home screen".
Make sure to access the WebApp through browser first using
https:// as it is a security requirement (i.e. https://my.chipchop.io)
tip: Don't bother logging in when you first open it in the browser as when it gets added to the "Add to home screen" it's a completely standalone thing with it's own sandbox and that's when your automatic login can be saved.
2. The functionality requires a permission to be granted on each device you want to accept push notifications (phone, browser, desktop). This is no different than with any native app and follows the same notifications permission protocol.
3. You will find the "enable/disable" toggle button on the WebApp dashboard. The first time you start it you will get the native system permission prompt like with any app. If you don't get the prompt please report it here and specify what device/OS/browser you are using.
4. The notifications work through ChipChop Actions and are very simple to setup. You just have to specify "Notification" as a target and give it a message that you would like to receive.
For exampleIFTrigger Device -> Garage Alarm
Trigger Component -> Motion Sensor
Value is -> DETECTED
THENTarget -> NOTIFICATION
Send Notification -> "Garage Alarm - Motion Detected" (this is the message you will receive)
WHENAny Time / Every Day
IMPORTANTTo avoid getting yourself flooded with your own notifications it is an important practice to "reset" the state of whatever is the trigger for this action.
So, if your motion sensor detects motion you would normally send a triggerEvent straight away with the sensor's status "DETECTED". In the example above that will trigger the Action
BUT if you don't reset the status on the next heartbeat to "NOT_DETECTED" the action will keep executing pretty much every 10 seconds and you will quickly use up your available allowance (see usage limits below)
NOTES1. For iPhone users, this functionality is not available for iOS below 16.4
2. For Mac OS users it is also possible to add the WebApp as a standalone full screen app to the dock directly through Safari.
3. To disable the notifications I would recommend that you use the button in the ChipChop WebApp rather than using the native OS notifications settings as the app will properly inform the OS anyway and also automatically inform your ChipChop API server not to bother sending you notifications for that device anymore.
USAGE LIMITSAs this is a costly processing feature that puts a lot of pressure on the network, I have put some usage restrictions and also to prevent issues caused by general user stupidity
(you know who you are and you will do it, this is for your own good!)1. The current usage allowance per community account is
600 notifications per month shared between your devices. That gives you an average of 20 notifications per day which should suffice handling things like motion sensors, door bells and general alerts.
This is not fixed at 20 notifications per day but rather a monthly total that refreshes itself every month.
2. The speed of sending is set at a
maximum of 3 notifications per minuteIf you are working on a project that may require a lot more notifications for testing purposes, let me know and I will see if I can allocate you more