Hi,
I use the serial sensor input to read mine Arduino one in JSON style.
But there is noting changed and it doesn’t work anymore. als not after reboot from hassio or the Arduino or reconnect the USB.
Can anyone give me a reason why und maybe a solution?
the log say’s hassio find the Arduino one.
21-05-29 20:46:41 INFO (MainThread) [supervisor.hardware.monitor] Detecting HardwareAction.ADD usb hardware /dev/bus/usb/001/009 21-05-29 20:46:41 INFO (MainThread) [supervisor.hardware.monitor] Detecting HardwareAction.ADD serial hardware /dev/ttyACM0 - /dev/serial/by-id/usb-Arduino__www.arduino.cc__Arduino_Uno_756363131373510150E0-if00
I can read the JSON file with de monitor from the Arduino software:
22:46:32.427 -> {"temperatuur":15.00,"lichtsterkte":4,"regensensor":502,"windsnelheid":0.00}
and de configuration is:
- platform: serial
serial_port: /dev/ttyACM0
baudrate: 9600
- platform: template
sensors:
temperature_sensor:
friendly_name: "Temperatuur"
unit_of_measurement: "°C"
value_template: "{{ state_attr('sensor.serial_sensor', 'temperatuur') }}"
light_sensor:
friendly_name: "lichtsensor"
unit_of_measurement: "Ohm"
value_template: "{{ state_attr('sensor.serial_sensor', 'lichtsterkte') }}"
rain_sensor:
friendly_name: "regen"
unit_of_measurement: "regen"
value_template: "{{ state_attr('sensor.serial_sensor', 'regensensor') }}"
wind_sensor:
friendly_name: "windsensor"
unit_of_measurement: "m/s"
value_template: "{{ state_attr('sensor.serial_sensor', 'windsnelheid') }}"
Mine software version:
System Health
version: core-2021.5.5
installation_type: Home Assistant OS
dev: false
hassio: true
docker: true
virtualenv: false
python_version: 3.8.9
os_name: Linux
os_version: 5.4.83-v8
arch: aarch64
timezone: Europe/Amsterdam
logged_in: false
can_reach_cert_server: ok
can_reach_cloud_auth: ok
can_reach_cloud: ok
host_os: Home Assistant OS 5.13
update_channel: stable
supervisor_version: supervisor-2021.04.3
docker_version: 19.03.15
disk_total: 13.9 GB
disk_used: 8.9 GB
healthy: true
supported: true
board: rpi4-64
supervisor_api: ok
version_api: ok
installed_addons: Terminal & SSH (9.1.3), File editor (5.3.1), Z-Wave JS (0.1.24), Z-Wave JS to MQTT (0.18.0), WireGuard (0.5.1), Samba share (9.5.0), Check Home Assistant configuration (3.7.1), Home Assistant Google Drive Backup (0.104.3), Node-RED (9.1.3)