String does match the pattern
Question to the home assistant massive…..
I have found out that the fox solar generation sensor within HA is a calculation based on pv power, due to the fact that fox OpenApi doesnt allow the actual solar generation sensor to be used, same as the export sensor.
Which has got me thinking, can a create two new sensors based of those onse and increase it by around the 12% that its under calculating or am i just speaking/thinking nonensense??
{{ (states('sensor.airing_cupboard_temperature_sensor_temperature')| float(0) * 1.12 | float(0)) | round(2) }}
do i put this code in config.yaml in the editor software??Templates are your friend here. Using the temperature sensor in my airing cupboard as an example:
Code:{{ (states('sensor.airing_cupboard_temperature_sensor_temperature')| float(0) * 1.12 | float(0)) | round(2) }}
It'll take the current temperature, multiple it by 1.12 (so that's your extra 12%) and round it to 2 decimal places.
do i put this code in config.yaml in the editor software??
template:
- sensor:
- name: "Internet Download"
state: "{{ (states('sensor.uxg_wan_in_stats')|float(0)*8/1024/1024)|round(2) }}"
unit_of_measurement: "Mbps"
- name: "Internet Upload"
state: "{{ (states('sensor.uxg_wan_out_stats')|float(0)*8/1024/1024)|round(2) }}"
unit_of_measurement: "Mbps"
type: gauge
entity: sensor.internet_download
name: " Download"
min: 0
max: 900
needle: true
severity:
green: 0
yellow: 750
red: 850
thats brilliant @the-evaluator i will take a look at these and try and get better data going forward, as i'm not happy with cloud data from Fox being so out of whackThere's a few ways you can use them, have a read of this.
I've got a few defined in configuration.yaml:
Code:template: - sensor: - name: "Internet Download" state: "{{ (states('sensor.uxg_wan_in_stats')|float(0)*8/1024/1024)|round(2) }}" unit_of_measurement: "Mbps" - name: "Internet Upload" state: "{{ (states('sensor.uxg_wan_out_stats')|float(0)*8/1024/1024)|round(2) }}" unit_of_measurement: "Mbps"
I can then call those sensors elsewhere. Such as:
Code:type: gauge entity: sensor.internet_download name: " Download" min: 0 max: 900 needle: true severity: green: 0 yellow: 750 red: 850
Which gives this:
If you're a Facebook user then then the 'Home Assistant UK Community' group is very useful. There's people there that know HA extremely well and are keen to help out.