Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sensors not showing #3

Open
partach opened this issue Dec 12, 2022 · 1 comment
Open

Sensors not showing #3

partach opened this issue Dec 12, 2022 · 1 comment

Comments

@partach
Copy link

partach commented Dec 12, 2022

Hi,

I have followed the steps and don't see the sensors show up in home assistant.
Made a small python script to check serial and connection and that is working.
My config:

modbus:
 - type: serial
   baudrate: 9600
   bytesize: 8
   method: rtu
   parity: N
   port: /dev/serial0
   stopbits: 1
   close_comm_on_error: false
   retry_on_empty: true
   retries: 10
   delay: 10
   message_wait_milliseconds: 1000
   timeout: 10
# Sensors
sensor:
 - platform: modbus
   registers: !include sdm630_registers.yaml

The logs of HA is also not showing any problem.
Can't figure out what the problem is. Even rebooted the PI to see if that would help.
No matter what i do, the sensors are not visible in HA (nor any modbus device).
Pls help.

@partach
Copy link
Author

partach commented Dec 13, 2022

I managed to fix it.
Problem 1: new YAML templates used by HA (means new SDM30_registers.yaml needed)
Problem 2: using ttyS0 as serial port

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant