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
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
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
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'] |
NewerOlder