Skip to content

Commit

Permalink
Stash
Browse files Browse the repository at this point in the history
  • Loading branch information
jinglemansweep committed Nov 23, 2023
1 parent 3592038 commit 8be8532
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions wideboy/scenes/default/tile_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ def value(self):
def label(self):
return f"{self.value}"

@property
def open(self):
return self.value > 500


class CellSensorLoungeAirPM(GridCell):
icon_codepoint = FontAwesomeIcons.ICON_FA_SMOKING
Expand All @@ -122,7 +126,7 @@ def label(self):

@property
def open(self):
return self.value_quality > 1
return self.value_quality > 2

@property
def cell_color_background(self):
Expand Down Expand Up @@ -250,14 +254,6 @@ def label(self):

# Motion Tiles

"""
- binary_sensor.front_door_motion
- binary_sensor.blink_front_motion_detected
- binary_sensor.blink_back_motion_detected
- binary_sensor.blink_side_motion_detected
- binary_sensor.blink_garage_motion_detected
"""


class CellMotionFrontDoor(GridCell):
icon_codepoint = FontAwesomeIcons.ICON_FA_DOOR_CLOSED
Expand Down

0 comments on commit 8be8532

Please sign in to comment.