Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- esphome:
- name: foobar
- platform: ESP8266
- board: d1_mini
- includes:
- - "Foobar.h"
- globals:
- - id: send_input_text
- type: std::string
- text_sensor:
- - platform: homeassistant
- entity_id: input_text.foo
- id: input_text_value
- script:
- - id: send_input_text
- then:
- - homeassistant.call:
- service: input_text.select
- data_template:
- entity_id: input_text.foo
- value: {{ value }}
- variables:
- value: !lambda 'return id(send_input_text);'
- sensor:
- - platform: custom
- lambda: |-
- auto mysensor = new Foobar(1000);
- App.register_component(mysensor);
- return {mysensor};
- sensors:
- name: "foobar"
- unit_of_measurement: foos
- accuracy_decimals: 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement