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

Merge Dev in to Master #123

Merged
merged 30 commits into from
Jul 27, 2024
Merged

Merge Dev in to Master #123

merged 30 commits into from
Jul 27, 2024

Conversation

davesmeghead
Copy link
Owner

  1. Uses latest HA settings, recommendations and nothing is deprecated
  2. Add a new Emulation Mode for minimal interaction with the Panel, a Sensor is created instead of an Alarm Panel Entity
  3. Limited support for PowerMaster 360 and 360R models
  4. PowerMaster panels now able to trigger Siren, Panic, Emergency and Fire using HA Service
  5. Robust use of the Integration in HA, Startup, Reload, Disable and Enable
  6. Redone Integration Configuration Settings, including putting strings in EN.json for future translation
  7. Different sensor delay settings for Motion/Camera, Magnet/Wired and Other Sensors
  8. Breaking changes to Services
  9. Breaking changes to Events
  10. Improved processing of PowerMaster Data, especially to support Zones 32 to 64 for PowerMaster 30 and 33
  11. Started to look at how to get the Image from a Camera PIR for PowerMaster panels

davesmeghead and others added 30 commits March 11, 2024 22:05
This is the first development release.
I have made significant changes to the code since last years release, some parts have been re-written completely.

These changes have been made to:
- Make it more robust
- Get ready for additional features coming over the next few months, particularly for PowerMaster panels

This current dev release includes:
- Changes to the Home Assistant Service calls
- Changes to the Home Assistant Events and the Event Data

Specifically for PowerMaster Panels, the changes in this dev release include:
- The "Command" Service call includes Trigger, Mute, Emergency, Panic and Fire.  These should trigger your alarm so test it at a time of the day that doesn't annoy your neighbours.
- It handles F4 Image messages from Camera Sensors (and doesn't crash the integration).  This data is not processed yet but I'm working on it.
- I have added 2 Emulation Modes, "Minimal Interaction" and "Passive Monitor".  Please do not use these, they are there to support capabilities I have not yet included.
- In the settings there is a selection to include EEPROM data in the Panel Attributes. This is a minor thing but it makes it a use choice.

As said above, this is a development release. Remember that I have rewritten chunks of the code ready for future releases and as such changes have been made to the Event and Service Data. In other words your existing automations may no longer work.

The Integration update should be reversible, you should be able to delete the content of the visonic directory and put back the original version.
0.9.2 Bug fixes, EPROM Decode update and JPG Camera images
Changes to accommodate a USB connection to a 360 Panel (and maybe a 360R Panel) It gets to Standard Plus OK but then fails to Enroll so I've added a PanelConfig setting to prevent it from Enrolling.
Extended the PanelConfig to ease the configuration checking. This includes making the keep alive interval set in PanelConfig per panel type.
Changed all EPROM to EEPROM for consistency. I'm not sure whether it is EPROM or EEPROM inside the panel but at least its consistent use now.
Further change to decoding the EEPROM
Various bug fixes and comments
Add the available property to Entities that didn't have it.
Including moving the code to the new HA way of creating and removing integrations and entities.
Added use of HA HassEntryKey for configuration data
Removal of Override Code as its now set on the Entity
Removal of B0 Dev Configuration
Cast panel_num to string in async_step_device to resolve TypeError during string concatenation

  File "/config/custom_components/visonic/config_flow.py", line 233, in async_step_device
    await self.async_set_unique_id(VISONIC_UNIQUE_NAME + " Panel " + panel_num)
                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
TypeError: can only concatenate str (not "int") to st
Fix TypeError in async_step_device method
Introduce 'Magnet Close Delay' configuration option for magnet sensors
Works the same way as Motion Off Delay but for magnet sensors
Sensors other than Magnet still use the old timer value
Three delays now exist in total:
 - One for Motion/Camera sensors
 - One for Magnet/Wired sensors
 - One for Emergency sensors (Gas,Smoke,Flood,Temperature, etc.)

Delay of 0s is assumed for UNKNOWN and IGNORED

Since home assistant config flow variables changed from motion_off to motion_off_delay and 2 new options where added, users need to reconfigure integration or edit .storage
Delays where not updating when using configure button on HA UI
Added Magnet Closed Delay configuration option
0.9.5.0 Significant changes to configuration settings and Message Decode
This is the first Dev release that is matched to the updated Wiki Dev Release
Added sensor 0x93 - Next MCW
Process B0 51 and B0 39 correctly
Remove the set baud as its not working properly
@davesmeghead davesmeghead merged commit 75f01a8 into master Jul 27, 2024
2 of 3 checks passed
@davesmeghead davesmeghead deleted the dev branch July 27, 2024 10:07
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