This module creates a virtual device that displays/stores the current season. This information can then be used by other modules to create smart automation rules (eg. different window ventilation behaviour in summer and winter)
Whenever seasons are switched an event will be emitted. Seasons can be switched either manually, or by adding a date by which the switch should happen automatically.
The events produced by this module can be caught and processed by the EventWatcher module.
Attention: I do not maintain this module anymore.
Tested with Z-Way version v2.1.1
Bug/Issue tracker at https://github.com/maros/Zway-Season/issues
Documentation at https://github.com/maros/Zway-Season/bl ... /README.md
Download at https://github.com/maros/Zway-Season/releases
[userModule] Season switch (Unmaintained)
[userModule] Season switch (Unmaintained)
Last edited by maros on 06 Feb 2017 10:59, edited 1 time in total.
Z-Way 2.2.4 on Raspi B | My Zway GitHub repos | Amazon Wishlist to support module development
Re: [userModule] Season switch
This module does not work correctly. I left out the dates for spring and autumn and specified "05/01" for summer and "10/01" for winter (without " of course). The app's status is shown as "winter" though today is 05/29, which should match 05/01 < 05/29 < 10/01. "summer" would be the correct state.
ADD: everytime I switch the app between summer and winter manually I get "TypeError: undefined is not a function" in the logs. The logfile contains:
[2016-05-29 15:25:23.972] [core] --- DummyDevice_133 performCommand processing: {"0":"off","1":{}}
[2016-05-29 15:25:23.977] [core] Notification: device-info (device-OnOff): {"dev":"Winter","l":"off"}
[2016-05-29 15:25:23.978] [core] HK: updated DummyDevice_133
[2016-05-29 15:25:28.059] [core] --- Season_131 performCommand processing: {"0":"on","1":{}}
[2016-05-29 15:25:28.063] [core] [Season] Switched season to winter
[2016-05-29 15:25:28.080] [core] Notification: device-info (device-OnOff): {"dev":"Summer","l":"winter"}
[2016-05-29 15:25:28.082] [core] HK: updated Season_131
[2016-05-29 15:25:28.591] [core] Notification: error (module): Fehler beim Ausführen des Befehls: TypeError: undefined is not a function
[2016-05-29 15:25:28.598] [core] TypeError: undefined is not a function
at Season.switchSeason (automation/modules/Season/index.js:130:22)
at vDev.controller.devices.create.handler (automation/modules/Season/index.js:50:22)
at _.extend.performCommand (automation/classes/VirtualDevice.js:250:37)
at ZAutomationAPIWebRequest._.extend.performVDevCommandFunc (automation/ZAutomationAPIProvider.js:248:60)
at ZAutomationAPIWebRequest.handlerFunc (automation/ZAutomationAPIProvider.js:1353:52)
at ZAutomationAPIWebRequest.ZAutomationWebRequest.handleRequest (automation/WebserverRequestRouter.js:258:41)
at automation/WebserverRequestRouter.js:32:35
at WebServer.document_root (automation/Webserver.js:27:11)
ADD: everytime I switch the app between summer and winter manually I get "TypeError: undefined is not a function" in the logs. The logfile contains:
[2016-05-29 15:25:23.972] [core] --- DummyDevice_133 performCommand processing: {"0":"off","1":{}}
[2016-05-29 15:25:23.977] [core] Notification: device-info (device-OnOff): {"dev":"Winter","l":"off"}
[2016-05-29 15:25:23.978] [core] HK: updated DummyDevice_133
[2016-05-29 15:25:28.059] [core] --- Season_131 performCommand processing: {"0":"on","1":{}}
[2016-05-29 15:25:28.063] [core] [Season] Switched season to winter
[2016-05-29 15:25:28.080] [core] Notification: device-info (device-OnOff): {"dev":"Summer","l":"winter"}
[2016-05-29 15:25:28.082] [core] HK: updated Season_131
[2016-05-29 15:25:28.591] [core] Notification: error (module): Fehler beim Ausführen des Befehls: TypeError: undefined is not a function
[2016-05-29 15:25:28.598] [core] TypeError: undefined is not a function
at Season.switchSeason (automation/modules/Season/index.js:130:22)
at vDev.controller.devices.create.handler (automation/modules/Season/index.js:50:22)
at _.extend.performCommand (automation/classes/VirtualDevice.js:250:37)
at ZAutomationAPIWebRequest._.extend.performVDevCommandFunc (automation/ZAutomationAPIProvider.js:248:60)
at ZAutomationAPIWebRequest.handlerFunc (automation/ZAutomationAPIProvider.js:1353:52)
at ZAutomationAPIWebRequest.ZAutomationWebRequest.handleRequest (automation/WebserverRequestRouter.js:258:41)
at automation/WebserverRequestRouter.js:32:35
at WebServer.document_root (automation/Webserver.js:27:11)
Re: [userModule] Season switch
To be honest, I'm not actively developing this particular module anymore (and that is also the reason why it isn't widely available via appstore). In VERA i had a winter/summer switch, and I thought that I might need it in Zway as well, but it turned out that my other modules (Blind Control and Window Control - wich will be released soon) work well without a season switch.
Patches/Pullrequest still welcome though
Patches/Pullrequest still welcome though
Z-Way 2.2.4 on Raspi B | My Zway GitHub repos | Amazon Wishlist to support module development
Re: [userModule] Season switch
Hi maros,
do you have a hint for me, what I could repair in the code?
do you have a hint for me, what I could repair in the code?