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

Heat alarm not working #12

Closed
florian-h05 opened this issue Jul 10, 2021 · 0 comments
Closed

Heat alarm not working #12

florian-h05 opened this issue Jul 10, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@florian-h05
Copy link
Owner

florian-h05 commented Jul 10, 2021

The heatalarm.js script is generally working, but it does not send notifications and it seems that the timers are rescheduled every time the script runs.

@florian-h05 florian-h05 added the bug Something isn't working label Jul 10, 2021
florian-h05 added a commit that referenced this issue Nov 21, 2021
* Created custom widgets for the openHAB 3.x main UI (#10)

Added custom widgets for:

alarm clock status and on/off
sound system basic control
sound system playback control
temperature display & control

Detailed commit message:

* Create alarmClock.yaml

A widget for the openHAB 3.x main UI for my openHAB alarm clock.
It displays a title, the alarm clock switch and the alarm clock time/both alarm clock times for the advanced alarm clock. Also, it can open a popup for further settings.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Create amplifierControl.yaml

A custom widget for controlling an amplifier with:
* power switch
* mute switch
* volume slider
* input selector
* hiding all settings when amplifier is powered off

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Create amplifierPlayback.yaml

A custom widget for music playback with:
* song, artist and album information
* playback controls

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Create temperatureControl.yaml

A custom widget for displaying/controlling a room's temperature with:
* current temperature
* temperature trendline
* temperature setpoint
* heating & cooling state
* left 35%: open page
* right 60%: analyze temperature

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update amplifierControl.yaml

Changed width of volume slider to respect right margin.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Complete missing widgets for standard rooms (#11)

Added custom widgets for:

* lights
* shutters, like rollershutter or blinds
* alarm clock: small version & renamed the big version
* contacts, like open/closed types, e.g. doors and windows and complex types like roofwindows

Detailed commit message:

* Create shutter.yaml

Create shutter.yaml

A custom widget for shutters with:
* up, down and stop controls
* display current position
* slider which can be enabled/disabled
* colorize the buttons based on the position of the shutter
* display the state of the automatic shading

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Rename alarmClock.yaml to alarmClock150.yaml

Rename alarmClock according to pixel height.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Create alarmClock120.yaml

A version of alarmClock150.yaml with 120px height.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Create light.yaml

A custom widget for controlling the light with:
* on/off toggle
* slider which can be enabled/disabled

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Create contact.yaml

A widget for any contacts, like doors, windows and roowindows with:
* state icon
* state text
* settings for type of contact, like normal open/closed or roofwindow

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update contact.yaml

Changed roofwindow state‘s color scheme to improve readibility especially in light mode.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update amplifierControl.yaml

Changed:
* header font style
* icon size
* icon height to not cut off the icon

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update amplifierPlayback.yaml

Changed: 
* header/title font style
* icon height to not cut off the icons

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update rainalarm.js

Fixed the roofwindow suffix removing scheme:
* Sometimes errors occured (item not found) because the suffix from xx_grLueftung was not removed.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update heatalarm.js

Fixes #12 with:
* Check if timer already exists, when it exists then do not touch it. If it does not exist, then create it. 
* Added log message for creating and skipping a timer
* Only try to cancel timer if the timer for the closed contact exists. 
* Added log message for cancelling timer.

Improvements:
* If the heatLevel is only on warning, add a given amount of minutes to the timer time.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update amplifierPlayback.yaml

Rearrange playback control buttons and playback information to use the card size more efficient.
Added description and copyright notice.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update contact.yaml

Changed name of the roofwindow option.
Added description and copyright notice.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Add Nina weather warnings to openHAB (#15)

Get weather warnings from NINA (the German warning system) and display them in openHAB.

Detailed commit message:

* Create NINA_warnings.js

A openHAB UI script to get the actual weather warnings from the NINA_Warn.bash script and send them to openHAB items.
Later, it might be enhanced to include also civil protection and flooding warnings.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Create NINA.items

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Create NINA_Warn.bash

A script for getting the warnings from NINA and parsing them into arrays. By using command line parameters, you can select which warnings you want to have displayed.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update NINA_warnings.js

Fixed:
* not using all 4 items in openHAB
* Problem with the item state when there was no warning: now only updating item from script if there is a warning.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update NINA_warnings.js

Changed warning text replacing.
Added copyright notice.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Alarm clock: items and widgets (#16)

Added/changed two widgets for the openHAB alarm clock and created sample items for the alarm clock.

Detailed commit message:

* Create alarm-clock.items

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Create alarmClock_Settings.yaml

A custom widget for controlling the openHAB alarm clocks with:
* set time(s)
* switch for on/off
* switches for each day

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Remove alarmClock150.yaml

Make 120px high version default and remove 150px version.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update alarmClock.yaml

Changed appearance to match better to the design of other widgets.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update alarmClock.yaml widgets

Changed icon to clock.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Rename light.yaml to lightOutlet.yaml & update

Renamed and added:
* description
* copyright notice
* example icon for power outlet

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update amplifierControl.yaml

Added description and copyright notice.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Add solar inverter (SBFspot) (#17)

Get the data from your SMA solar inverter with SBFspot

* SBFspot_solar.js: script to extract the data from the command line output
* SBFspot_solar.yaml: openHAB rule to automatically run the JS script and on item change
* solar.items: items needed for the script and the rule

Detailed commit message:

* Create SBFspot-solar.js

Read solar inverter data from the SBFspot output and send to items.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Create SBFspot_solar.yaml

The rule to run the JS script every 5 minutes and on manual trigger.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Create solar.items

The items for the SBFspot_solar script and rule.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Changed most **.js

Improved code style with standardjs linter.
Added copyright notice.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update things-state.js

Improved codestyle and added copyright notice.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Moved all scripts to new folder

Moved all **.js script from ui-based/** to UI/scripts.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update NINA_warnings.js

Only set item to „None.“ if their is no warning from the bash-script.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update and rename UI/widgets/alarmClock_Settings.yaml to UI/widgets/archive/alarmClock_Settings.yaml

Archived this widget, since setting the numbers to 0 does not work.
Added limit for hours to 23 and minutes to 55.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Create alarmClock_Settings.yaml

Created alarmClock_Settings, a custom widget with:
* alarm on/off toggle
* time setting
* day setting

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update lightOutlet.yaml

Added:
* display number of items on and total number of items
* open popup page

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* MainUI: Add widgets (#19)

Create widgets for:

* room card with image and states
* weather forecast
* weather current

Detailed commit message:

* Create roomCard.yaml

A custom card widget for displaying a room with:

* background image
* title in the left top
* state representation in the left bottom

State representations:
* lights
* windows
* door
* door lock
* temperature (current & target)
* heating & cooling state
* blinds (up to two blinds can be displayed)
* speaker/amplifier
* humidity
* illuminance

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Create weatherActual.yaml

Create a custom widget for the current outside weather with:
* temperature
* humidity
* rain
* strikes
* illuminance
* wind: speed & direction
* up to two weather warnings

* Create weatherForecast.yaml

Added weather forecast widget from the openHAB community: 
https://community.openhab.org/t/oh3-main-ui-examples/117928/30

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update weatherActual.yaml

Added description, source, original author and copyright notice for changes.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update and rename weatherActual.yaml to weatherCurrent.yaml

Added sunrise/sunset time.
Renamed from weatherActual to weatherCurrent.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update weatherForecast.yaml

Added ability to open page.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update temperatureControl.yaml

Adjusted size of popup page.
Added description, source, originalAuthor, changes and changesAuthor.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update NINA_Warn.bash

Used Shellcheck to improve style/quality.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update widgets\**

Change icon height to not cut off the icons on Android.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update lightOutlet.yaml

Navigate to page instead of open a popup.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update shutter.yaml

Added:
* navigate to page
* show state with "displayState"
* description and copyright

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update widgets/**

Small design improvements.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update contact.yaml

Improved settings for visibility in different modes.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Create numberDisplay.yaml

A custom widget to display number values with:
* trendline in background
* analyzer
* navigate to page

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update contact.yaml

Improvements:
* display number of contacts open for groups

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update SBFspot_solar.js

Improvements:
* add another error check to catch error before processing the output
* when an error occurs, post 0 to all items

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update **.items

Improved formatting/style and added semantic tags:
* solar.items
* network-ups-tools.items

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update numberDisplay.yaml widget

Widget adapted for use with all types of values, e.g. string. Trendline
and analyzer can be switched on and off.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Rename numberDisplay.yaml to value.yaml

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update openhab_calls-and-feature.js

Add HTTP actions.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update lightOutlet & contact widgets

Changed:
* both: added ability to open a group as popup
* contact.yaml: added ability to navigate to page

* Widgets: Update & rename lightOutlet to switch

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update temperatureControl.yaml

Changed:
* default icon to temperature
* action for left 35% can be chosen
* updated copyright notice

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update value.yaml

Changed:
* set action on click
* added an text label option

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Renamed value.yaml to label.yaml

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update label.yaml

Added:
* display openHAB icon

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update switch.yaml

Added:
* display big icon instead of switch

* Fixed bugs in widgets

* Create solar.yaml

A widget to display:
* current power
* today production
* total production
* last data refresh
of your solar inverter.

* Update widget switch.yaml

Changed position of the big icon in the upper right corner.

* Update widget solar.yaml

Added option to hide the last update timestamp.

* Create widget trigger.yaml

Added a widget for calling scenes and sending single commands to an
item. It supports light and dark background colors.

* Update README.md

Added:
* table of contents
* design guidelines
* widget information

* Fix README.md

* Update README.md

Added color definitions.

* Fix README.md

* Update widget contact.yaml

Update color scheme to Material Design color pairs from README.md

* Update README.md

Fix typo and grammar issues.
Add information for color pairs.

* Update some widgets: remove background color

Removed background color from solar.yaml, weatherForecast.yaml and
weatherCurrent.yaml as it was not needed.

* Update widget weatherCurrent.yaml

Removed item selection for weather warnings. This widget relies on the
weather warning items from the /items/NINA.items file.
Tried to apply light and dark color to red, but it seems, that
textColor from f7-chip has problems with HEX values.

* Update UI script NINA_warnings.js

Improvement:
Do not post a warning to openHAB when the last warning had the same
text.
Why: Sometimes NINA publishes two warnings with the same title.

* Archived UI script contacts_HomeKit.js

Inverted contacts for HomeKit were not needed anymore, because both
openHAB and Homebridge can invert contacts.

* Update smarthome-log

smarthome-log scripts are now used directly in the rule and not called
by another script.

* Update widgets: style

Improve consistency of style.

* Update README.md

Added widget design information.
Enhanced table of contents.

* Update README.md

Fix problems in table of contents.

* Update groupUtils.js

Huge improvements and additions:
* replaced my old, weird way of getting the items' names with cleaner
code
* added ability to get not only the members' names, but also labels
and states
* perform all arithmetic operations on Number items as natively
supported by group items
* count the states matching a given comparison expression

* Add documentation for JavaScript rules tools

* Update widget trigger.yaml

Added ability to display a big openHAB icon.

* Delete UI/rules

Not needed.

* Update READMEs

* Update groupUtils.js

Improve style.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Create itemControl.js

A JavaScript module to execute special command sequences on items.
Currently provided:
* dimming a volume to a target level

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update itemControl.js

Fixed bug:
Last step was using a wrong variable.

Signed-off-by: Florian Hotze <fhgames18@icloud.com>

* Update READMEs for itemControl

* Update READMEs: Fixed bugs

* Update README.md

* Update README.md for JavaScript

* changed style
* improved examples

* Fix README.md for JavaScript

* Fix README.md for JavaScript

* Update README.md for JavaScript

* Remove GroupUtils: Moved to openhab-rules-tools

Removed the old GroupUtils as there is a new version that is maintained
at rkoshak/openhab-rules-tools.

* Add shaddow.py (formerly at linux_openhab-misc)

* Add openhab-log-influxb.py (formerly at linux_openhab-misc)

Moved the openhab-log-influxb.py script from linux_openhab-misc to this
repository.

* Update README.md

* Update README.md

* Update UI/scripts for new version of GroupUtils

* Update openhab_calls-and-feature.js: Remove GroupUtils

* Create internet speedtest script & items

Added:
* speedtest.items: Items for the internet speedtest
* internet_speedtest.js: Utilize Ookla's speedtest cli to measure
internet performance.

* Update gitignore & vscode-workspace

* Update network-ups-tools.items

* Update rainalarm.js

* Easier configuration.
* Improved (debug) logging.
* Added license.
* Added semicolons (JavaScript Semi-Standard Style).

* Update workspace

* Update rainalarm.js: Mention dependencies

* Update openhab_calls-and-feature.js: semistandard

* heatalarm.js: Improvements in docs & semistandard

* Improved documentation.
* Added license.
* Updated style with Java-Script Semi-Standard Style.

* heatalarm.js: Correct comments.

* frostalarm.js: Fixed all issues

* heatalarm.js: Fixed issues

Fixed wrong var set up, it was not accessable outside the if statement.

* network-ups-tools Items: Fixed issue with type

* Update Dachfenster_Status.js: Re-Invert contacts

* Corrected contacts to real and not inverted open or closed state.
* Changed to Semi-Colon style.

* Update alarm-status-string.js: Correct contact.

* Correct contacts: now closed really means closed.
* Improce style.

* Update frostalarm.js: Correct contacts.

* Update heatalarm.js: Correct contacts.

* Update rainalarm.js: Correct contacts.

* alarm scripts: Added ignore list

* Added an ignoreList to frost-, heat- and rainalarm scripts to ignore
items.

* Update UI widgets: Correct contacts

* rainalarm.js: Fix error in inChange filters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant