Thanks balloobâŚlearning more as I go along
So, I have worked out that I can get the current states
curl -X POST mytaglist.com/ethClient.asmx/GetTagList -H âContent-Type: application/jsonâ -H âAuthorization: Bearer d6702ad6-ab3a-4497-8eae-22b6229dfe03â -d ââ
(I know that I have included the auth string, but I can change that later)
I have tried this
sensor:
platform: rest
resource: mytaglist.com/ethClient.asmx/GetTagList
method: POST
name: WirelessTag
content-Type: application/json
authorization: âBearer d6702ad6-ab3a-4497-8eae-22b6229dfe03â
but no successâŚhere is the error
15-12-14 22:42:01 homeassistant.components.sensor: Error while setting up platform rest
Traceback (most recent call last):
File â/usr/local/lib/python3.4/dist-packages/homeassistant/components/sensor/rest.pyâ, line 63, in setup_platform
data = loads(response.text)
File â/usr/lib/python3.4/json/init.pyâ, line 318, in loads
return _default_decoder.decode(s)
File â/usr/lib/python3.4/json/decoder.pyâ, line 343, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File â/usr/lib/python3.4/json/decoder.pyâ, line 361, in raw_decode
raise ValueError(errmsg(âExpecting valueâ, s, err.value)) from None
ValueError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File â/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.pyâ, line 141, in _setup_platform
self.hass, platform_config, self.add_entities, discovery_info)
File â/usr/local/lib/python3.4/dist-packages/homeassistant/components/sensor/rest.pyâ, line 65, in setup_platform
_LOGGER.error(âNo valid JSON in the response in: %sâ, data)
UnboundLocalError: local variable âdataâ referenced before assignment