Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
allows temperature to be displayed in fahrenheit
  • Loading branch information
root committed Feb 10, 2019
1 parent 077d5ea commit 40577bc
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -70,6 +70,7 @@ Please test and provide feedback/suggestions.

### Change Log:
- 10/02/19:
- [REQUEST] Added option to display in fahrenheit
- [FIX] Panel lockout display
- [FIX] HA 0.87 compatibility
- [REQUEST] Included switches into the sensor lists as requested
Expand Down
9 changes: 5 additions & 4 deletions alarm.yaml
Expand Up @@ -14,17 +14,18 @@ name: House
panel:
camera_update_interval: ''
cameras: []
enable_camera_panel: false
enable_camera_panel: 'False'
enable_clock: 'True'
enable_clock_12hr: 'True'
enable_custom_panel: false
enable_floorplan_panel: false
enable_sensors_panel: true
enable_custom_panel: 'False'
enable_floorplan_panel: 'False'
enable_sensors_panel: 'True'
enable_serif_font: 'True'
enable_weather: 'True'
hide_passcode: 'True'
panel_title: Surname Residence
shadow_effect: 'True'
enable_fahrenheit: false
states:
armed_away:
immediate:
Expand Down
15 changes: 14 additions & 1 deletion panels/alarm.html
Expand Up @@ -99,7 +99,12 @@
<div id='weather' class='box box-header weather'>
<template is='dom-if' if='[[isChecked(alarm.attributes.panel.enable_weather)]]'>
<div class='weather-summary shadow'>
<span>[[temp]] &#176;C</span>
<template is='dom-if' if='[[!alarm.attributes.panel.enable_fahrenheit]]'>
<span>[[temp]] &#176;C</span>
</template>
<template is='dom-if' if='[[alarm.attributes.panel.enable_fahrenheit]]'>
<span>[[temp]] &#176;F</span>
</template>
</div>
<div id='weather-icon' class='weather-summary'>
<object id='weather_svg' class='weather-summary' type='image/svg+xml' data='[[weather.attributes.entity_picture]]'></object>
Expand Down Expand Up @@ -567,6 +572,14 @@ <h1>Panel Interface Related:</h1>
<span class='info-detail'>Enables the weather widget in this panel. A Weather Sensor named: 'sensor.weather_summary' or 'sensor.dark_sky_summary' must exist within your Home Assistant setup</span>
</div>

<div class='setting-outer vertical layout'>
<div class='setting-inner horizontal layout'>
<span class='info-header'>Display Fahrenheit: </span>
<paper-toggle-button class='setting-toggle' checked='{{isChecked(alarm.attributes.panel.enable_fahrenheit)}}' on-change='settingsSave' data-setting='panel' data-attribute='enable_fahrenheit'></paper-toggle-button>
</div>
<span class='info-detail'>Enable this to display the temperaturein Fahrenheit</span>
</div>

<div class='setting-outer vertical layout'>
<div class='setting-inner horizontal layout'>
<span class='info-header'>Passcode Hidden: </span>
Expand Down

0 comments on commit 40577bc

Please sign in to comment.