Comments (1)
The only thing I can get to a variable for the True value is a substutution, which I do not know how to change via the frontend. I can't insert any lambdas to insert the state from another number sensor, it expects a float. I am putting this on pause.
This works for now:
substitutions:
# calibration variables
# calibration at 0C - Ice Water
cal_0: "0.0"
# calibration at 100C - Boiling Water
cal_100: "100.0"
sensor:
# Temperature Probes 1
- platform: dallas
id: temp_1
icon: mdi:thermometer-lines
index: 0
name: "Temperature"
filters:
- calibrate_linear:
method: least_squares
datapoints:
- 0.0 -> ${cal_0}
- 100.0 -> ${cal_100}
Won't work:
number:
# Calibration Temp. at 0C - Ice Bath
- platform: template
name: "Calibration Temp. at 0C - Ice Bath"
id: cal_0
icon: mdi:snowflake-alert
optimistic: true
min_value: -10.0
max_value: 10.0
step: .1
restore_value: True
initial_value: 0.0
entity_category: "Config"
sensor:
# Temperature Probes 1
- platform: dallas
id: temp_1
icon: mdi:thermometer-lines
index: 0
name: "Temperature"
filters:
- calibrate_linear:
method: least_squares
datapoints:
- 0.0 -> id(cal_0).state
- 100.0 -> !lambda 'id(cal_100).state';
from aquapi.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aquapi.