xorfor / ha-pws Goto Github PK
View Code? Open in Web Editor NEWCapture data directly from your PWS into Home Assistant
License: GNU General Public License v3.0
Capture data directly from your PWS into Home Assistant
License: GNU General Public License v3.0
Hi,
i'm currenlty migrating from IOBroker to HA and try to integrate my Ventus W820.
For Debugging reasing i set the API Endpoint of the PWS to:
https://webhook.site/#!/16272b42-ba2a-4ad0-97ce-fb402ba38fa4/a1d58eb5-6494-4306-a0f0-b903868c953f/1
Any idea what i'm doing wrong?
2023-12-10 22:09:02.146 DEBUG (MainThread) [homeassistant.components.webhook] Handling webhook POST payload for pws 2023-12-10 22:09:02.148 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'dict object' has no attribute 'data' when rendering '{{ ((trigger.data.tempf | float - 32) / 1.8) | round(1) }}' 2023-12-10 22:09:02.148 ERROR (MainThread) [homeassistant.helpers.sensor] Error rendering state template for sensor.pws_temperature: UndefinedError: 'dict object' has no attribute 'data' 2023-12-10 22:09:02.149 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'dict object' has no attribute 'data' when rendering '{{ ((trigger.data.tempinf | float - 32) / 1.8) | round(1) }}' 2023-12-10 22:09:02.149 ERROR (MainThread) [homeassistant.helpers.sensor] Error rendering state template for sensor.pws_temperature_indoor: UndefinedError: 'dict object' has no attribute 'data' 2023-12-10 22:09:02.149 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'dict object' has no attribute 'data' when rendering '{{ trigger.data.humidity }}' 2023-12-10 22:09:02.149 ERROR (MainThread) [homeassistant.helpers.sensor] Error rendering state template for sensor.pws_humidity: UndefinedError: 'dict object' has no attribute 'data' 2023-12-10 22:09:02.150 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'dict object' has no attribute 'data' when rendering '{{ trigger.data.humidityin }}' 2023-12-10 22:09:02.150 ERROR (MainThread) [homeassistant.helpers.sensor] Error rendering state template for sensor.pws_humidity_indoor: UndefinedError: 'dict object' has no attribute 'data' 2023-12-10 22:09:02.150 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'dict object' has no attribute 'data' when rendering '{{ (trigger.data.baromrelin | float * 33.86) | round(1) }}' 2023-12-10 22:09:02.150 ERROR (MainThread) [homeassistant.helpers.sensor] Error rendering state template for sensor.pws_barometer_relative: UndefinedError: 'dict object' has no attribute 'data' 2023-12-10 22:09:02.151 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'dict object' has no attribute 'data' when rendering '{{ (trigger.data.baromabsin | float * 33.86) | round(1) }}' 2023-12-10 22:09:02.151 ERROR (MainThread) [homeassistant.helpers.sensor] Error rendering state template for sensor.pws_barometer_absolute: UndefinedError: 'dict object' has no attribute 'data' 2023-12-10 22:09:02.151 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'dict object' has no attribute 'data' when rendering '{{ (trigger.data.rainratein | float * 2.54 * 10) | round(1) }}' 2023-12-10 22:09:02.151 ERROR (MainThread) [homeassistant.helpers.sensor] Error rendering state template for sensor.pws_rainrate: UndefinedError: 'dict object' has no attribute 'data' 2023-12-10 22:09:02.152 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'dict object' has no attribute 'data' when rendering '{{ (trigger.data.dailyrainin | float * 2.54 * 10) | round(1) }}' 2023-12-10 22:09:02.152 ERROR (MainThread) [homeassistant.helpers.sensor] Error rendering state template for sensor.pws_rain: UndefinedError: 'dict object' has no attribute 'data' 2023-12-10 22:09:02.153 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'dict object' has no attribute 'data' when rendering '{{ trigger.data.solarradiation | float }}' 2023-12-10 22:09:02.153 ERROR (MainThread) [homeassistant.helpers.sensor] Error rendering state template for sensor.pws_solar_radiation: UndefinedError: 'dict object' has no attribute 'data' 2023-12-10 22:09:02.153 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'dict object' has no attribute 'data' when rendering '{{ trigger.data.uv }}' 2023-12-10 22:09:02.153 ERROR (MainThread) [homeassistant.helpers.sensor] Error rendering state template for sensor.pws_uv: UndefinedError: 'dict object' has no attribute 'data' 2023-12-10 22:09:02.158 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'dict object' has no attribute 'data' when rendering '{{ (trigger.data.windspeedmph | float * 0.44704) | round(1) }}' 2023-12-10 22:09:02.159 ERROR (MainThread) [homeassistant.helpers.sensor] Error rendering state template for sensor.pws_wind_speed: UndefinedError: 'dict object' has no attribute 'data' 2023-12-10 22:09:02.159 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'dict object' has no attribute 'data' when rendering '{{ (trigger.data.windgustmph | float * 0.44704) | round(1) }}' 2023-12-10 22:09:02.159 ERROR (MainThread) [homeassistant.helpers.sensor] Error rendering state template for sensor.pws_wind_gust: UndefinedError: 'dict object' has no attribute 'data' 2023-12-10 22:09:02.159 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'dict object' has no attribute 'data' when rendering '{{ trigger.data.winddir }}' 2023-12-10 22:09:02.160 ERROR (MainThread) [homeassistant.helpers.sensor] Error rendering state template for sensor.pws_wind_direction: UndefinedError: 'dict object' has no attribute 'data' 2023-12-10 22:09:02.160 ERROR (MainThread) [homeassistant.helpers.sensor] Error rendering state template for sensor.pws_wind_direction_text: ValueError: Template error: float got invalid input 'unavailable' when rendering template '{% set direction = ['N', 'NNE', 'NE', 'ENE', 'E', 'ESE', 'SE', 'SSE', 'S', 'SSW', 'SW', 'WSW', 'W', 'WNW', 'NW', 'NNW', 'N'] %} {% set degree = states('sensor.pws_wind_direction') | float %} {{ direction[((degree + 11.25) / 22.5) | int] }}' but no default was specified 2023-12-10 22:09:02.160 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'dict object' has no attribute 'data' when rendering '{{ trigger.data.stationtype }}' 2023-12-10 22:09:02.160 ERROR (MainThread) [homeassistant.helpers.sensor] Error rendering state template for sensor.pws_stationtype: UndefinedError: 'dict object' has no attribute 'data' 2023-12-10 22:09:02.161 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'dict object' has no attribute 'data' when rendering '{{ trigger.data.model }}' 2023-12-10 22:09:02.161 ERROR (MainThread) [homeassistant.helpers.sensor] Error rendering state template for sensor.pws_model: UndefinedError: 'dict object' has no attribute 'data' 2023-12-10 22:09:02.161 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'dict object' has no attribute 'data' when rendering '{{ ((trigger.data.humidity | float / 100) ** (1 / 8) * (112 + 0.9 * ((trigger.data.tempf | float - 32) / 1.8)) + 0.1 * ((trigger.data.tempf | float - 32) / 1.8) - 112) | round(1) }}' 2023-12-10 22:09:02.161 ERROR (MainThread) [homeassistant.helpers.sensor] Error rendering state template for sensor.pws_dewpoint: UndefinedError: 'dict object' has no attribute 'data' 2023-12-10 22:09:02.162 ERROR (MainThread) [homeassistant.helpers.sensor] Error rendering state template for sensor.pws_windchill: ValueError: Template error: float got invalid input 'unavailable' when rendering template '{% set v = states('sensor.pws_wind_speed') | float %} {% set t = states('sensor.pws_temperature') | float %} {% if t > -46.0 and t < 10.0 and v > 1.3 and v < 49.0 %} {% set w = v ** 0.16 %} {{ (13.12 + 0.6215 * t - 13.96 * w + 0.4867 * t * w) | round(1) }} {% else %} {{ t }} {% endif %}' but no default was specified 2023-12-10 22:09:02.162 ERROR (MainThread) [homeassistant.helpers.sensor] Error rendering state template for sensor.pws_heat_index: ValueError: Template error: float got invalid input 'unavailable' when rendering template '{% set t = states('sensor.pws_temperature') | float %} {% set h = states('sensor.pws_humidity') | float %} {% if t >= 26 and h >= 0.0 and h <= 100.0 %} {% set tp = t ** 2 %} {% set hp = h ** 2 %} {{ (-8.78469475556 + 1.61139411 * t + 2.33854883889 * h + -0.14611605 * t * h + -0.012308094 * tp + -0.0164248277778 * hp + 0.002211732 * tp * h + 0.00072546 * t * hp + -0.000003582 * tp * hp ) | round(1) }} {% else %} {{ t }} {% endif %}' but no default was specified
Hi!
I have done like the description says but I don't get any values and I get an error "'Trigger' is undefined."
//
Simon
Can 7-in-1 7003360 EAN 4007922075341 stations also be connected directly to Home Assistant? Only the WSLink application detects it. There are only two weather services (wunderground and weathercloud) and a place for your own, but only there is the option to provide the station URL, ID and key. Is there any way to add my station to Home Assistant?
Hi.
After pasting provided yaml into my config I recieving error after HA startup:
Logger: homeassistant.config
Source: config.py:867
First occurred: 11:33:50 (1 occurrences)
Last logged: 11:33:50
Invalid config for [template]: [allowed_methods] is an invalid option for [template]. Check: template->allowed_methods. (See ?, line ?).
Do I need to allow something somewhere to this for working?
I'm using Homeassistant 2023.1.7
Hello!
You did a great job with these plugins. From my point of view, they are the most useful of all domoticz plugins, but strangely, they have not been approached by other programmers. I saw that you no longer support for improvement but I wonder if it is possible to import from my PWS the LUX value form solar sensor. All data is imported correctly from PWS WH2650A but I needed LUX value rather than w/m2
Thanks!
Using Homeassistant 2023.8.4 on Docker
After pasting the configuration.yaml, following error shows in the log
2023-09-07 11:17:23.141 ERROR (MainThread) [homeassistant.config] Invalid config for [template]: expected SensorDeviceClass or one of 'date', 'enum', 'timestamp', 'apparent_power', 'aqi', 'atmospheric_pressure', 'battery', 'carbon_monoxide', 'carbon_dioxide', 'current', 'data_rate', 'data_size', 'distance', 'duration', 'energy', 'energy_storage', 'frequency', 'gas', 'humidity', 'illuminance', 'irradiance', 'moisture', 'monetary', 'nitrogen_dioxide', 'nitrogen_monoxide', 'nitrous_oxide', 'ozone', 'ph', 'pm1', 'pm10', 'pm25', 'power_factor', 'power', 'precipitation', 'precipitation_intensity', 'pressure', 'reactive_power', 'signal_strength', 'sound_pressure', 'speed', 'sulphur_dioxide', 'temperature', 'volatile_organic_compounds', 'volatile_organic_compounds_parts', 'voltage', 'volume', 'volume_storage', 'water', 'weight', 'wind_speed' for dictionary value @ data['sensor'][4]['device_class']. Got 'pressuregg'. (See /config/configuration.yaml, line 24).
Am I missing something? Or has configuration changed.
How can i use the code with domoticz
hello, I have some questions to better understand
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.