Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
K868-A16 433 RF MHz receiver
#48
I use ESPHome. No RF configured in ESPHome yet.
my config looks like this:

# Device Specific Config
esphome:
platform: ESP32
board: esp32dev
name: ${device_name}
comment: ${device_description}
project:
name: "${project_name}"
version: "${project_version}"

time:
- platform: sntp
id: sntp_time
timezone: XXXXXXXX
servers: !secret sntp_server
on_time_sync:
then:
- logger.log: "Synchronized sntp clock"

web_server:
port: 80
auth:
username: admin
password: !secret web_server_password
include_internal: true

# Configuration entry for ESP32
i2c:
sda: 4
scl: 5
scan: true
id: bus_a

# Channels configuration
pcf8574:
- id: 'pcf8574_hub_out_1' # for output channel 1-8
address: 0x24

- id: 'pcf8574_hub_out_2' # for output channel 9-16
address: 0x25

- id: 'pcf8574_hub_in_1' # for input channel 1-8
address: 0x21

- id: 'pcf8574_hub_in_2' # for input channel 9-16
address: 0x22

# Individual inputs

sensor:

# Uptime Sensor
- platform: uptime
name: Uptime
id: uptime_sensor
update_interval: 360s
on_raw_value:
then:
- text_sensor.template.publish:
id: uptime_human
state: !lambda |-
int seconds = round(id(uptime_sensor).raw_state);
int days = seconds / (24 * 3600);
seconds = seconds % (24 * 3600);
int hours = seconds / 3600;
seconds = seconds % 3600;
int minutes = seconds / 60;
seconds = seconds % 60;
return (
(days ? to_string(days) + "d " : "") +
(hours ? to_string(hours) + "h " : "") +
(minutes ? to_string(minutes) + "m " : "") +
(to_string(seconds) + "s")
).c_str();
- platform: template
name: KinKony A16 Internal Temperature
id: temp
lambda: return temperatureRead();
unit_of_measurement: °C
accuracy_decimals: 2
Reply


Messages In This Thread
K868-A16 433 RF MHz receiver - by Razvan - 03-16-2022, 09:30 PM
RE: K868-A16 433 RF MHz receiver - by admin - 03-17-2022, 12:20 AM
RE: K868-A16 433 RF MHz receiver - by Razvan - 03-17-2022, 09:58 AM
RE: K868-A16 433 RF MHz receiver - by admin - 03-17-2022, 10:52 AM
RE: K868-A16 433 RF MHz receiver - by Razvan - 03-17-2022, 11:19 AM
RE: K868-A16 433 RF MHz receiver - by admin - 03-17-2022, 12:49 PM
RE: K868-A16 433 RF MHz receiver - by Razvan - 03-17-2022, 04:57 PM
RE: K868-A16 433 RF MHz receiver - by admin - 03-17-2022, 10:50 PM
RE: K868-A16 433 RF MHz receiver - by Razvan - 03-17-2022, 11:01 PM
RE: K868-A16 433 RF MHz receiver - by admin - 03-17-2022, 11:13 PM
RE: K868-A16 433 RF MHz receiver - by Razvan - 03-17-2022, 11:20 PM
RE: K868-A16 433 RF MHz receiver - by admin - 03-17-2022, 11:59 PM
RE: K868-A16 433 RF MHz receiver - by Razvan - 03-18-2022, 11:08 AM
RE: K868-A16 433 RF MHz receiver - by admin - 03-18-2022, 01:26 PM
RE: K868-A16 433 RF MHz receiver - by Razvan - 03-18-2022, 01:44 PM
RE: K868-A16 433 RF MHz receiver - by admin - 03-18-2022, 02:07 PM
RE: K868-A16 433 RF MHz receiver - by Razvan - 03-18-2022, 02:28 PM
RE: K868-A16 433 RF MHz receiver - by admin - 03-18-2022, 09:58 PM
RE: K868-A16 433 RF MHz receiver - by Razvan - 03-18-2022, 10:35 PM
RE: K868-A16 433 RF MHz receiver - by admin - 03-18-2022, 10:54 PM
RE: K868-A16 433 RF MHz receiver - by Razvan - 03-18-2022, 11:33 PM
RE: K868-A16 433 RF MHz receiver - by admin - 03-19-2022, 07:04 AM
RE: K868-A16 433 RF MHz receiver - by admin - 03-21-2022, 02:28 AM
RE: K868-A16 433 RF MHz receiver - by Razvan - 03-21-2022, 08:17 AM
RE: K868-A16 433 RF MHz receiver - by admin - 03-21-2022, 01:26 PM
RE: K868-A16 433 RF MHz receiver - by Razvan - 03-21-2022, 07:34 PM
RE: K868-A16 433 RF MHz receiver - by Razvan - 03-29-2022, 01:32 PM
RE: K868-A16 433 RF MHz receiver - by Razvan - 04-01-2022, 09:10 AM
RE: K868-A16 433 RF MHz receiver - by admin - 04-02-2022, 12:18 AM
RE: K868-A16 433 RF MHz receiver - by Razvan - 04-04-2022, 09:15 AM
RE: K868-A16 433 RF MHz receiver - by admin - 04-04-2022, 12:31 PM
RE: K868-A16 433 RF MHz receiver - by Razvan - 04-04-2022, 04:13 PM
RE: K868-A16 433 RF MHz receiver - by admin - 04-05-2022, 12:08 AM
RE: K868-A16 433 RF MHz receiver - by Razvan - 04-05-2022, 08:14 AM
RE: K868-A16 433 RF MHz receiver - by admin - 04-05-2022, 08:29 AM
RE: K868-A16 433 RF MHz receiver - by Razvan - 04-06-2022, 09:53 AM
RE: K868-A16 433 RF MHz receiver - by admin - 04-06-2022, 11:12 AM
RE: K868-A16 433 RF MHz receiver - by bayslarry00 - 04-08-2022, 05:52 AM
RE: K868-A16 433 RF MHz receiver - by Razvan - 04-08-2022, 09:27 AM
RE: K868-A16 433 RF MHz receiver - by admin - 03-27-2023, 10:58 AM
RE: K868-A16 433 RF MHz receiver - by admin - 03-27-2023, 11:50 AM
RE: K868-A16 433 RF MHz receiver - by admin - 03-27-2023, 12:17 PM
RE: K868-A16 433 RF MHz receiver - by MnM - Today, 04:44 AM
RE: K868-A16 433 RF MHz receiver - by MnM - 11 hours ago

Forum Jump:


Users browsing this thread:
2 Guest(s)