Code Monkey home page Code Monkey logo

ha-pws's People

Contributors

xorfor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ha-pws's Issues

Dict Errors

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

'Trigger' is undifenid

Hi!

I have done like the description says but I don't get any values and I get an error "'Trigger' is undefined."

//
Simon

WLAN-Wetterstation Profi-WSC mit 7-in-1-Sensor - Configurable

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?

Invalid config for [template]: [allowed_methods] is an invalid option for [template]

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

Solar value in LUX

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!

Invalid config for [template]: expected SensorDeviceClass

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.

Domoticz

How can i use the code with domoticz

APIKEY

hello, I have some questions to better understand

  1. does it work with any model?
  2. to generate and have your own APIKEY is it necessary to configure HA? (I need to have my own APIKEY, but I don't need HA)
  3. Can the APIKEY be managed outside HA and for any project?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.