Automation HAT and Domoticz

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.
Script:
#!/usr/bin/env python3

import time
import automationhat

time.sleep(0.1) # short pause after ads1015 class creation recommended

print("""
Press CTRL+C to exit.
“”")

while True:
value = automationhat.analog.one.read()
print("an 1 " + str(value))
value2 = automationhat.analog.two.read()
print("water level " + str(value2))

time.sleep(0.25)