How to read a response from USB/RS485 dongle - is HA scrap for nothing?

still the same:

2022-09-03 19:43:09.432 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.integration
2022-09-03 19:43:09.432 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.integration
2022-09-03 19:43:09.433 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.serial
2022-09-03 19:43:09.501 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.hassio
2022-09-03 19:43:09.508 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.template
2022-09-03 19:43:09.510 INFO (MainThread) [homeassistant.components.serial.sensor] Serial device /dev/ttyUSB0 connected
2022-09-03 19:43:09.511 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.template
2022-09-03 19:43:09.513 DEBUG (MainThread) [homeassistant.components.sensor] Not adding entity Version because it's disabled
2022-09-03 19:43:09.513 DEBUG (MainThread) [homeassistant.components.sensor] Not adding entity Newest version because it's disabled
2022-09-03 19:43:09.513 DEBUG (MainThread) [homeassistant.components.sensor] Not adding entity CPU percent because it's disabled
2022-09-03 19:43:09.514 DEBUG (MainThread) [homeassistant.components.sensor] Not adding entity Memory percent because it's disabled
2022-09-03 19:43:09.514 DEBUG (MainThread) [homeassistant.components.sensor] Not adding entity Version because it's disabled
2022-09-03 19:43:09.514 DEBUG (MainThread) [homeassistant.components.sensor] Not adding entity Newest version because it's disabled
2022-09-03 19:43:13.349 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.energy
2022-09-03 19:43:13.406 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.utility_meter
2022-09-03 19:43:13.407 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.utility_meter
2022-09-03 19:43:13.407 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.utility_meter
2022-09-03 19:43:13.407 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.utility_meter
2022-09-03 19:43:13.460 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.modbus
2022-09-03 19:43:14.110 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.forecast_solar
2022-09-03 19:43:14.117 DEBUG (MainThread) [homeassistant.components.sensor] Not adding entity Estimated power production - next hour because it's disabled
2022-09-03 19:43:14.117 DEBUG (MainThread) [homeassistant.components.sensor] Not adding entity Estimated power production - next 12 hours because it's disabled
2022-09-03 19:43:14.117 DEBUG (MainThread) [homeassistant.components.sensor] Not adding entity Estimated power production - next 24 hours because it's disabled

There is nothing logged about sending at all? You could modify this for more info on failures to read:

And do some testing. It only appears that it logs on a successful line processed, you could log when serial_read is triggered and also on an error in processing the data, In some implementations I have done the data being returned acted like ASCII string but had extended codes in it which would fail.

Now I’m little bit lost what to do and where :frowning:
Please can you explain what to do with this py file ?

First question …
Do you know python at all?

no, sorry
I’m not experienced with python

OK, well first can you send me the logger lines you have now


logger:
  default: critical
  logs:
    homeassistant.components.sensor: debug
    homeassistant.components.serial: debug
    homeassistant.components.sensor.serial: debug
    homeassistant.components.shell_command: debug


And you get nothing in the logs when you send the command? I would say that is odd. You are testing by sending the command correct? I would use Dev Tools/Services:

I assume you restarted the system after the second change to the logging too.

It is likely you might have a permissions issue. When you are monitoring the send and receive you are ikely NOT the user “homeassistant” and you are the user “homeassistant” when you are executing the command inside home assisnat. You have to make sure the “homeassistant” user is in a group that can read/write to that port.

yes, restarted after each modification. Yes log is done after click on the button for command sending.

send command is relly working correct, I can see that command was sent

Regarding permissions. Not sure what you mean and how to check. For HA I’m a administrator.
I’m using this home assistant version :
ODROID - Home Assistant (home-assistant.io)

Is this for some audio component system or ?

This communication I need for control of main unit for individual room temperature control

OK. You may wish to ask the person here, they had other issues but got so far and had the same problem. As I stated at the end, it could be permissions in reading from the port. I would ask them if they solved their issue:

I have a Dayton Audio Dax88 multizone amplifier but I also use core on a Linux OS (Linux Mint) and had to add some permissions to homeassistant user but it all runs flawlessly. But that is all built int python code and not just a general serial entity.

So complete Home Assistant is useless when he isn’t able do a basic functions read/write ports ?

For me looks like no chance to get working = throw away home assistant

I can … I have two networked Dax88 Amplifiers with RS232 to USB which is 15 Audio zones and 7 inputs each plus Wfi, all in Home Assistant. Can turn music on/off in any zone, change inouts, adjust volumes … I have no issues with that entire part of my system.

ok, can we modifiy for my system ?
Any chance to check / modify permissions for usb port ? Use python? use node red ?

I do not know anything about your implementation, mine is raw Linux. But certainly on raw Linux the homeassistant user (the user the system runs as) must be a member of dialout group

ok, your rs232 communication is running via python script implemented in HA?

Python code, but little difference between it and standard serial code posted for you above which is Home Assistant. The difference is building a specific solution or using a generic one.

I know nothing about ODROID mostly because I had several server class machines lying around and could just take one and install Linux Mint and Home Assistant Core, which gives me Linux and many other things I put on same machine … Kodi, VLC, much more. I dot think I would ever go to a canned small box installation.