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.
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:
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.
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)
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.
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.
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
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.