Hello Bard,
I have a question, how do I see the entity sdm120 created by home assistant? I used your code and on node red I see the electric quantities, but I did not understand how to transfer them to HA. node red is installed on HA. Thank you
Trying to read one register without success. Can some please guide me in the right direction?
My yaml bellow:
esphome:
name: tac2100
friendly_name: tac2100
esp32:
board: esp32dev
framework:
type: esp-idf
# Enable logging
logger:
level: VERBOSE
baud_rate: 0
# Enable Home Assistant API
api:
encryption:
key: "4glSwI9DIHBUsxa7E1PYwDuXosZaP9EpRaauXvEbhUU="
ota:
password: "5c0e9168cbb9223eb6f9bf9ce5737bc9"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Tac2100 Fallback Hotspot"
password: "s6utAx2k0ZMM"
captive_portal:
uart:
id: mod_bus
rx_pin: GPIO17
tx_pin: GPIO16
baud_rate: 9600
stop_bits: 1
modbus:
uart_id: mod_bus
id: modbus1
send_wait_time: 500ms
modbus_controller:
- id: sdm
address: 1 # need to adjust to your setup, standard SDM is 1
modbus_id: modbus1
update_interval: 5s
sensor:
- platform: modbus_controller
modbus_controller_id: sdm
name: "HT NT Import Leistung"
id: "power_factor"
register_type: read
address: 0
value_type: FP32
accuracy_decimals: 1
unit_of_measurement: "V"
device_class: voltage
state_class: measurement
filters:
- multiply: 1.0