I keep getting an error when adding these wireless tags as a rest sensor: Invalid config for [sensor.rest]: required key not provided @ data[āresourceā]. Got None.
I can curl successfully and see the data, but I canāt get my sensor config right.
- platform: rest
sensors:
guest_bathroom_humidity:
friendly_name: 'guest bathroom humidity'
resource: https://my.wirelesstag.net/ethClient.asmx/GetTagList2
method: POST
value_template: '{{ value_json.d[0].temperature | round(2) }}'
unit_of_measurement: Ā°F
headers:
Content-Type: application/json
Authorization: 'Bearer <my_auth_code>'
Hereās sample data returned via curl:
{"d":[{"__type":"MyTagList.Tag2","managerName":"Home","mac":"<mac_address>","dbid":2,"mirrors":[],"notificationJS":null,"name":"guest bath","uuid":"<udid value>","comment":"","slaveId":0,"tagType":13,"lastComm":131587221142341535,"alive":true,"signaldBm":-72,"batteryVolt":2.9375063932615917,"beeping":false,"lit":false,"migrationPending":false,"beepDurationDefault":1001,"eventState":0,"tempEventState":0,"OutOfRange":false,"lux":0,"temperature":21.072044372558594,"tempCalOffset":0,"capCalOffset":0,"image_md5":null,"cap":42.2177734375,"capRaw":0,"az2":0,"capEventState":0,"lightEventState":0,"shorted":false,"thermostat":null,"playback":null,"postBackInterval":300,"rev":111,"version1":3,"freqOffset":2705,"freqCalApplied":0,"reviveEvery":4,"oorGrace":2,"LBTh":2.55,"enLBN":true,"txpwr":16,"rssiMode":true,"ds18":false,"v2flag":18,"batteryRemaining":0.91}]}
Any ideas?
FYI to anyone trying to set these up, URLs have changed without documentation. You should use https://my.wirelesstag.net for both OAuth and service calls.