LaMetric (local)

Hi!
Hass can send messages to LaMetric only via the cloud, but I want to send messages locally.
Ok. this custom-component can fix this.

sample config:

lametric_local:
  - name: hall
    api_key: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    ip_address: "192.168.1.74"
    port: 8080

  - name: office
    api_key: bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
    ip_address: "192.168.1.58"
    port: 8080
    data:
      priority: info
      cycles: 1
      icon: a87
      sound: positive4
      repeat: 3

where name is notification device name


api_key / ip_address / port - is parameters for connection to LaMetric device
β€œdata” - default parameters for messages (per device!)
for details please click here Notifications β€” LaMetric v1.7.7 documentation

example for sending notifications:

service: notify.office
data:
  message: That's an example that sends a message to LaMetrics.
service: notify.office
data:
  message: That's an example that sends a message to LaMetrics.
  data:
    priority: info
    icon: a2867
    sound: notification4
    cycles: 3
service: notify.office
data:
  message: That's an example that sends an message to LaMetrics.
  data:
    priority: critical
    cycles: 3
    icon: 'data:image/gif;base64,R0lGODlhCAAIAPMAABweHPSGHCwqJCwmJCQmJCQeHCQiHBwiHDQyLCQeJCQiJBwiJDQyNAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJMgANACH+IFJlc2l6ZWQgd2l0aCBlemdpZi5jb20gR0lGIG1ha2VyACwAAAAACAAIAAAEEBDJOYO98mKkbe6fFm7UFAEAIfkECTIAAQAsAAAAAAgACAAABBmQjEEEkSrrzbXxyseJ4WecZ1EYqgEUQBxHADs='
    sound: negative5
    repeat: 3

with own frames

service: notify.office
data:
  message: ''
  data: 
    frames: '[{"text": "Hello"}, {"text": "how"}, {"text": "are you?"}, {"icon": "a2867", "text": "Great!"}]'
service: notify.office
data:
  message: ''
  data: 
     frames: '[{"chartData":  [ 1, 2, 3, 4, 5, 6, 7 ]}]'
3 Likes