Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Non Nasa test in esphome (Home Assistant) #151

Closed
wifi75 opened this issue Jul 29, 2024 · 24 comments
Closed

Non Nasa test in esphome (Home Assistant) #151

wifi75 opened this issue Jul 29, 2024 · 24 comments

Comments

@wifi75
Copy link

wifi75 commented Jul 29, 2024

External device: AJ040FCJ2EH
two internal device: AR12HSSDBWKNEU

hi, I'm trying to configure the yaml file in home assistant with esphome, when I perform the validation the following error appears... why?

image

@brazoayeye
Copy link

Post the yaml file

Double check the row with # use @main if you want the latest development (possibly unstable?)
Have you tried @main ?

@wifi75
Copy link
Author

wifi75 commented Jul 29, 2024

Post the yaml file

Double check the row with # use @main if you want the latest development (possibly unstable?) Have you tried @main ?

## BASIC CONFIGURATION
esphome:
  name: samsung_ac
  friendly_name: Climate

# Select chipset and board configuration - in this case M5STACK
esp32:
  board: m5stack-atom

# [Optional] - Create web interface where you can control the AC from your web browser (without Home Assistant)
web_server:
  port: 80

# Enable logging
logger:
  level: INFO
  logs:
    component: ERROR # Remove the "Your component takes to long to respond warning"

# Enable native API for communication with Home Assistant, this can be removed if you do not plan to use it with Home Assistant
api:

# Enable OTA firmware update, you will be able to upload the firmware over WiFi without connecting the device by cables
ota:

# Setup your WiFi password
wifi:
  ssid: "WiFi" # !!!CHANGE ME!!!
  password: "My WiFi Password" # !!!CHANGE ME!!!

captive_portal:

# Specify pins used by the board to comunicate with RS485 board - in this case M5STACK
uart:
  tx_pin: GPIO19   # Use GPIO26 for ATOM Tail485 
  rx_pin: GPIO22   # Use GPIO32 for ATOM Tail485
  # For older devices it could also be 2400. But you should start with 9600.
  baud_rate: 9600
  parity: EVEN

## SAMSUNG AC CONFIGURATION

# Import custom component from GitHub
external_components:
  - source: github://lanwin/esphome_samsung_ac@stable # use @main if you want the latest development (possibly unstable?)
    components: [samsung_ac]

# Configuration of AC component
samsung_ac:

  # For NonNASA devices the following option can be enabled to prevent the device from sleeping when idle. This allows
  # values like internal and external temperature to continue to be tracked when the device isn't in use.
  non_nasa_keepalive: true

  # Capabilities configure the features alle devices of your AC system have (all parts of this section are optional). 
  # All capabilities are off by default, you need to enable only those your devices have.
  # You can override or configure them also on a per devices basis (look below for that).
  capabilities: 
    vertical_swing: true
    horizontal_swing: true
    # Presets define special AC modes like Windfree and so on. 
    # The following modes are available: sleep, quiet, fast, longreach, windfree
    presets: 
      # short version
      quiet: true
      # long version - allows to locilize names
      quiet:
        name: "Makes no sound"
        enabled: true

  devices:
    # Skip everything below on the first run! Wait a minute, watch your ESPHome logs until you see the "Discovered devices:" section and you see some addresses:
    # For NASA devices it looks like this (with 4 indoor devices): 
    #   Indoor:  20.00.00, 20.00.01, 20.00.02, 20.00.03
    # For NonNASA devices it looks like this (with 2 indoor devices): 
    #   Indoor:  00, 01
    # You need this addresses for the the sections below. If you see only a "-" then you should visit the troubleshooting section in the readme. 

    # Repeat everything below for each indoor device address you see in your logs
    - address: "20.00.00" # Indoor device address 
      # Each property below is optional (climate, room_temperature etc.) - you can delete those which you dont need.
      # For the names we suggest to choose a combination of room name and the thing it controls. 

      # Configures/overrides the capabilites for this devices. 
      # Look above for all options.
      capabilities:
        horizontal_swing: false # This device have no h swing. 

      # Creates climate control in Home Assistant. A climate control combines multiple of the controls below (like temperature, mode etc.)
      climate:
        name: "Kitchen climate"

      # The controls directly below are all included in the climate control. Its adviced to only add the climate control and skip the extra controls.
      room_temperature:
        name: "Kitchen temperature"
      target_temperature:
        name: "Kitchen target temperature"
      power:
        name: "Kitchen power"
      mode:
        name: "Kitchen mode"

      # If your AC sits near or inside the ceiling, the reported room temperature is often a little bit heigher then whats 
      # measured below. This property can be used to correct that value.
      room_temperature_offset: -1.4

      # Only supported on NASA devices
      room_humidity:
        name: "Kitchen humidity"

      # Only supported on NASA based heatpumps
      water_temperature:
        name: "Warm water"
      water_target_temperature:
        name: "Hot Water Target Temperature"
      outdoor_temperature: # Should be used with outdoor device address
        name: "Outdoor temperature"

@brazoayeye
Copy link

Have you tried to change
source: github://lanwin/esphome_samsung_ac@stable
to
source: github://lanwin/esphome_samsung_ac@main

@wifi75
Copy link
Author

wifi75 commented Jul 29, 2024

Have you tried to change source: github://lanwin/esphome_samsung_ac@stable to source: github://lanwin/esphome_samsung_ac@main

ok changed, but now :

image

@brazoayeye
Copy link

Right, maybe also @lanwin can change the example from
ota:

to

ota:
  platform: esphome

New espHome version require that.
let me know if it work with the new like

@wifi75
Copy link
Author

wifi75 commented Jul 29, 2024

Right, maybe also @lanwin can change the example from ota:

to

ota:
  platform: esphome

New espHome version require that. let me know if it work with the new like

Yess now is ok see picture
!!!
Now I can order everything from Aliexpress, and then I'll see if it works on my two air conditioners.

a question since I have two climates inside, should I use only one yaml file or one for internal units?

can you help me setup the file for two internal units?
image

@brazoayeye
Copy link

For sure I will help, if I can.
I don't have experience regarding non nasa devices but I think that the lower layer is always a RS485 so probably only one ESP will be enough. I suppose you will connect the ESP to the same network used by the compressor and the two internal units.

Regarding the hardware be sure to buy a device with auto direction detection, because manual direction is not supported by ESPHome

@brazoayeye
Copy link

The hardware seems right.

For first setup just remove all devices and wait to check if address are shown. You should find at least 3 devices (maybe +1 for the wifi embedded device?) , then add 3 times - - address: part. But it's easier if you post first analysis results before proceeding.

@wifi75
Copy link
Author

wifi75 commented Jul 29, 2024

Ok then, when you have connected the hardware it will publish the results.
I found out where I should get them from?
Yes, the two indoor units have built-in WiFi

@lanwin
Copy link
Collaborator

lanwin commented Aug 9, 2024

Right, maybe also @lanwin can change the example from ota:

to

ota:
  platform: esphome

New espHome version require that. let me know if it work with the new like

Its now changed

@wifi75
Copy link
Author

wifi75 commented Aug 24, 2024

@brazoayeye
the device has been delivered, already configured with esphome, now deco connect it. what do I have to do then to insert the logs here? can you explain to me?

thanks

@wifi75
Copy link
Author

wifi75 commented Aug 31, 2024

@lanwin

hello device connected:
I have two internal ac installed and only one esp device installed!
here is my log:


INFO ESPHome 2024.8.1
INFO Reading configuration /config/esphome/samsung.yaml...
INFO Starting log output from 192.168.1.124 using esphome API
INFO Successfully connected to samsungsoggiorno @ 192.168.1.124 in 0.058s
INFO Successful handshake with samsungsoggiorno @ 192.168.1.124 in 0.014s
[18:31:51][I][app:100]: ESPHome version 2024.8.1 compiled on Aug 31 2024, 18:30:05
[18:32:09][W][samsung_ac:099]: Last transmission too long ago. Reset RX index.
[18:32:26][W][samsung_ac:099]: Last transmission too long ago. Reset RX index.
[18:32:27][W][samsung_ac:099]: Last transmission too long ago. Reset RX index.
[18:32:39][W][samsung_ac:099]: Last transmission too long ago. Reset RX index.
[18:32:41][W][samsung_ac:099]: Last transmission too long ago. Reset RX index.
[18:32:42][W][samsung_ac:099]: Last transmission too long ago. Reset RX index.
[18:32:49][W][samsung_ac:099]: Last transmission too long ago. Reset RX index.
[18:33:08][W][samsung_ac:099]: Last transmission too long ago. Reset RX index.
[18:33:14][W][samsung_ac:099]: Last transmission too long ago. Reset RX index.
[18:33:16][W][samsung_ac:099]: Last transmission too long ago. Reset RX index.
[18:33:17][W][samsung_ac:099]: Last transmission too long ago. Reset RX index.
[18:33:19][W][samsung_ac:099]: Last transmission too long ago. Reset RX index.
[18:33:33][W][samsung_ac:099]: Last transmission too long ago. Reset RX index.
[18:33:45][W][samsung_ac:099]: Last transmission too long ago. Reset RX index.
[18:34:01][W][samsung_ac:099]: Last transmission too long ago. Reset RX index.

![image](https://github.com/user-attachments/assets/fc1ef937-0a91-41c2-9b91-b1940a156d93)

@wifi75
Copy link
Author

wifi75 commented Aug 31, 2024

here is my full conficuration:

# This example provides a basic configuration and description based on the M5STACK components
# For further configuration you should visit the ESPHome docs https://esphome.io
# Every line starting with a # can be removed.

## BASIC CONFIGURATION
esphome:
  name: samsungsoggiorno
  friendly_name: Climate

# Select chipset and board configuration - in this case M5STACK
esp32:
  board: m5stack-atom

# [Optional] - Create web interface where you can control the AC from your web browser (without Home Assistant)
web_server:
  port: 80

# Enable logging
logger:
  level: INFO
  logs:
    component: ERROR # Remove the "Your component takes to long to respond warning"

# Enable native API for communication with Home Assistant, this can be removed if you do not plan to use it with Home Assistant
api:

# Enable OTA firmware update, you will be able to upload the firmware over WiFi without connecting the device by cables
ota:
  platform: esphome

# Setup your WiFi password
wifi:
  ssid: "WiFi" # !!!CHANGE ME!!!
  password: "12345678901aab" # !!!CHANGE ME!!!

captive_portal:

# Specify pins used by the board to comunicate with RS485 board - in this case M5STACK
uart:
  tx_pin: GPIO19   # Use GPIO26 for ATOM Tail485 
  rx_pin: GPIO22   # Use GPIO32 for ATOM Tail485
  # For older devices it could also be 2400. But you should start with 9600.
  baud_rate: 9600
  parity: EVEN

## SAMSUNG AC CONFIGURATION

# Import custom component from GitHub
external_components:
  - source: github://lanwin/esphome_samsung_ac@main # use @main if you want the latest development (possibly unstable?)
    components: [samsung_ac]

# Configuration of AC component
samsung_ac:

  # For NonNASA devices the following option can be enabled to prevent the device from sleeping when idle. This allows
  # values like internal and external temperature to continue to be tracked when the device isn't in use.
  non_nasa_keepalive: true

  # Capabilities configure the features alle devices of your AC system have (all parts of this section are optional). 
  # All capabilities are off by default, you need to enable only those your devices have.
  # You can override or configure them also on a per devices basis (look below for that).
  capabilities: 
    vertical_swing: true
    horizontal_swing: true
    # Presets define special AC modes like Windfree and so on. 
    # The following modes are available: sleep, quiet, fast, longreach, windfree
    presets: 
      # short version
      quiet: true
      # long version - allows to locilize names
      # quiet:
      #  name: "Makes no sound"
      #  enabled: true

  devices:
    # Skip everything below on the first run! Wait a minute, watch your ESPHome logs until you see the "Discovered devices:" section and you see some addresses:
    # For NASA devices it looks like this (with 4 indoor devices): 
    #   Indoor:  20.00.00, 20.00.01, 20.00.02, 20.00.03
    # For NonNASA devices it looks like this (with 2 indoor devices): 
    #   Indoor:  00, 01
    # You need this addresses for the the sections below. If you see only a "-" then you should visit the troubleshooting section in the readme. 

    # Repeat everything below for each indoor device address you see in your logs
    - address: "20.00.00" # Indoor device address 
      # Each property below is optional (climate, room_temperature etc.) - you can delete those which you dont need.
      # For the names we suggest to choose a combination of room name and the thing it controls. 

      # Configures/overrides the capabilites for this devices. 
      # Look above for all options.
      capabilities:
        horizontal_swing: false # This device have no h swing. 

      # Creates climate control in Home Assistant. A climate control combines multiple of the controls below (like temperature, mode etc.)
      climate:
        name: "Soggiorno climate"

      # The controls directly below are all included in the climate control. Its adviced to only add the climate control and skip the extra controls.
      room_temperature:
        name: "Soggiorno temperatura"
      target_temperature:
        name: "Soggiorno target temperatura"
      power:
        name: "Soggiorno power"
      mode:
        name: "Soggiorno mode"

      # If your AC sits near or inside the ceiling, the reported room temperature is often a little bit heigher then whats 
      # measured below. This property can be used to correct that value.
      room_temperature_offset: -1.4

      # Only supported on NASA devices
      #room_humidity:
      #  name: "Kitchen humidity"

      # Only supported on NASA based heatpumps
      #water_temperature:
      #  name: "Warm water"
      #water_target_temperature:
      #  name: "Hot Water Target Temperature"
      #outdoor_temperature: # Should be used with outdoor device address
      #  name: "Outdoor temperature"

@wifi75
Copy link
Author

wifi75 commented Aug 31, 2024

this log after change boud to 2400

logs_samsung-ac_run.txt

@lanwin
Copy link
Collaborator

lanwin commented Sep 2, 2024

That looks good. So far.

@wifi75
Copy link
Author

wifi75 commented Sep 2, 2024

That looks good. So far.

can you help me set up the config to make my two internal units work?

@lanwin
Copy link
Collaborator

lanwin commented Sep 2, 2024

The system discovered only ine internal unit.

[12:42:25][C][samsung_ac:054]: Discovered devices:
[12:42:25][C][samsung_ac:055]: Outdoor: c8
[12:42:25][C][samsung_ac:056]: Indoor: 00

Did both indoor units are connected to the same outdoor unit or did you have two outdoor units?

@wifi75
Copy link
Author

wifi75 commented Sep 2, 2024

The system discovered only ine internal unit.

[12:42:25][C][samsung_ac:054]: Discovered devices:
[12:42:25][C][samsung_ac:055]: Outdoor: c8
[12:42:25][C][samsung_ac:056]: Indoor: 00

Did both indoor units are connected to the same outdoor unit or did you have two outdoor units?

both on one external unitboth on one external unit

@wifi75
Copy link
Author

wifi75 commented Sep 2, 2024

this is my configuration and I have Two internal and only one external,
can help me to configure it?

# This example provides a basic configuration and description based on the M5STACK components
# For further configuration you should visit the ESPHome docs https://esphome.io
# Every line starting with a # can be removed.

## BASIC CONFIGURATION
esphome:
  name: samsungsoggiorno
  friendly_name: Climate

# Select chipset and board configuration - in this case M5STACK
esp32:
  board: m5stack-atom

# [Optional] - Create web interface where you can control the AC from your web browser (without Home Assistant)
web_server:
  port: 80

# Enable logging
logger:
  level: DEBUG
  logs:
    component: ERROR # Remove the "Your component takes to long to respond warning"

# Enable native API for communication with Home Assistant, this can be removed if you do not plan to use it with Home Assistant
api:

# Enable OTA firmware update, you will be able to upload the firmware over WiFi without connecting the device by cables
ota:
  platform: esphome

# Setup your WiFi password
wifi:
  ssid: "WiFi" # !!!CHANGE ME!!!
  password: "1234567890aaa" # !!!CHANGE ME!!!

captive_portal:

# Specify pins used by the board to comunicate with RS485 board - in this case M5STACK
uart:
  tx_pin: GPIO19   # Use GPIO26 for ATOM Tail485 
  rx_pin: GPIO22   # Use GPIO32 for ATOM Tail485
  # For older devices it could also be 2400. But you should start with 9600.
  baud_rate: 9600
  parity: EVEN

## SAMSUNG AC CONFIGURATION

# Import custom component from GitHub
external_components:
  #- source: github://lanwin/esphome_samsung_ac@stable
  - source: github://lanwin/esphome_samsung_ac@main # use @main if you want the latest development (possibly unstable?)
    components: [samsung_ac]

# Configuration of AC component
samsung_ac:
  # Prints the parsed message data to the log
  debug_log_messages: true
  # Prints the binary message data (HEX encoded) to the log
  debug_log_messages_raw: true

  # For NonNASA devices the following option can be enabled to prevent the device from sleeping when idle. This allows
  # values like internal and external temperature to continue to be tracked when the device isn't in use.
  non_nasa_keepalive: true

  # Capabilities configure the features alle devices of your AC system have (all parts of this section are optional). 
  # All capabilities are off by default, you need to enable only those your devices have.
  # You can override or configure them also on a per devices basis (look below for that).
  capabilities: 
    vertical_swing: true
    horizontal_swing: true
    # Presets define special AC modes like Windfree and so on. 
    # The following modes are available: sleep, quiet, fast, longreach, windfree
    presets: 
      # short version
      quiet: true
      # long version - allows to locilize names
      # quiet:
      #  name: "Makes no sound"
      #  enabled: true

  devices:
    # Skip everything below on the first run! Wait a minute, watch your ESPHome logs until you see the "Discovered devices:" section and you see some addresses:
    # For NASA devices it looks like this (with 4 indoor devices): 
    #   Indoor:  20.00.00, 20.00.01, 20.00.02, 20.00.03
    # For NonNASA devices it looks like this (with 2 indoor devices): 
    #   Indoor:  00, 01
    # You need this addresses for the the sections below. If you see only a "-" then you should visit the troubleshooting section in the readme. 

    # Repeat everything below for each indoor device address you see in your logs
    - address: "00" # Indoor device address 
      # Each property below is optional (climate, room_temperature etc.) - you can delete those which you dont need.
      # For the names we suggest to choose a combination of room name and the thing it controls. 

      # Configures/overrides the capabilites for this devices. 
      # Look above for all options.
      capabilities:
        horizontal_swing: false # This device have no h swing. 

      # Creates climate control in Home Assistant. A climate control combines multiple of the controls below (like temperature, mode etc.)
      climate:
        name: "Soggiorno climate"

      # The controls directly below are all included in the climate control. Its adviced to only add the climate control and skip the extra controls.
      room_temperature:
        name: "Soggiorno temperatura"
      target_temperature:
        name: "Soggiorno target temperatura"
      power:
        name: "Soggiorno power"
      mode:
        name: "Soggiorno mode"

      # If your AC sits near or inside the ceiling, the reported room temperature is often a little bit heigher then whats 
      # measured below. This property can be used to correct that value.
      room_temperature_offset: -1.4

      # Only supported on NASA devices
      #room_humidity:
      #  name: "Kitchen humidity"

      # Only supported on NASA based heatpumps
      #water_temperature:
      #  name: "Warm water"
      #water_target_temperature:
      #  name: "Hot Water Target Temperature"
      #outdoor_temperature: # Should be used with outdoor device address
      #  name: "Outdoor temperature"

@lanwin
Copy link
Collaborator

lanwin commented Sep 2, 2024

This has nothing todo with the configuration. "Discovered devices:" should print a second unit when there is a second that is talking in the bus.

Can you please check the wiring on your outdoor unit? Maybe your outdoor unit has a separate bus for each indoor unit. But I am not sure, since nobody else has that.

@wifi75
Copy link
Author

wifi75 commented Sep 2, 2024

Owner

then I check if the external unit has a double bus, however not even the single internal unit works..I have no control..

@lanwin
Copy link
Collaborator

lanwin commented Sep 3, 2024

Owner

I have no control..

Please check #127 this is related to that.

@wifi75
Copy link
Author

wifi75 commented Sep 4, 2024

Owner

I have no control..

Please check #127 this is related to that.

Hi, I don't understand what I have to do...

Repository owner locked and limited conversation to collaborators Sep 19, 2024
@lanwin lanwin converted this issue into discussion #179 Sep 19, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants