Skip to content

Blynk fix for partitions 2-8, Push notifications for power/battery/alarm#198

Merged
taligentx merged 5 commits intotaligentx:developfrom
kricon:develop
Feb 4, 2021
Merged

Blynk fix for partitions 2-8, Push notifications for power/battery/alarm#198
taligentx merged 5 commits intotaligentx:developfrom
kricon:develop

Conversation

@kricon
Copy link
Copy Markdown
Contributor

@kricon kricon commented Jan 31, 2021

Blynk examples now call pauseZones on partitions other than 1 #190. Viewing event buffer now also works fine on partitions 2-8.
Memory/Programming leds now also work on partition 2, doesn't work for partitions 3-8 for reason taligentx stated in #182
Added push notification for battery/power trouble/restore and partition in alarm (partition you've selected in blynk project) EDIT: committed sending push notification when alarm occurs on all partitions (with partition number on which alarm occured), not just the one selected in Blynk app.
Note that you must add widget:notification in your blynk project and enable notifications. Works fine when phone is locked and Blynk app isn't open.

It's possible to make tabs in Blynk project and for example have one tab only for controlling one partition, second tab for second partition, third tab just for controlling PGM's and viewing event buffer, and fourth for Blynk serial terminal where it can log latest events for example arming/disarming/alarm/zone low batteries and such. But that requires a lot of code addition, as printPanelStatus now only supports viewing past events from DSC buffer and displaying them on virtual LCD. Also, zone low battery push notification would be nice addition aswell, I'll see if I can implement it.

EDIT: Just noticed a bug while testing: if you press ( * ) from real keypad which is set on partition different than one on Blynk virtual keypad, it calls pauseZones but never call resetZones (until status for that partition changes). Bug doesn't happen if you're doing programming, as all other keypads gets disabled and afterwards zones open/partition ready status message call resetZones. Probable solution is to call pauseZones only if ( * ) is pressed from same partition as the one on which is virtual keypad set. FIXED in commit

kricon and others added 5 commits January 31, 2021 02:41
Blynk examples now call pauseZones on partitions other than 1 #190
Memory/Programming leds now also work on partition 2, doesn't work for partitions 3-8 for reason taligentx stated in #182
Viewing event buffer now also works fine on partitions 2-8.
Added push notification for battery/power trouble/restore and partition in alarm (partition you've selected in blynk project). Note that you must add widget:notification in your blynk project and enable notifications. Remember that it sends notification only when selected partition goes in alarm and not the others. Works when phone is locked and when Blynk app isn't open.
…larm

If power/battery trouble/restore occur, it will be pushed as notification and "Trouble status on" notification wont be pushed.
Obviously, if power/battery trouble is active and new trouble occurs such as zone sensor low battery, "Trouble status on" won't be pushed as trouble status was already on.
@taligentx taligentx merged commit b443596 into taligentx:develop Feb 4, 2021
@taligentx
Copy link
Copy Markdown
Owner

Thank you! It's great to have the better multiple partition support and notifications.

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

Successfully merging this pull request may close these issues.

2 participants