Comments (5)
@titof2375: Yes it's possible. You can use any homeassistant Sensors for temperature and the thermostat to regulate the temperature as an add-on in esphome. Here is my working config with home assistant sensor reading "sensor.meter_og_temperature":
(Sorry for the formatting of the comments all '#' lead to bold)
`substitutions:
esp32_name: "esphome-klimaanlage"
device_description: "M5-Atom Stack mit RS485 Interface"
esphome:
name: ${esp32_name}
comment: ${device_description}
external_components:
- source: github://lanwin/esphome_samsung_ac@main
esp32:
board: m5stack-atom
framework:
type: esp-idf
version: recommended
uart:
tx_pin: GPIO19
rx_pin: GPIO22
baud_rate: 9600
parity: EVEN
Enable logging
logger:
level: DEBUG
Enable Home Assistant API
api:
encryption:
key: !secret ha_key
reboot_timeout: 60s
ota:
password: !secret ota_key
safe_mode: true
num_attempts: 1
wifi:
ssid: !secret iot_ssid
password: !secret iot_password
domain: .iot.local
reboot_timeout: 5min
ap:
ssid: "Klimaanlage Fallback Hotspot"
password: !secret wifi_ap_password
esp32_ble_tracker:
scan_parameters:
interval: 1100ms
window: 1100ms
active: true
bluetooth_proxy:
active: true
sensor:
-
platform: homeassistant
id: TemperaturOG
accuracy_decimals: 1
entity_id: sensor.meter_og_temperature -
platform: homeassistant
id: SollwertOG2
accuracy_decimals: 1
entity_id: input_number.heizung_sollwert_og2
Home Assistant switches usw.
switch:
- platform: safe_mode
internal: true
name: use_safe_mode
button:
- platform: restart
name: Restart $esp32_name
samsung_ac:
debug_log_messages: false # logs all messages - only for debugging
debug_log_messages_raw: false # logs the raw message bytes from all messages - only for debugging
devices:
- address: "20.00.00" # for non NASA it sould be like "c4"
# Each property below are optional - choose what you want to use.
# You could use the ESPHome/Homeassist climate control
climate:
name: "ESP32 mit RS485 Verbindung zur Klimaanlage"
id: klima
visual:
min_temperature: 16 °C
max_temperature: 26 °C
temperature_step: 0.1 °C
# And/or use seperate controls/sensors
room_temperature:
name: Klima_Ist_Temperatur
target_temperature:
name: Klima_Soll_Temperatur
power:
name: Klima_power
mode:
name: Klima_mode
# Only supported on NASA devices
room_humidity:
name: Klima_Luftfeuchtigkeit
climate: #https://esphome.io/components/climate/climate_ir.html?highlight=ir
Example climate controller with presets
https://esphome.io/components/climate/thermostat.html
- platform: thermostat
visual:
min_temperature: 16 °C
max_temperature: 26 °C
temperature_step: 0.1 °C
name: "Thermostat Regler auf ESP32 für Klimaanlage"
sensor: TemperaturOG
min_heating_off_time: 600s
min_heating_run_time: 1h
min_cooling_off_time: 600s
min_cooling_run_time: 1h
min_idle_time: 180s
heat_deadband: 0.2 °C
heat_action:- climate.control:
id: klima
mode: HEAT
fan_mode: AUTO
swing_mode: 'Off'
target_temperature: 26°C
#target_temperature: !lambda |-
#return id(SollwertOG2).state;
#ESP_LOGI("main", "Value of my sensor: %f", id(SollwertOG2).state);
cool_action: - climate.control:
id: klima
mode: COOL
fan_mode: AUTO
swing_mode: 'Off'
target_temperature: 20°C
idle_action: - climate.control:
id: klima
mode: 'OFF'
target_temperature: 16°C`
- climate.control:
from esphome_samsung_ac.
Are these the sensors that you declare for the Samsung AC air conditioning driver?
from esphome_samsung_ac.
Yes, the first one is a temperature sensor, the second one is meant to be the setpoint value, but not used yet.
from esphome_samsung_ac.
so the samsung air conditioning takes the temperature from the sensor.meter_og_temperature probe
from esphome_samsung_ac.
not directly - the thermostat takes the temperature and regulates the samsung hvac. (connected by the id: klima) At least the behavior is the same.
from esphome_samsung_ac.
Related Issues (20)
- A list of supported devices HOT 5
- [Non-NASA] Control of Unit No Longer Working With Recent Changes HOT 18
- Device EOL - M5STACK ATOM RS-485 Kit HOT 2
- A lot of CRC errors -- is this expected? HOT 1
- Random current temperature readouts HOT 1
- Did I fry my 485 unit? HOT 6
- file example.yaml is all in errors when you try to get the firmware HOT 2
- [NASA] Automatic Cleaning HOT 12
- [Non-NASA] Unable to control AC HOT 11
- 120Ω needed on Nasa? - physical layer
- [NASA] Override Temperature Readings Of Indoor Unit HOT 2
- Control Samsung AC Windfree mode HOT 1
- Control Samsung AC Quiet mode HOT 1
- Control Samsung AC Purify mode HOT 1
- does this register contain COP or SCOP?
- [NASA] Control Beep Sound HOT 28
- [Non-NASA] Unable to control AC since 7 Feb update HOT 30
- Error with idf framework HOT 1
- [NASA] [ESP-IDF] room temperature not working anymore HOT 3
- How to do versioning? HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esphome_samsung_ac.