Container Presence

From NURDspace
Container presence
NoPicture.png
Participants
Skills Electronics, Esphome, ESP8266
Status Active
Niche Infra
Purpose Home Automation
Tool No
Location
Cost
Tool category

Container presence Property "Tool Image" (as page type) with input value "File:{{{Picture}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process. {{{Picture}}} {{#if:No | [[Tool Owner::{{{ProjectParticipants}}} | }} {{#if:No | [[Tool Cost::{{{Cost}}} | }}


Sensor for the presence of the 2 containers (klikos) in the space

esphome:
  name: klikopresence
esp8266:
  board: nodemcu
logger:
api:
wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

sensor:
  - platform: ultrasonic
    trigger_pin: D1
    echo_pin: D2
    name: "Afval kliko"
    id: afval
    update_interval: 2s
    internal: true
    pulse_time: 13us
  - platform: ultrasonic
    trigger_pin: D5
    echo_pin: D6
    id: papier
    name: "Papier kliko"
    update_interval: 2s
    internal: True

binary_sensor:
  - platform: template
    name: "Papier kliko presence"
    lambda: |-
      if (id(papier).state < 0.30) {
        return true;
      } else {
        return false;
      }
  - platform: template
    name: "Restafval kliko presence"
    lambda: |-
      if (id(afval).state < 0.60) {
        return true;
      } else {
        return false;
      }