I’ve been working on integrating some 433Mhz temperature sensors using a command-line script, but I’m running into an issue with getting them to sync with Google Home through the Nabu Casa integration. Here’s what I’ve tried so far:
yaml
sensor:
- platform: command_line
device_class: temperature
name: Living Room Temperature
command: “/config/homewizard/homewizard.sh -t -d Living Room”
unit_of_measurement: “°C” - platform: command_line
device_class: temperature
name: Bedroom Temperature
command: “/config/homewizard/homewizard.sh -t -d Bedroom”
unit_of_measurement: “°C”
However, when I try to add the device_class: temperature option, I get a configuration error:
Invalid config for [sensor.command_line]: [device_class] is an invalid option for [sensor.command_line]. Check: sensor.command_line->device_class. (See ?, line ?).
I’m a bit confused because I thought specifying the device class was necessary for Google Home integration. Has anyone else encountered this issue or found a workaround? I’d love to hear your thoughts or suggestions on how to properly configure these sensors for Google Home.
Cheers,
[Your Name]