Become a leader in the IoT community!
Join our community of embedded and IoT practitioners to contribute experience, learn new skills and collaborate with other developers with complementary skillsets.
Join our community of embedded and IoT practitioners to contribute experience, learn new skills and collaborate with other developers with complementary skillsets.
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()
@Middleware & OS
Browse other Product Reviews tagged
CONTRIBUTE TO THIS THREAD