Error: 'Node not found' when reading Z-Wave door sensor status on SiFive HiFive Unmatched

hey guys am developing a home automation controller using a SiFive HiFive Unmatched with Embedded Linux. The controller should read data from a Z-Wave door sensor, I am using a Z-Wave USB Stick (Model: AEOTEC Z-Stick Gen5, Version: 1.1). i have verified the Z-Wave network configuration and device inclusion, checked the door sensor status and connection, checked that the OpenZWave library is correctly installed and configured. But am getting the error Error reading door status: Node not found. here is my code
import openzwave

zwave_network = openzwave.network.ZWaveNetwork(openzwave.options.ZWaveOption("/dev/ttyUSB0"))
zwave_network.start()

try:
door_sensor = zwave_network.nodes[1]
door_status = door_sensor.get_sensor_binary_value()
print(f"Door Status: {door_status}")
except Exception as e:
print(f"Error reading door status: {e}")
finally:
zwave_network.stop()
import openzwave

zwave_network = openzwave.network.ZWaveNetwork(openzwave.options.ZWaveOption("/dev/ttyUSB0"))
zwave_network.start()

try:
door_sensor = zwave_network.nodes[1]
door_status = door_sensor.get_sensor_binary_value()
print(f"Door Status: {door_status}")
except Exception as e:
print(f"Error reading door status: {e}")
finally:
zwave_network.stop()
@Middleware & OS
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server