Unfortunately, I know just enough to get myself in trouble.
I’m trying to get the automation HAT to work with Domoticz.
I did the full install from the Github page
I attached a DHT22 to Analog 1 and a water sensor to Analog 2.
Running a script from RPI, I get results but when I run the same script as an Event in Domoticz, I get this log entry:
Error: EventSystem: ModuleNotFoundError: No module named ‘automationhat’
I’m sure I’m not the first person to attempt this; all suggestions gratefully received.
time.sleep(0.1) # short pause after ads1015 class creation recommended
Press CTRL+C to exit.
value = automationhat.analog.one.read()
print("an 1 " + str(value))
value2 = automationhat.analog.two.read()
print("water level " + str(value2))