Commit 7c629d6f authored by Federico Sismondi's avatar Federico Sismondi
Browse files

Add() boxId udpate when patching entity

parent 54bca1e5
......@@ -67,12 +67,13 @@ def _forward_to_message_broker():
url = "{}/v2/entities/{}/attrs?options=keyValues".format(URL_BASE, entity_id)
payload = {
'boxId': entity_id.split('-')[-1],
'soilMoisture': sensor_reading,
'moistureDeviceEui': dev_eui,
'address': {
'streetAddress': street_address,
'addressLocality': 'Carouge',
'addressCountry': 'Switzerland'
'addressCountry': 'Switzerland',
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment