This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class GhData : Driver | |
var greenhouse_data | |
def greenhouse() | |
# Read needed Sensor data | |
import json | |
var sensors=json.load(tasmota.read_sensors()) | |
var p = sensors['BME280']['Pressure'] | |
var rh = sensors['SHT3X']['Humidity'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import string | |
class ADS1115Data : Driver | |
var convert_to_mv | |
def ads1115() | |
# Read needed Sensor data | |
var sensors = json.load(tasmota.read_sensors()) | |
var raw_adc0 = sensors['ADS1115']['A0'] | |
var raw_adc1 = sensors['ADS1115']['A1'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias: ajastintesti | |
description: "" | |
trigger: | |
- platform: device | |
type: turned_on | |
device_id: <deviceid poistettu> | |
entity_id: switch.nedis6_relay1 | |
domain: switch | |
id: relay2 on | |
- platform: event |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{# Some stuff for testing Home Assistant Template to make template sensors #} | |
{# This is equivalent to Tasmota Berry Script used on greenhouse automation #} | |
{# https://gist.github.com/boozeman/e191e01ef914e2651544a03a7acf32eb #} | |
{# Target_VPD set here by hand. Read some sensor data to variables #} | |
{% set Target_VPD = 1.4 |float %} | |
{% set T = states('sensor.your_sensor_sht3x_temperature') |float %} | |
{% set RH = states('sensor.your_sensor_sht3x_humidity') |float %} | |
{% set p = states('sensor.your_sensor_bme280_seapressure') |float %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
service: mqtt.publish | |
data: | |
topic: cmnd/Greenhouse1/wiper1 | |
qos: "0" | |
retain: true | |
payload: >- | |
{% set greenhouse_temp = states('sensor.greenhouse1_ec_fan_control_temperature') |float %} | |
{% if greenhouse_temp <24.0 %} 0 | |
{% else %} | |
{% set temp_min = states('input_number.ec_fan_temp_min') |float %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copy this on root of config directory or any place you want | |
# Correct the file sensor paths for configuration.yaml if needed | |
# Usage: python3 FMIWeather.py station parameter | |
# Examples: | |
# FMIWeather.py Tampere windspeed | |
# FMIWeather.py Hämeenlinna rain1h | |
# NOTE! If you live place without FMI weather station, like Turenki, Renko or Lammi, It takes the readings for the closest station. | |
# You can find the stations here: https://www.tuulikartta.info/#lang=fi#latlon=61.04,24.29,9#parameter=ws_10min for example | |
# All data with 10 min resolution | |
# ws_10min = Wind Speed 10min avg (in m/s) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
command_line: | |
- sensor: | |
name: "Wind Direction 10min Avg" | |
unique_id: file_fmi_wind_direction | |
unit_of_measurement: "°" | |
scan_interval: 300 | |
command: "python3 /config/FMIWeather.py Tampere winddirection" | |
value_template: "{{ value_json.result[-1].value |int }}" | |
json_attributes: | |
- time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type: custom:windrose-card | |
title: Wind direction last 8hrs | |
data_period: | |
hours_to_show: 8 | |
max_width: 400 | |
refresh_interval: 300 | |
windspeed_bar_location: bottom | |
windspeed_bar_full: false | |
wind_direction_entity: | |
entity: sensor.wind_direction_10min_avg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
esphome: | |
name: nedis-esp-003 | |
substitutions: | |
device_name: nedis_esp_003 | |
friendly_name: Nedis ESP 003 | |
# Nedis WIFIPO120FWT with bk7231N chip has markings "10T40 and µ" on it's label | |
# Nedis WIFIPO120FWT with bk7231T chip has no those markings on it's label (BL0937 pins CF=P7, CF1=P8 and sel=P24, Light=P6 other pins the same) | |
# Use Cloud Cutter profile: tuya-generic-fs-02we-1ch-16a-smart-switch-with-energy-monitoring |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
esphome: | |
name: nedis-esp-004 | |
substitutions: | |
device_name: nedis_esp_004 | |
friendly_name: Nedis ESP 004 | |
# Nedis WIFIPO121FWT with bk7231N | |
# Nedis WIFIPO120FWT with bk7231N chip has markings "10T40 and µ" on it's label | |
# Nedis WIFIPO120FWT with bk7231T chip has no those markings on it's label |
OlderNewer