I read in-house temperature frm my KNX domotics systems, this works fine, i get the right value.
How can i get a graph instead of the bar:
Anyone has a solution ?
I read in-house temperature frm my KNX domotics systems, this works fine, i get the right value.
How can i get a graph instead of the bar:
Anyone has a solution ?
Add a unit_of_measurement
.
When i add it to the sensor i get following error:
16-10-31 09:08:40 root: KNX/IP gateway did not respond to connect request
16-10-31 09:08:40 homeassistant.bootstrap: component knx failed to initialize
Working config, but without unit_of_measurement: ‘°C’
- platform: knx
name: Temperatuur boven
type: temperature
address: 5/4/2
Got it working with template sensor:
sensor:
- platform: knx
name: knx_temp_boven
type: temperature
address: 5/4/2
- platform: template
sensors:
temp_boven:
# Convert to °C
value_template: '{{ states.sensor.knx_temp_boven.state }}'
friendly_name: 'Temperatuur boven'
unit_of_measurement: '°C'
Many thanks for your help !
I am trying getting it cleaner to floating point and 1 decimal:
- platform: template
sensors:
temp_boven:
# Convert to °C
value_template: '{{ states.sensor.knx_temp_boven.state | round (1) | float }}'
friendly_name: 'Temperatuur boven'
unit_of_measurement: '°C'
Now i get this error in the log:
16-10-31 15:59:46 homeassistant.components.sensor.template: UndefinedError: ‘None’ has no attribute ‘state’
And another issue, i now have a graph, but it is not updating:
The log shows:
16-10-31 17:21:34 root: KNX/IP gateway did not respond to connect request
16-10-31 17:21:37 homeassistant.core: Error inside async loop: Task exception was never retrieved
16-10-31 17:22:02 homeassistant.core: Error inside async loop: Task exception was never retrieved
16-10-31 17:22:02 homeassistant.core: Error inside async loop: Task exception was never retrieved
16-10-31 17:22:32 homeassistant.core: Error inside async loop: Task exception was never retrieved
…
I used another KNX IP gateway and now KNX connection seems stable…
Also modified config of template to:
- platform: template
sensors:
temp_boven:
# Convert to °C
value_template: >-
{% if states.sensor.knx_temp_boven %}
{{ states.sensor.knx_temp_boven.state | round (1) | float }}
{% else %}
n/a
{% endif %}
friendly_name: 'Temperatuur boven'
unit_of_measurement: '°C'
This avoid errors in the log file at restart:
16-10-31 15:59:46 homeassistant.components.sensor.template: UndefinedError: 'None' has no attribute 'state'
Still some issue: graph goes to 0 on every reboot.
How to avoid this ?
I am having the same issue and I added the unit of measurement but still no graph displayed.
This is my sensor template:
garage_maison_wifi_signal_strength:
friendly_name: 'Force du signal WiFi (dB)'
value_template: '{{ states.cover.garage_maison.attributes["wifi signal strength (dB)"] }}'
unit_of_measurement: 'dB'