Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

500 internal server error with hass API with some separators #28

Open
Nurffe opened this issue Jun 20, 2020 · 3 comments
Open

500 internal server error with hass API with some separators #28

Nurffe opened this issue Jun 20, 2020 · 3 comments

Comments

@Nurffe
Copy link

Nurffe commented Jun 20, 2020

hass-ruuvitag fails to communicate with homeassistant api if tag name contains - or . or probably some other separators too

Following configuration

  - id: beeefeeeecee
    name: ruuvi.indoor
    enabled: true
    temperature: true
    pressure: true
    humidity: true
    battery: true
    acceleration: false
    accelerationX: false
    accelerationY: false
    accelerationZ: false

Will lead too
tag beeefeeeecee: failed 2 http://hassio/homeassistant/api/states/sensor.ruuvi.indoor_temperature: 500 Internal Server Error

@He55u
Copy link

He55u commented Dec 16, 2020

I have the same problem:

tag fd09656737fe: failed 2 http://hassio/homeassistant/api/states/sensor.some-name_temperature: 500 Internal Server Error
Server got itself in trouble

I'm running hass-ruuvitag in env:

  • hassio-ruuvitag 0.3.0
  • Home Assistant 2020.12.0
  • Raspberry PI 4 B

@He55u
Copy link

He55u commented Dec 17, 2020

It looks like that hassio-ruuvitag is not able to set attributes correctly?

Found tag fd09656737fe
[
  {
    url: 'http://hassio/homeassistant/api/states/sensor.some-name_temperature',
    payload: { state: 21.62, attributes: [Object] }
  },
  {
    url: 'http://hassio/homeassistant/api/states/sensor.some-name_pressure',
    payload: { state: 1015.0400000000001, attributes: [Object] }
  },
  {
    url: 'http://hassio/homeassistant/api/states/sensor.some-name_humidity',
    payload: { state: 24.915, attributes: [Object] }
  },
  {
    url: 'http://hassio/homeassistant/api/states/sensor.some-name_battery',
    payload: { state: 3061, attributes: [Object] }
  }
]

@He55u
Copy link

He55u commented Dec 17, 2020

I got now hassio-ruuvitag working after changing the name of a sensor from "some-name" to "olohuone". It seems that you should not use any special characters in the sensor name. Thanks Arni for help!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants