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

OpenEPaper Link code examples. #114

Open
BeardedTinker opened this issue Apr 22, 2024 · 0 comments
Open

OpenEPaper Link code examples. #114

BeardedTinker opened this issue Apr 22, 2024 · 0 comments
Assignees
Labels
Enhancement New feature or request HACS Home Assistant Community Store

Comments

@BeardedTinker
Copy link
Owner

This is code from the video.

image

service: open_epaper_link.drawcustom
data:
  background: white
  ttl: 300
  payload:
    - type: rectangle
      outline: red
      fill: white
      width: 1
      x_start: 5
      y_start: 5
      x_end: 289
      y_end: 118
    - type: icon
      value: heart-pulse
      x: 10
      "y": 10
      size: 16
      color: red      
    - type: text
      value: Heart rate {{states('sensor.heart_rate')}}
      font: ppb.ttf
      x: 30
      "y": 10
      size: 16
      color: black
    - type: icon
      value: heart
      x: 10
      "y": 28
      size: 16
      color: red
    - type: text
      value: Resting heart rate {{states('sensor.resting_heart_rate')}}
      font: ppb.ttf
      x: 30
      "y": 28
      size: 16
      color: black      
    - type: icon
      value: water-percent
      x: 10
      "y": 46
      size: 16
      color: red        
    - type: text
      value: Oxygen saturation {{states('sensor.oxygen_saturation')}}
      font: ppb.ttf
      x: 30
      "y": 46
      size: 16
      color: black           
    - type: line
      fill: black
      width: 1
      x_start: 10
      y_start: 66
      x_end: 283
      y_end: 66   
    - type: icon
      value: walk
      x: 10
      "y": 70
      size: 16
      color: red        
    - type: text
      value: Steps daily {{states('sensor.steps_daily')}}
      font: ppb.ttf
      x: 30
      "y": 70
      size: 16
      color: black         
    - type: icon
      value: cup-water
      x: 10
      "y": 88
      size: 16
      color: red        
    - type: text
      value: Hydration {{states('sensor.hydration')}} l
      font: ppb.ttf
      x: 30
      "y": 88
      size: 16
      color: black         
target:
  entity_id: open_epaper_link.0000021C63473B10
@BeardedTinker BeardedTinker added Enhancement New feature or request HACS Home Assistant Community Store labels Apr 22, 2024
@BeardedTinker BeardedTinker self-assigned this Apr 22, 2024
BeardedTinker added a commit that referenced this issue May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request HACS Home Assistant Community Store
Projects
None yet
Development

No branches or pull requests

1 participant