Giter Club home page Giter Club logo

esphome-docs's Introduction

esphome-docs's People

Contributors

anonym-tsk avatar balloob avatar carlosgs avatar clydebarrow avatar dependabot[bot] avatar dudanov avatar fabaff avatar flaviut avatar glmnet avatar guillempages avatar ianchi avatar imgbot[bot] avatar jeffresc avatar jesserockz avatar kahrendt avatar kbx81 avatar ludeeus avatar martgras avatar mat931 avatar max246 avatar mmakaay avatar mvturnho avatar nagyrobi avatar nielsnl68 avatar nuttytree avatar optimusprimespace avatar ottowinter avatar oxan avatar senexcrenshaw avatar ssieb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

esphome-docs's Issues

Can you add validate button to EDIT window?

Just wondering if there is a way to add this functionality to initiate the validation process without leaving the edit page. It would be nice, since as a beginner with ESPHome, I find myself constantly editing and validating the yaml to try to solve issues.

I know there may be some challenges with having the validation process with the edit window open, but maybe the validating would run on-top-on the edit window. This way if the validation is unsuccessful, you get to see the results of why, and then you would click the normal close button to close the validation screen and be prompted with the edit screen. If the validation is successful, maybe you could present an upload button.

esphome dashboard 2019-03-02 14-19-00

ESPHome-docs docker image on unraid

I'm trying to install the esphome-docs repo on my unraid docker server:

docker run -d --name='esphomedocs' --net='br0' --ip='10.0.0.57' -e TZ="Europe/Berlin" -e HOST_OS="Unraid" -v '/mnt/user/appdata/esphomedocs/':'/data/esphomedocs':'rw' 'esphome/esphome-docs' 
69aebf895ccb228653bbf024d5d1c1afde25fc7fc409a3f4a578b2c996315b16

but when i try to start the container it fails and outputs this in its log

make: *** No rule to make target 'webserver'. Stop.
make: *** No rule to make target 'webserver'. Stop.

Is there anything wrong with my docker command there?

(I apologize if this is not supposed to be posted here, please move to correct place if this is not the proper place for posting issues with esphome-docs)

New integration request: RCWL-0516 (doppler radar)

What new integration would you wish to have?

  • RCWL-0516

"RCWL-0516 is a doppler radar microwave motion sensor module which can act as an alternative to a PIR motion sensor"

If possible, provide a link to an existing library for the integration:

Product link:
https://www.aliexpress.com/item/Free-Shipping-Human-body-induction-module-RCWL-0516-microwave-radar-inductive-switch-module-intelligent-sensing-detector/32712700620.html (US $0.49 / piece)

Is your feature request related to a problem? Please describe.
I'm always frustrated when I can't use esphomelib for all of my sensors 😿

Feature request: batch upload

Would it make sense to allow selecting a batch of devices and uploading them one after other? It would make it easier to upgrade or change a snippet of code on all devices.

ON INA219 INTERFACE THE SHUNTRESISTANCE IS NOT CORRECT

The shunt_resistance of 0.1Ohm will not output the correct power. The value of 0.001Ohm will
correct it but the physical resistor is still R100 also 0.1Ohm.

sensor:

  • platform: ina219
    address: 0x40
    shunt_resistance: 0.001 ohm
    current:
    name: "INA219 Current"
    power:
    name: "INA219 Power"
    bus_voltage:
    name: "INA219 Bus Voltage"

shunt_voltage:

name: "INA219 Shunt Voltage"

max_voltage: 32.0V
max_current: 3.2A
update_interval: 10s

[Question] Draw '%' on LCD and utilize more than one page

Hello,

I'm playing with a i2c LCD Display (PCF8574) and having a great time! ❇️

I'm just struggling get a '%' behind my humidity printed. I read the docs but didn't got smarter.

Another question is how can I utilize more than one page or let content scrolling?

Thank's for the help already!

New integration request: HomeKit BLE

What new integration would you wish to have?
Apple HomeKit BLE device integration. More particularly, I would like to use the Fibaro Single Switch (HomeKit version) in HASSIO.

BLE is currently not functional in Hassio on the RPi3 and I have a few ESP BLE boards around the house for other functions, so was wondering if this could be implemented.

Product link:

Is your feature request related to a problem? Please describe.

Cookbook: adafruit.io MQTT

I could not find an esphomeyaml template that would work with adafruit.io: auto-generated MQTT topics would not be accepted by adafruit.io, and debug messages would go over the 30 msg/min rate limit.
To work around these problems, I had to:

  • Remove the birth_message and will_message, because they would spam the console every five seconds,
  • Remove the OTA debug stream, as it would also go over the rate limit. You can still upload new firmwares OTA, though.
  • Force adafruit.io MQTT topic naming convention for each sensor output.

Here is the template, for you to reuse. Replace XXXX by your user name, of course.

esphomeyaml:
  name: mqttbme280
  platform: ESP8266
  board: nodemcuv2
wifi:
    ssid: 'XXXXXXX'
    password: 'XXXXXXXXXXXXXXXX'
ota:
  password: 'XXXXXXXXXXXXXXXX'
mqtt:
  broker: 'io.adafruit.com'
  username: 'XX<USERNAME>XX'
  password: 'XX<APIKEY>XX'
  topic_prefix: 'XX<USERNAME>XX/feeds'
  birth_message:
  will_message:
  log_topic:
# Enable verbose logging on serial
logger:
    level: VERY_VERBOSE
    logs:
         spi: INFO
         i2c: INFO
i2c:
  sda: D6
  scl: D5
  scan: False
binary_sensor:
    - platform: status
      name: "BME280 Status"
      id: status
      internal: True
# note that bme280 is either on address 0x77 or 0x76
sensor:
  - platform: bme280
    address: 0x76
    temperature:
      name: "BME280 Temperature"
      id: temperature
      state_topic: XX<USERNAME>XX/feeds/bme280.temperature
      discovery: False
      filters: []
    pressure:
      name: "BME280 Pressure"
      id: pressure
      state_topic: XX<USERNAME>XX/feeds/bme280.pressure
      discovery: False
      filters: []
    humidity:
      name: "BME280 Humidity"
      id: humidity
      state_topic: XX<USERNAME>XX/feeds/bme280.humidity
      discovery: False
      filters: []
    update_interval: 15s
- platform: wifi_signal
    name: "BME280 WiFi Signal"
    update_interval: 15s
    id: signal
    state_topic: XX<USERNAME>XX/feeds/bme280.wifi
    filters: []
    discovery: False
switch:
  - platform: restart
    name: "BME280 Restart"
    internal: True

Use a font where 0 and O are perfectly distinguishable

Hi, thanks for the great doc for a project of that size.
New at ESPHome, I wanted to look which Pin-Names to take for a NodeMCU ESP32, and ran into the trap of confusing a zero with the letter O. With a different font that e.g. uses a slash in the zero, it would be impossible to confuse them for a noob user like me.

Problem with Sonoff TH10 & Si7021 sensor

I test Sonoff TH10 with this firmware and have problem.
If set i2c scan to true i see in logs:
[C][i2c:043]: I2C Bus: [C][i2c:044]: SDA Pin: GPIO4 [C][i2c:045]: SCL Pin: GPIO5 [C][i2c:046]: Frequency: 1000 Hz [I][i2c:048]: Scanning i2c bus for active devices... [I][i2c:064]: Found no i2c devices!
If i set sda&scl manually - "Found no i2c devices!" again.
With dallas temperature sensor firmware work's perfectly.
Anyone know solution?

ps sensor tested and work with original firmware :)

Cookbook: mqtt-bmp180-oled.yaml

I was inspired by mqtt-bme280-homie (https://github.com/mhaack/mqtt-bme280-homie/) and wanted to extend it to also work without active wifi/mqtt connection (mhaack/mqtt-bme280-homie#6). What would be the best job for it? For sure esphomeyaml! ✨ 🎇 🎆

Part list:

  • esp m3 (for any other esp/board just change platform/board in your yaml!)
    image
  • bmp180/bmp085 (or for bme280 change the sensor platform)
    image
  • oled display
    image
  • some wires (for example dupont cables) to hook things up

The total hardware costs are around $5 when ordered directly from the country of origin.

For the font I used five by five licensed under CC BY 4.0 from dafont: https://www.dafont.com/de/fivebyfive.font

esphomeyaml:
  name: mqtt-bmp180-oled
  platform: ESP8266
  board: esp8285

wifi:
  ssid: 'xxx'
  password: 'xxx'

mqtt:
  broker: 'xxx'
  username: 'xxx'
  password: 'xxx'

# Enable logging
logger:

ota:
  password: 'xxx'

i2c:
  sda: 0
  scl: 2
  scan: False

binary_sensor:
  - platform: status
    name: "mqtt-bmp180-oled Status"
    id: status

sensor:
  - platform: wifi_signal
    name: "mqtt-bmp180-oled WiFi Signal"
    update_interval: 60s
    id: signal

  - platform: bmp085
    temperature:
      name: "mqtt-bmp180-oled Temperature"
      id: temperature
    pressure:
      name: "mqtt-bmp180-oled Pressure"
      id: pressure
    update_interval: 60s

switch:
  - platform: restart
    name: "mqtt-bmp180-oled Restart"

font:
  - file: "five.ttf"
    id: five8
    size: 8

time:
  - platform: sntp
    id: time
    servers:
      - 0.pool.ntp.org

display:
  - platform: ssd1306_i2c
    model: "SSD1306 128x64"
    address: 0x3C
    lambda:  |-
      it.printf(0, 10, id(five8), "Temp: %.1f Celsius", id(temperature).value);
      it.printf(0, 20, id(five8), "Pressure: %.1f hPa", id(pressure).value);
      it.strftime(0, 35, id(five8), "Time: %H:%M", id(time).now());
      it.strftime(0, 45, id(five8), "Date: %d.%m.%Y", id(time).now());
      it.printf(0, 60, id(five8), "Wifi: %s", id(status).value ? "Online" : "Offline");
      it.printf(80, 60, id(five8), "%.1f", id(signal).value);

And the result looks like this:

image

ESP32, OLED Display and Deep Sleep

Good afternoon!
I breaded to make a battery-powered watch with an OLED SSD1306 screen on an ESP 32 that goes into deep sleep. I managed to send the board to sleep, but at the moment when the board falls asleep the screen continues to light. Tell me how you can turn off the screen when the board falls asleep

Sonoff Dual R2 TX/RX Pins

I've succesfully flashed a Sonoff Dual R2 and tested the RX and TX pins, so I´d like to inform that they are inverted in the beta docs, that is:
GPIO1 is TX pin
GPIO3 is RX pin

Delete

Using Hass.io easyhomeyaml add-on. Any ideas for this error, trying to upload to an nodemcu-esp32s board with the basic .yaml file to my device.

Error loading shared library libstdc++.so.6: No such file or directory (needed by /root/.platformio/packages/toolchain-xtensa32/bin/xtensa-esp32-elf-g++)
Error relocating /root/.platformio/packages/toolchain-xtensa32/bin/xtensa-esp32-elf-g++: _obstack_memory_used: symbol not found
Error relocating /root/.platformio/packages/toolchain-xtensa32/bin/xtensa-esp32-elf-g++: _Znwj: symbol not found
Error relocating /root/.platformio/packages/toolchain-xtensa32/bin/xtensa-esp32-elf-g++: _obstack_newchunk: symbol not found
Error relocating /root/.platformio/packages/toolchain-xtensa32/bin/xtensa-esp32-elf-g++: obstack_free: symbol not found
Error relocating /root/.platformio/packages/toolchain-xtensa32/bin/xtensa-esp32-elf-g++: _ZdlPvj: symbol not found
Error relocating /root/.platformio/packages/toolchain-xtensa32/bin/xtensa-esp32-elf-g++: _Znaj: symbol not found
Error relocating /root/.platformio/packages/toolchain-xtensa32/bin/xtensa-esp32-elf-g++: _obstack_begin: symbol not found
Error relocating /root/.platformio/packages/toolchain-xtensa32/bin/xtensa-esp32-elf-g++: _ZdaPvj: symbol not found

BME280 wrong values

The BME280 sensor produces absolutely incorrect values. With another firmware ESP8266 all okay. What could it be?
screen

Esp8266 nodemcu v2 + bme280 sensor

Changed availability_topic and discovery

Hello
If I change topics for LWT messages (from nodemcu/status to nodemcu/state in this example)

mqtt:
  broker: '10.0.0.53'
  username: 'hassio'
  password: '1234567'
  client_id: nodemcu
  discovery: true
  log_topic: nodemcu/log
  birth_message:
    topic: nodemcu/state
    payload: online
  will_message:
    topic: nodemcu/state
    payload: offline

I do not get modified topics in autodiscovery messages

homeassistant/sensor/nodemcu/bmp180_pressure/config:
{"unit_of_measurement":"hPa","expire_after":675,"icon":"mdi:gauge","name":"BMP180 Pressure","state_topic":"nodemcu/bmp180_pres","availability_topic":"nodemcu/status","unique_id":"ESPsensorbmp180_pressure","device":{"identifiers":"5ccf7fdc3c1d","name":"nodemcu","sw_version":"esphomelib v1.9.0b1 Nov 3 2018, 15:37:10","model":"PLATFORMIO_NODEMCUV2","manufacturer":"espressif"}}

[Feature Request] Sea level correction for air pressure sensor

It would be nice to be able to configure the altitude in metres for air pressure sensors like the BME280 and use that to calculate the air pressure at sea level.

I just found this code snippet that would help:

double bmp_atSealevel(double pressure)
{
  return pressure / pow(1.0 - ((float)altitude / 44330.0), 5.255);
}

make the switch a light-switch

i have a sonoff 4ch pro i have ambede in esphome, and it works.

But, is it possible to make the switch as light-switch, so they work in google assistant or do i have to connect mqtt broker again to get it like the light-switch back again?

Wrong indentation in Pulse Counter docs example

The problem

I believe that the counting total pulses example in the docs has the code starting with pin: 12 indented once too many times

# Example configuration entry
sensor:
- platform: pulse_counter
    pin: 12
    unit_of_measurement: 'kW'
    name: 'Power Meter House'
    filters:
      - multiply: 0.06  # (60s/1000 pulses per kWh)

    total:
      unit_of_measurement: 'kWh'
      name: 'Energy Meter House'
      filters:
        - multiply: 0.001  # (1/1000 pulses per kWh)

should be

# Example configuration entry
sensor:
- platform: pulse_counter
  pin: 12
  unit_of_measurement: 'kW'
  name: 'Power Meter House'
  filters:
    - multiply: 0.06  # (60s/1000 pulses per kWh)

  total:
    unit_of_measurement: 'kWh'
    name: 'Energy Meter House'
    filters:
      - multiply: 0.001  # (1/1000 pulses per kWh)

Which version of ESPHome has the issue?

2022.10.0

What type of installation are you using?

pip

Which version of Home Assistant has the issue?

No response

What platform are you using?

ESP8266

Board

No response

Component causing the issue

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

HDC1080 image missing

The HDC1080 image is missing in the Sensor Components section.

Tried to create a PR for this to get it back working, but I don't get why it is missing, because here it is:

The image for the DHT12 sensor is available and uses the same locations:

Seems like a server issue 🤷‍♂️

remove the switch section

Is there a way to make the automation so the button toggle the light-switch, so i can remove the switch section completly.

binary_sensor:

platform: gpio
pin:
number: GPIO0
mode: INPUT_PULLUP
inverted: True
name: "Sonoff 4CH Button 1"
on_press:
switch.toggle: relay_1
output:

platform: gpio
pin: GPIO12
id: gpio_d1
light:

platform: binary
name: "Køkkenbord"
output: gpio_d1

i have tryed:
-light.toggle: relay_1
-light.toggle: gpio_d1
-switch.toggle: relay_1
-switch.toggle: gpio_d1
but an id: in the light

BME280 Altitude graph issue

Everything works fine when checking the BME280 parameters including those calculated by the templates; however, the Relative Humidity and Altitude graphs shows a color bar instead of a line graph.
ALT
PRESS

Intel NUC Hassio errors

Hello.
I have the hassio installed on Intel NUC in docker (Ubuntu 18.04.1 LTS)
I install the addon but when compile gives the following error:

[API] ConnectionError: HTTPConnectionPool(host='api.platformio.org', port=80): Max retries exceeded with url: /v2/lib/search?query=name%3A%22ArduinoOTA%22 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb701f5ac>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)) (incremented retry: max=5, total=1)

Display page change with physical key

Hi, how can you set the display pages with a fig key by taking a gpio from wemos d1 the following code I tried does not work a help please the code here:

  - platform: gpio
    name: "Pin D7"
    pin: D7
    on_press:
    - display.page.show_next: my_display
    - display.page.show_prev: my_display

display:
  - platform: ssd1306_i2c
    model: "SSD1306 128x64"
    address: 0x3C
    update_interval: 50ms
    id: my_display
    pages:
      - id: page1
        lambda: | -
          it.printf (0, 2, id (font), "Relay 1:% s", id (relay_1) .state? "ON": "OFF");
          it.printf (73, 2, id (font), "Relay 5:% s", id (relay_5) .state? "ON": "OFF");
          it.printf (0, 13, id (font), "Relay 2:% s", id (relay_2) .state? "ON": "OFF");
          it.printf (73, 13, id (font), "Relay 6:% s", id (relay_6) .state? "ON": "OFF");
          it.printf (0, 25, id (font), "Relay 3:% s", id (relay_3) .state? "ON": "OFF");
          it.printf (73, 25, id (font), "Relay 7:% s", id (relay_7) .state? "ON": "OFF");
          it.printf (0, 37, id (font), "Relay 4:% s", id (relay_4) .state? "ON": "OFF");
          it.printf (73, 37, id (font), "Relay 8:% s", id (relay_8) .state? "ON": "OFF");
          it.printf (0, 55, id (font), "Wifi:% s", id (status) .value? "Online": "Offline");
          it.printf (102, 55, id (font), "% .1f", id (signal) .value);
          
      - id: page2
        lambda: | -
          it.strftime (0, 35, id (font), "Time:% H:% M", id (time) .now ());
          it.strftime (0, 45, id (font), "Date:% d.% m.% Y", id (time) .now ());

with this code on_press gives me error, of course the code is wrong I just wanted to change page with a key
as reported in the guide https://esphome.io/components/display/index.html
I look forward to your help, thanks

ADS1115 docs wrong constants

Hope it wasn't something I did wrong, but
https://esphomelib.com/api/sensor/ads1115.html
says

auto *sensor = ads1115->get_sensor("ADS1115 Voltage #1", ADS1115_MUX_P0_N1, ADS1115_PGA_6P144);

but I had to use sensor::ADS1115_MULTIPLEXER_P0_N1 and sensor::ADS1115_GAIN_6P144 instead (i.e. specify the namespace, and the const names are different).

Build/test in Windows Docker - make: *** No rule to make target 'webserver'. Stop.

On Windows, I can't test the docs via docker (using Linux containers).
Running the following command:

docker run --rm -v ${PWD}/..:/data -p 8000:8000 -it ottowinter/esphomedocs

Where ${PWD} is correct.

Image are downloaded, but on execution I get:

make: *** No rule to make target 'webserver'. Stop.

(unfortunately, running the whole python/doxygen/sphinx pipeline isn't working on windows either)

time servers list formatting , need a sample

I am creating a sntp_time , So I followed here
https://esphomelib.com/esphomeyaml/components/time.html
But the document is not clearly show how to write yaml code of servers list.' I tried this:

time:
  - platform: sntp
    id: sntp_time
    timezone: UTC-8
    servers:  0.pool.ntp.org, 1.pool.ntp.org , 2.pool.ntp.org
    

  // and I got the codes in main.cpp

  time::SNTPComponent *sntp_time = App.make_sntp_component();
  sntp_time->set_servers("0.pool.ntp.org, 1.pool.ntp.org , 2.pool.ntp.org", "", "");

//The declaration  is 
void esphomelib::time::SNTPComponent::set_servers(const std::string &server_1, const std::string &server_2, const std::string &server_3)
``
Obviously my Yaml is wrong. I couldn't find a correct sample in this document.

Details about uploading firmware manually

If esphomeyaml is not able to upload the firmware to the device then uploading it manually with esptool could be option. The "alternative upload" is mentioned at a couple of places but no concrete example given.

I think that it might be handy for users to have those information at hand because of
esphome/esphome#121 or because of wired button press pattern to get the device into flash mode. Use the standard settings for an ESP32 don't seem to always work.

cookbook for i2c soil moisture sensor

I created a custom component for this as it needed a 3rd party lib and is working fine here for a while. Is this something you would be interested to have documented here?

I wasn´t sure as it required 3rd party libs...

If you want it i will put something together as a cookbook (or any category you seem fit).

Slampher relay pin

I have successfully flashed a sonoff slampher, but as i used pin GPIO3, from the docs, the device relay was irresponsive.
I changed it to GPIO12, as most other sonoffs and it worked.
Originally it had firmware v1.6.2.
Maybe someone else can test these settings?
Button on GPIO0 did work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.