Estación Metereológica con datos en tiempo real!!!!!! Sainlogic WS3500

Estación Metereológica con datos en tiempo real!!!!!! Sainlogic WS3500

Entradas recientes

En el capítulo de hoy os enseñamos una estación metereológica capaz de volcar los datos en tiempo real en nuestro Home Assistant.La estación Sainlogic WS3500

✅Enlace para la compra de la estación Metereológica Sainlogic WS3500

https://amzn.to/35fbISD

Codigo a incluir en el fichero configuration.yaml:

template:
  - trigger:
    - platform: webhook
      webhook_id: pws
    sensor:
      #
      # --------------------------------------------------------------------------------
      #
      # Temperature
      - name: "PWS - Temperatura"
        device_class: temperature
        state: "{{ ((trigger.data.tempf | float - 32) / 1.8) | round(1) }}"
        unit_of_measurement: "°C"
      - name: "PWS - Temperatura (indoor)"
        device_class: temperature
        state: "{{ ((trigger.data.tempinf | float - 32) / 1.8) | round(1) }}"
        unit_of_measurement: "°C"
      #
      # --------------------------------------------------------------------------------
      #
      # Humidity
      - name: "PWS - Humedad"
        device_class: humidity
        state: "{{ trigger.data.humidity }}"
        unit_of_measurement: "%"
      - name: "PWS - Humedad (indoor)"
        device_class: humidity
        state: "{{ trigger.data.humidityin }}"
        unit_of_measurement: "%"
      #
      # --------------------------------------------------------------------------------
      #
      # Barometer
      - name: "PWS - Barometro (relativa)"
        device_class: pressure
        state: "{{ (trigger.data.baromrelin | float * 33.86) | round(1) }}"
        unit_of_measurement: "hPa"
      - name: "PWS - Barometro (absoluta)"
        device_class: pressure
        state: "{{ (trigger.data.baromabsin | float * 33.86) | round(1) }}"
        unit_of_measurement: "hPa"
      #
      # --------------------------------------------------------------------------------
      #
      # Rain
      - name: "PWS - Velocidad Lluvia"
        state: "{{ (trigger.data.rainratein | float * 2.54) | round(0) }}"
        unit_of_measurement: "mm/h"
      - name: "PWS - Lluvia"
        state: "{{ (trigger.data.dailyrainin | float * 2.54) | round(0) }}"
        unit_of_measurement: "mm"
      #
      # --------------------------------------------------------------------------------
      #
      # Sun
      - name: "PWS - Radiacion Solar"
        device_class: illuminance
        state: "{{ trigger.data.solarradiation }}"
        unit_of_measurement: "W/m²"
      - name: "PWS - UV"
        device_class: illuminance
        state: "{{ trigger.data.uv }}"
        unit_of_measurement: "UV Index"
      #
      # --------------------------------------------------------------------------------
      #
      # Wind
      - name: "PWS - Velocidad Viento"
        state: "{{ (trigger.data.windspeedmph | float * 0.44704) | round(1) }}"
        unit_of_measurement: "m/s"
      - name: "PWS - Rafaga Viento"
        state: "{{ (trigger.data.windgustmph | float * 0.44704) | round(1) }}"
        unit_of_measurement: "m/s"
      - name: "PWS - Direccion Viento"
        state: "{{ trigger.data.winddir }}"
        unit_of_measurement: "°"
      #
      # --------------------------------------------------------------------------------
      #
      # Misc
      - name: "PWS - Typo Estacion"
        state: "{{ trigger.data.stationtype }}"
        unit_of_measurement: ""
      #
      # --------------------------------------------------------------------------------
      #
      # Ecowitt does not support the extra information as with Wunderground, so lets calculate them
      #
      # Dewpoint
      #   https://www.ajdesigner.com/phphumidity/dewpoint_equation_dewpoint_temperature.php
      - name: "PWS - Punto Rocio"
        state: "{{ ((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) }}"
        unit_of_measurement: "°C"

Aquí tenéis la lista de los componentes necesarios para montar tu propia instalación:

¡También te  pueden interesar estos otros vídeos!

Instala el software en la raspberry

Una introducción a NodeRed