Kraken Bitcoin Sensor integration with Ulanzi (and Lametric Time)

Hi,
i’m new with Home Assistant, i have two hardware like Ulanzi Clock (with awtrix light) and Lametric Time.

I would like to visualize on them Kraken Bitcoin price from Home Assistant and put an alarm in order to ring when price reach a given number.

There is a guide to do so or someone that can tell me step by step how to configure it?

I’ll tip 5€ to whom help me to resolve it on one of these devices…

Thanks in advance.

Sure I’ll give it a try:

Flash your Ulanzi with Awtrix Light (AWTRIX LIGHT) and configure MQTT (MQTT - Home Assistant) to connect your Ulanzi and Home Assistant (Install MQTT Broker in HA if needed)

Then install the Kraken Integration in Home Assistant: Got to Settings - Devices & Services and press “Add Integration”, search for Kraken and install it. Now you have the current BTC Prize from Kraken as a value (sensor) in Home Assistant. You can configure it to show XBT/USD or XBT/EUR or whatever you need.

Next Download the Bitcoin Icon “10814” on your Ulanzi Clock via the AWTRIX Web Interface

Now create a new automation: Add Trigger - Entity - State - place your Kraken Sensor in here e.g. “XBT EUR Bid” , after that Add Action - other actions - Call Service, select the context Menue (the three dots in the upper right corner of the action block) and select “Edit in YAML”

and paste there the code below:

service: mqtt.publish
data:
  qos: "2"
  retain: true
  topic: awtrix_your_device_id/custom/bitcoin
  payload: |-
    { "text": "{{ states('sensor.xbt_eur_ask') |round(0) }}", 
      "icon": "10814"
    }

please change here your device name: “awtrix_xxxxx” ← your ulanzi device name and “sensor.xbt_eur_ask” ← with your sensor name e.g. xbt_eur_bid

once done, press save and in the upper right corner of the automation screen press the three dots and select run to test the automation, the BTC prize should be shown on your Ulanzi Display.

For the Alarm you simply create a new automation with the same entity and select “numeric state” instead of “state” in the trigger “When”-Part of the automation. Here you can define values for below or above a fixed value.

the action would look something like this (have not tested this one):

service: mqtt.publish
data:
  qos: "2"
  retain: false
  topic: awtrix_your_device_id/notify
  payload: |-
    { "text": "Custom Alarm text", 
      "icon": "10814",
      "hold": true
    }

the "hold": true part makes it persistent until the middle button on the ulanzi clock is pressed.

Done!

Please donate the 5€ to the AWTRIX Light Project, they did the hard work :wink::

Thanks a lot Kraken!!! I have resolved with your precious suggestions! Sure i had made a donation and bought the android app too :slight_smile: