Skip to content
New issue

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

Getting no info #10

Open
Doser86 opened this issue Sep 30, 2024 · 0 comments
Open

Getting no info #10

Doser86 opened this issue Sep 30, 2024 · 0 comments

Comments

@Doser86
Copy link

Doser86 commented Sep 30, 2024

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:

    • name: "Current Temp"
      unit_of_measurement: °C
      accuracy_decimals: 1
    • name: "Target Temp"
      unit_of_measurement: °C
      accuracy_decimals: 1
    • name: "Jet1"
    • name: "Jet2"
    • name: "Blower"
    • name: "Light"
    • name: "Rest Mode"
    • name: "High Range"
    • name: "Hour"
    • name: "Minute"
    • name: "Heater"
    • name: "Circulation Pump"

api:
encryption:
key: "8YU/4MW6ZGOBdHAkjQ162Qqw1t9p10I61jkVaPJx2Cs="

ota:

  • platform: esphome
    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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant