We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have uploaded the spa_reader.h in the ESP folder in Home Assistant. I have tried changing the TX and RX.
This is my code:
esphome: name: spa includes: - spa_reader.h
libraries: - rlogiacco/CircularBuffer
esp32: board: m5stack-atom # M5Stack Atom board type framework: type: arduino
logger:
uart: id: spa_uart_bus tx_pin: 26 # TX pin for RS485 rx_pin: 32 # RX pin for RS485 data_bits: 8 parity: NONE stop_bits: 1 baud_rate: 115200 rx_buffer_size: 128
sensor:
platform: custom lambda: |- auto spareader = new SpaReader(id(spa_uart_bus)); App.register_component(spareader); return {spareader->temp_sensor, spareader->target_temp_sensor, spareader->jet1_sensor, spareader->jet2_sensor, spareader->blower_sensor, spareader->light_sensor, spareader->restmode_sensor, spareader->highrange_sensor, spareader->hour_sensor, spareader->minute_sensor, spareader->heater_sensor, spareader->circ_sensor};
sensors:
api: encryption: key: "8YU/4MW6ZGOBdHAkjQ162Qqw1t9p10I61jkVaPJx2Cs="
ota:
wifi: ssid: !secret wifi_ssid password: !secret wifi_password
ap: ssid: "Spa Fallback Hotspot" password: abc123456
captive_portal:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have uploaded the spa_reader.h in the ESP folder in Home Assistant. I have tried changing the TX and RX.
This is my code:
esphome:
name: spa
includes:
- spa_reader.h
libraries:
- rlogiacco/CircularBuffer
esp32:
board: m5stack-atom # M5Stack Atom board type
framework:
type: arduino
Enable logging
logger:
RS485 UART setup
uart:
id: spa_uart_bus
tx_pin: 26 # TX pin for RS485
rx_pin: 32 # RX pin for RS485
data_bits: 8
parity: NONE
stop_bits: 1
baud_rate: 115200
rx_buffer_size: 128
sensor:
platform: custom
lambda: |-
auto spareader = new SpaReader(id(spa_uart_bus));
App.register_component(spareader);
return {spareader->temp_sensor, spareader->target_temp_sensor, spareader->jet1_sensor, spareader->jet2_sensor, spareader->blower_sensor, spareader->light_sensor, spareader->restmode_sensor, spareader->highrange_sensor, spareader->hour_sensor, spareader->minute_sensor, spareader->heater_sensor, spareader->circ_sensor};
sensors:
unit_of_measurement: °C
accuracy_decimals: 1
unit_of_measurement: °C
accuracy_decimals: 1
api:
encryption:
key: "8YU/4MW6ZGOBdHAkjQ162Qqw1t9p10I61jkVaPJx2Cs="
ota:
password: "295a6285dced02ded6968199b969d84c"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Spa Fallback Hotspot"
password: abc123456
captive_portal:
The text was updated successfully, but these errors were encountered: