Bug 271603 - [UPDATE PORT]: www/domoticz to 2023.1
Summary: [UPDATE PORT]: www/domoticz to 2023.1
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Robert Clausecker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-24 10:31 UTC by Xavier Beaudouin
Modified: 2023-05-25 09:52 UTC (History)
1 user (show)

See Also:


Attachments
Domoticz update to 2023.1 (14.71 KB, patch)
2023-05-24 10:31 UTC, Xavier Beaudouin
no flags Details | Diff
Domoticz update to 2023.1 (fixed) (13.51 KB, patch)
2023-05-24 11:59 UTC, Xavier Beaudouin
kiwi: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Xavier Beaudouin 2023-05-24 10:31:45 UTC
Created attachment 242370 [details]
Domoticz update to 2023.1

This patch updates www/domoticz from 2022.1 to 2023.1

Notice: this port now doesn't depends on openzwave-devel since support for
openzwave will be deprecated soon.

poudriere has been run here an no bug are expected.
Comment 1 Robert Clausecker freebsd_committer freebsd_triage 2023-05-24 10:43:35 UTC
Thank you for your submission.

Please remember to set maintainer-approval to + on patches to ports you maintain so they get looked at quickly.

Is there a changelog for this update?

I've tried to apply your patch, but unfortunately it does not apply.  Please check and submit a patch that applies to the current ports tree.
Comment 2 Xavier Beaudouin 2023-05-24 11:59:43 UTC
Created attachment 242371 [details]
Domoticz update to 2023.1 (fixed)

Thanks Robert,

For some reason my freebsd ports tree was borken.
Here is a new patch that should be ok now.

Full change log :
Version 2023.1 (February 14 2023)
- For a full overview visit: https://www.domoticz.com/wiki/Domoticz_versions_-_Commits for details
- Implemented: Accept JWT tokens as authentication and Authorization Bearer tokens (either from internal or external IAM service)
- Implemented: Blinds, added option to schedule 0%
- Implemented: dzVents, OpenURL PATCH method
- Implemented: Enphase, redesign and added battery readings (Supports firmware V7)
- Implemented: Internal OAuth2/OIDC IAM service supporting 4 different flows (OAuth2 (RFC6749), PKCE extension (RFC7636) and JWT Tokens (RFC7519))
- Implemented: MQTT, added support for Lock status
- Implemented: MQTT, added support for wildcards in discovery topics
- Implemented: MQTT, climate preset mode
- Implemented: New 'auth' debug flag to see IAM related messages
- Implemented: Now 'Applications' can be registered to get secure access to Domoticz, see 'setup' menu (standard DomoticzUI app is registered by default)
- Implemented: P1 Meter, added number of (long) power failures, voltage sags/swells
- Implemented: SECURITY_SETUP.md describing the new/improved security setup
- Implemented: Support for basic OpenID Connect Discovery ('https://<DOMOTICZURL>/.well-known/openid-configuration')
- Implemented: Search option in Switches/Scenes/Temperature/Utility and Weather tab
- Implemented: The Security realm can be configured using the 'vhostname' option (default domoticz.com)
- Implemented: Timer, Grid option for selected switches and thermostat. Big thanks to syrhus/labelette91580 and xbeaudouin
- Implemented: User device selection now displays type/subtype
- Changed: All security related setting are now in 1 settings tab
- Changed: By default prompt for login to only allow secure access
- Changed: Default 'admin' user is generated with standard password (see Users)
- Changed: Dimmer, restores to previous Set Level state after Off
- Changed: Implicit adding local IP to 'trusted networks' has been removed. Needs to be set explicitly for security reasons!
- Changed: Lots of security related code cleanup and improvements
- Changed: Menu option for 'Users' moved to main 'Setup' menu list
- Changed: MQTT timeout increased to 2 minutes
- Changed: The following proxy headers are now properly supported 'Forwarded' (RFC7239), 'X-Forwarder-For' and 'X-Real-IP' (in that order)
- Changed: The secure server (HTTPS) sends proper CORS and Security headers
- Fixed: Dashboard, scenes/lights hidden when this was disabled in user settings
- Fixed: Dashboard, mobile display did not display P1 meter current return value correctly
- Fixed: Dashboard, not showing disabled sections (temperature/weather/utility) when a device has multiple properties (for instance temperature + weather)
- Fixed: Highcharts dropdown menu z-index problem
- Fixed: Logout now returns 204 instead of 401
- Fixed: Waterflow sensor custom icon
- Fixed: Making sure Custom icons are valid (when someone manually edits the database)
- Fixed: Mobile display text objects with long lines
- Fixed: MQTT-AD Climate, fixed setpoint temperature display
- Fixed: Navigation bar display issues on some mobile devices
- Fixed: Setpoint popup when using protection

Version 2022.2 (November 5 2022)
- Implemented: Blockly,	added 'Toggle' set command
- Implemented: Camera, camera Aspect Ratio
- Implemented: Commandline option '-weblog <weblogfile>' which creates Apache Combined Logformat logs containg all webrequests
- Implemented: Counters, support for larger counter values/usage
- Implemented: Dashboard, temperature Trend indication
- Implemented: Docker	startup script (for instance to install additional packages)
- Implemented: EcoDevices, complete support for EcoDevices RT2 with firmware 3.00.xx
- Implemented: FritzBox, more statistics
- Implemented: Fritzbox, up/download statistics
- Implemented: MQTT Auto Discovery Protocol (Zigbee2MQTT/ Z-Wave JS UI)
- Implemented: P1 Meter, added Current L1/L2/L3 sensor for delivered
- Implemented: Philips Hue, support color change on some vendors bulb (like LIDL)
- Implemented: RFXCom, added internal support for Novy Mood, Level Sensor
- Implemented: SolarEdge, more sensors support
- Implemented: UVI device, added multiply field to widget
- Implemented: Xiaomi Gateway, new model for wired single key switch
- Updated: Mercedes EV, new Token URL (changed November 2022)
- Changed: All inverted Blinds types should not be used anymore, instead use the regular blinds and set the needed Reverse option
- Changed: Blinds working (see https://www.domoticz.com/wiki/Blinds)
- Changed: Energy devices have more precision
- Changed: kWh devices	MAX Power per phase from 10000 to 18400 (230V*80A)
- Changed: P1 Meter, changed P1 Max W from 17250 (25A) to 55200 (80A)
- Changed: P1 Meter, speed up CRC calculation
- Changed: Webserver, removing AppCache, switching to service worker
- Fixed: Blockly, keeping last dim level when switching OFF, option for Close state
- Fixed: Counter incremental, counter in report (when used with meter offset)
- Fixed: Counter short-term log 1 hour offset
- Fixed: Counters, rounding (number of decimals) in GUI
- Fixed: Crash when secure webserver could not start and applying settings
- Fixed: Dimmer, better handling of last dimmer level when switching on/off
- Fixed: EvoHome, correct state/mode for EvoHome type
- Fixed: Floorplan, custom utility icons corrected in Floorplan
- Fixed: Floorplan, fixed blinds state icon/switching
- Fixed: Floorplan, making sure the Door Lock is switchable in the Floorplan
- Fixed: Floorplans, fixed issues with the displaying of some icons
- Fixed: Notification system, prevent double start
- Fixed: P1 Meter, fix for Sibelga smart meters that use a too long string as an identifier
- Fixed: RFXCom, corrected RFXCom solar sensor reading
- Fixed: Temperature, corrected chill calculation
- Fixed: WebGUI, making sure status does not wrap in mobile mode
- Removed: AppCache
- Deprecated: OpenZWave, please move to MQTT Auto Discovery and ZWave JS UI (Project stopped a long time ago!)
Comment 3 Robert Clausecker freebsd_committer freebsd_triage 2023-05-24 15:56:54 UTC
Thank you.  Ideally produce these patches with git-format-patch(1) in the future.
Will commit with my next batch.
Comment 4 commit-hook freebsd_committer freebsd_triage 2023-05-25 09:44:55 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5614e7e43d02285cb04b50080dc58b61db7d55c4

commit 5614e7e43d02285cb04b50080dc58b61db7d55c4
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2023-05-24 15:55:00 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-05-25 09:41:32 +0000

    www/domoticz: update to 2023.1

    Upstream changes:

    - Implemented: Accept JWT tokens as authentication and Authorization Bearer tokens (either from internal or external IAM service)
    - Implemented: Blinds, added option to schedule 0%
    - Implemented: dzVents, OpenURL PATCH method
    - Implemented: Enphase, redesign and added battery readings (Supports firmware V7)
    - Implemented: Internal OAuth2/OIDC IAM service supporting 4 different flows (OAuth2 (RFC6749), PKCE extension (RFC7636) and JWT Tokens (RFC7519))
    - Implemented: MQTT, added support for Lock status
    - Implemented: MQTT, added support for wildcards in discovery topics
    - Implemented: MQTT, climate preset mode
    - Implemented: New 'auth' debug flag to see IAM related messages
    - Implemented: Now 'Applications' can be registered to get secure access to Domoticz, see 'setup' menu (standard DomoticzUI app is registered by default)
    - Implemented: P1 Meter, added number of (long) power failures, voltage sags/swells
    - Implemented: SECURITY_SETUP.md describing the new/improved security setup
    - Implemented: Support for basic OpenID Connect Discovery ('https://<DOMOTICZURL>/.well-known/openid-configuration')
    - Implemented: Search option in Switches/Scenes/Temperature/Utility and Weather tab
    - Implemented: The Security realm can be configured using the 'vhostname' option (default domoticz.com)
    - Implemented: Timer, Grid option for selected switches and thermostat. Big thanks to syrhus/labelette91580 and xbeaudouin
    - Implemented: User device selection now displays type/subtype
    - Changed: All security related setting are now in 1 settings tab
    - Changed: By default prompt for login to only allow secure access
    - Changed: Default 'admin' user is generated with standard password (see Users)
    - Changed: Dimmer, restores to previous Set Level state after Off
    - Changed: Implicit adding local IP to 'trusted networks' has been removed. Needs to be set explicitly for security reasons!
    - Changed: Lots of security related code cleanup and improvements
    - Changed: Menu option for 'Users' moved to main 'Setup' menu list
    - Changed: MQTT timeout increased to 2 minutes
    - Changed: The following proxy headers are now properly supported 'Forwarded' (RFC7239), 'X-Forwarder-For' and 'X-Real-IP' (in that order)
    - Changed: The secure server (HTTPS) sends proper CORS and Security headers
    - Fixed: Dashboard, scenes/lights hidden when this was disabled in user settings
    - Fixed: Dashboard, mobile display did not display P1 meter current return value correctly
    - Fixed: Dashboard, not showing disabled sections (temperature/weather/utility) when a device has multiple properties (for instance temperature + weather)
    - Fixed: Highcharts dropdown menu z-index problem
    - Fixed: Logout now returns 204 instead of 401
    - Fixed: Waterflow sensor custom icon
    - Fixed: Making sure Custom icons are valid (when someone manually edits the database)
    - Fixed: Mobile display text objects with long lines
    - Fixed: MQTT-AD Climate, fixed setpoint temperature display
    - Fixed: Navigation bar display issues on some mobile devices
    - Fixed: Setpoint popup when using protection

    Version 2022.2 (November 5 2022)
    - Implemented: Blockly, added 'Toggle' set command
    - Implemented: Camera, camera Aspect Ratio
    - Implemented: Commandline option '-weblog <weblogfile>' which creates Apache Combined Logformat logs containg all webrequests
    - Implemented: Counters, support for larger counter values/usage
    - Implemented: Dashboard, temperature Trend indication
    - Implemented: Docker   startup script (for instance to install additional packages)
    - Implemented: EcoDevices, complete support for EcoDevices RT2 with firmware 3.00.xx
    - Implemented: FritzBox, more statistics
    - Implemented: Fritzbox, up/download statistics
    - Implemented: MQTT Auto Discovery Protocol (Zigbee2MQTT/ Z-Wave JS UI)
    - Implemented: P1 Meter, added Current L1/L2/L3 sensor for delivered
    - Implemented: Philips Hue, support color change on some vendors bulb (like LIDL)
    - Implemented: RFXCom, added internal support for Novy Mood, Level Sensor
    - Implemented: SolarEdge, more sensors support
    - Implemented: UVI device, added multiply field to widget
    - Implemented: Xiaomi Gateway, new model for wired single key switch
    - Updated: Mercedes EV, new Token URL (changed November 2022)
    - Changed: All inverted Blinds types should not be used anymore, instead use the regular blinds and set the needed Reverse option
    - Changed: Blinds working (see https://www.domoticz.com/wiki/Blinds)
    - Changed: Energy devices have more precision
    - Changed: kWh devices  MAX Power per phase from 10000 to 18400 (230V*80A)
    - Changed: P1 Meter, changed P1 Max W from 17250 (25A) to 55200 (80A)
    - Changed: P1 Meter, speed up CRC calculation
    - Changed: Webserver, removing AppCache, switching to service worker
    - Fixed: Blockly, keeping last dim level when switching OFF, option for Close state
    - Fixed: Counter incremental, counter in report (when used with meter offset)
    - Fixed: Counter short-term log 1 hour offset
    - Fixed: Counters, rounding (number of decimals) in GUI
    - Fixed: Crash when secure webserver could not start and applying settings
    - Fixed: Dimmer, better handling of last dimmer level when switching on/off
    - Fixed: EvoHome, correct state/mode for EvoHome type
    - Fixed: Floorplan, custom utility icons corrected in Floorplan
    - Fixed: Floorplan, fixed blinds state icon/switching
    - Fixed: Floorplan, making sure the Door Lock is switchable in the Floorplan
    - Fixed: Floorplans, fixed issues with the displaying of some icons
    - Fixed: Notification system, prevent double start
    - Fixed: P1 Meter, fix for Sibelga smart meters that use a too long string as an identifier
    - Fixed: RFXCom, corrected RFXCom solar sensor reading
    - Fixed: Temperature, corrected chill calculation
    - Fixed: WebGUI, making sure status does not wrap in mobile mode
    - Removed: AppCache
    - Deprecated: OpenZWave, please move to MQTT Auto Discovery and ZWave JS UI (Project stopped a long time ago!)

    PR:             271603

 www/domoticz/Makefile                         |  11 +--
 www/domoticz/distinfo                         |   6 +-
 www/domoticz/files/patch-CMakeLists.txt (new) | 130 ++++++++++++++++++++++++++
 www/domoticz/pkg-plist                        |  46 +++++++--
 4 files changed, 178 insertions(+), 15 deletions(-)
Comment 5 Robert Clausecker freebsd_committer freebsd_triage 2023-05-25 09:52:21 UTC
Thank you for your submission.