Does anybody have a working ESPHOME configuration for a chinese dieselheater using Rf433?
1 Like
I found some code on github ,but not yaml
So i tried to convert it but i dont speak yaml …
Can somebody correct it?
There are errors in the sensor section
esphome:
name: dieselheater
friendly_name: DieselHeater
includes:
- diesel_heater_rf_component.h
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "6QzAt5C58NERK/M/mLUMJKtBCInp12VSfsTy+EgsjtU="
ota:
- platform: esphome
password: "be76ca0d1a3c0a67c7b17c84a5fe2e56"
#Network
wifi:
ssid: BRAINTUNING
password: xxxxxxx
manual_ip:
static_ip: 192.168.1.170
gateway: 192.168.1.1
subnet: 255.255.255.0
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Dieselheater Fallback Hotspot"
password: "xxxxx"
captive_portal:
spi:
clk_pin: GPIO18
mosi_pin: GPIO23
miso_pin: GPIO19
custom_component:
- lambda: |-
auto heater = new DieselHeaterRFComponent();
App.register_component(heater);
return {heater->get_temperature_sensor(), heater->get_power_sensor()};
sensor:
- platform: custom
lambda: |-
return {DieselHeaterRFComponent::temperature_sensor};
sensors:
temperature:
name: "Heater Ambient Temperature"
unit_of_measurement: "°C"
voltage:
name: "Heater Voltage"
unit_of_measurement: "V"
# Example of a switch to send a command
switch:
- platform: template
name: "Wakeup Command"
turn_on_action:
- lambda: |-
DieselHeaterRFComponent::send_wakeup();