This file contains hidden or 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
| esphome: | |
| name: pm | |
| platform: ESP32 | |
| board: esp32dev | |
| wifi: | |
| ssid: 'YOUR_SSID' | |
| password: 'YOUR_PASSWORD' | |
| mqtt: |
This file contains hidden or 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 asyncio | |
| import binascii | |
| import json | |
| import serial_asyncio | |
| class Prg320Output(asyncio.Protocol): | |
| """Get the output of PRG320.""" | |
| def connection_made(self, transport): |
This file contains hidden or 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
| esphome: | |
| name: gas_quadrat | |
| platform: ESP8266 | |
| board: nodemcuv2 | |
| logger: | |
| level: VERBOSE | |
| wifi: | |
| ssid: SSID |
This file contains hidden or 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
| """Support for the SpaceAPI.""" | |
| from contextlib import suppress | |
| import voluptuous as vol | |
| from homeassistant.components.http import HomeAssistantView | |
| from homeassistant.const import ( | |
| ATTR_ENTITY_ID, | |
| ATTR_ICON, | |
| ATTR_LOCATION, |
This file contains hidden or 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
| #!/usr/bin/env python | |
| """Get the temperature and the humidity from a XY-MD02 sensor.""" | |
| from pymodbus.client import ModbusSerialClient as ModbusClient | |
| from pymodbus.constants import Endian | |
| from pymodbus.payload import BinaryPayloadDecoder | |
| SERIAL_PORT = "/dev/ttyUSB0" | |
| BAUDRATE = 9600 | |
| SLAVE_ID = 1 |
OlderNewer