Skip to content

Commit

Permalink
Merge pull request #741 from Neekster/patch-5
Browse files Browse the repository at this point in the history
Add Points Per Hour variable (Solves #704)
  • Loading branch information
basbruss authored Jun 15, 2022
2 parents f1dc8c6 + 47fa776 commit 6bd1bef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ custom_card_nik_tablet:
entity: "[[[ return variables.ulm_custom_card_nik_tablet_restart ]]]"
icon: "mdi:restart-alert"
tap_action:
action: "call-service"
service: "button.press"
service_data:
entity_id: "[[[ return variables.ulm_custom_card_nik_tablet_restart ]]]"
action: "call-service"
service: "button.press"
service_data:
entity_id: "[[[ return variables.ulm_custom_card_nik_tablet_restart ]]]"
item2:
card:
type: "custom:button-card"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ custom_card_saxel_fan_common:
card:
type: "custom:my-slider"
entity: "[[[ return entity.entity_id ]]]"
step: "[[[ return typeof states[entity.entity_id].attributes.percentage_step === 'undefined' ? 1 : parseInt(states[entity.entity_id].attributes.percentage_step); ]]]"
radius: "14px"
height: "42px"
mainSliderColor: "[[[return variables.mainSliderColor]]]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ card_graph:
ulm_card_graph_entity2: ""
ulm_card_graph_hours: 24
ulm_card_graph_type: "fill"
ulm_card_graph_points: "0.5"
triggers_update: "all"
styles:
grid:
Expand Down Expand Up @@ -60,6 +61,7 @@ card_graph:
graph: "[[[ return variables.ulm_card_graph_type=='fill'?'line':variables.ulm_card_graph_type; ]]]"
fill: "[[[ return variables.ulm_card_graph_type=='fill'?true:false; ]]]"
hours_to_show: "[[[ return variables.ulm_card_graph_hours; ]]]"
points_per_hour: "[[[ return variables.ulm_card_graph_points; ]]]"
style: |
ha-card {
box-shadow: none;
Expand Down

0 comments on commit 6bd1bef

Please sign in to comment.