WannaCryptor Earnings Sensor

This config fetches the bitcoin transactions done to the three addresses from the first version of WannaCryptor ransomware, it converts them from Satoshi to Bitcoins and Dollars.
Why? Just because it can be done, and I want to watch the values over the next week.

sensor:
       - platform: coinmarketcap
       - platform: rest
          name: wannacryptorwallets
          resource: https://blockchain.info/q/addressbalance/13AM4VW2dhxYgXeQepoHkHSQuy6NgaEb94|12t9YDPgwueZ9NyMgw519p7AA8isjr6SMw|115p7UMMngoj1pMvkpHijcRdfJNXj6LrLn
          unit_of_measurement: Satoshi

        - platform: template
          sensors:
            wannacryptor_bitcoins:
              friendly_name: 'WannaCryptor Bitcoins'
              unit_of_measurement: BTC
              value_template: '{{ (states.sensor.wannacryptorwallets.state | float / 100000000) | round(2) }}'
            wannacryptor_valueusd:
              unit_of_measurement: USD
              friendly_name: 'WannaCryptor Value'
              value_template: "{{ ((states.sensor.wannacryptorwallets.state | float / 100000000) * states('sensor.bitcoin') | float) | round(2) }}"

Add this to customize section:

  sensor.wannacryptor_bitcoins:
    icon: mdi:currency-btc
  sensor.wannacryptor_valueusd:
    icon: mdi:currency-usd

4 Likes

Love this one.
Thx

brilliant stuff! tweeted it