Dweet, Device 'whatEver' could not be found

Trying tu use the Dweet.io sensor.
Added the example from https://home-assistant.io/components/sensor.dweet/ (with my settings of cource)
But when i add my “thing” to Device:
All i get is a error in the log.

16-09-16 12:38:22 homeassistant.components.sensor.dweet: Device 'whatEver' could not be found

I have multiple devices continuosly sending dweets, and i would love to pickup these in HA.
I am running the latest HA on a raspberry pi 3 (Not the “All in one” version)
Do i need to install anyting else maybe?

Can you please try to retrieve the value outside of Home Assistant?

$ python3
>>> import dweepy
>>> dweepy.get_latest_dweet_for('ha-sensor')
[{'content': {'temperature': 40, 'humidity': 65}, 'created': '2016-09-16T11:05:52.472Z', 'thing': 'ha-sensor'}]

I dont seem to have the module named “dweepy”
I guess that is something i need to install?

Could be that dweepy is only available inside your Home Assistant installation directory.

or use curl

$ curl -X GET https://dweet.io/dweet/for/ha-sensor

I did run “sudo pip install dweepy”

When i curl i get an answer.
{"this":"succeeded","by":"dweeting","the":"dweet","with":{"thing":"whatEver","created":"2016-09-16T11:35:16.347Z","content":{},"transaction":"f77c7f72-5333-440c-9134-3ac95d014b5c"}}

Strangely the “content” is empty.

The bigger problem now is that my HA wount show up when i try to access it from webbrowser :frowning:

It seems that your endpoint is valid. This would get you the latest value.

curl -X GET https://dweet.io/get/latest/dweet/for/whatEver

It does, but still after a reboot i find this in my log.

16-09-16 14:50:22 homeassistant.components.sensor.dweet: Device 'whatEver' could not be found

In my sensors.yaml i have this:

- platform: dweet
  name: S6 Dweet
  device: whatEver
  value_template: '{{ value_json.wifi }}'

Some how it just started to work.

I ran into the same issue… not sure what was wrong… I ran the command line and see the content but I still get that Not be found error in the log. Weird… have you got any pointer?

Edit: the component now is shown on the GUI but in the log, I see lots of these. Any ideas?

17-01-12 09:28:31 homeassistant.core: Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/lib/python3.4/asyncio/tasks.py”, line 237, in _step
result = next(coro)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py”, line 386, in _update_entity_states
yield from update_coro
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity.py”, line 220, in async_update_ha_state
state = self.state
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/sensor/dweet.py”, line 94, in state
values)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/template.py”, line 110, in render_with_possible_json_value
error_value).result()
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/util/async.py”, line 160, in run_callback_threadsafe
raise RuntimeError(‘Cannot be called from within the event loop’)
RuntimeError: Cannot be called from within the event loop

Im afraid not.
I stopped to use dweet.io and started to use MQTT instead.

Ah okay. Yeah, not a lot of ppl or devices are using dweet as far as I could tell. I searched everywhere but very little info.
Thanks.