Replies: 7 comments 21 replies
-
|
text_sensor do that Easy to split with templates - platform: template
sensors:
rtu1_vol_l1:
friendly_name: "RTU1 Voltage L1"
value_template: >-
{{ states('sensor.rtu1_x108').split(',')[0] | int / 10 }}
unit_of_measurement: "V"
rtu1_cur_l1:
friendly_name: "RTU1 Current L1"
value_template: >-
{{ states('sensor.rtu1_x108').split(',')[1] | int / 10 }}
unit_of_measurement: "A"Just an example of another component |
Beta Was this translation helpful? Give feedback.
-
|
@martgras hex to decimal? Ascii not possible without lambda? |
Beta Was this translation helpful? Give feedback.
-
|
@martgras run tools black esphome/components/modbus_controller/ flake8 esphome/components/modbus_controller/ script/clang-format script/clang-tidy esphome/components/modbus_controller/ script/ci-suggest-changes |
Beta Was this translation helpful? Give feedback.
-
|
If you install Everytime you try commit it run tools first |
Beta Was this translation helpful? Give feedback.
-
|
run |
Beta Was this translation helpful? Give feedback.
-
|
Maybe on_value for tariff? if 1 "A" |
Beta Was this translation helpful? Give feedback.
-
|
About generic function codes? Or a full raw command request. I have two special functions:
Maybe text sensor? |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
-
We can use raw to send all hex response
And split with templates on home assistant
AA,BB,CC,...
Beta Was this translation helpful? Give feedback.
All reactions