-
Notifications
You must be signed in to change notification settings - Fork 2
drivers: add unknown_model #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| -- Hugin workbench draft — fill this in with AI's help. | ||
| DRIVER = { | ||
| id = "unknown_model", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This commit adds a new Useful? React with 👍 / 👎. |
||
| name = "Unknown Model", | ||
| manufacturer = "Unknown", | ||
| version = "0.1.0", | ||
| protocols = { "modbus" }, | ||
| capabilities = { "meter" }, | ||
| tested_models = {}, | ||
| verification_status = "experimental", | ||
| verification_notes = "Drafted via Hugin workbench; not yet verified on live hardware.", | ||
| description = "TODO: one-sentence purpose.", | ||
| connection_defaults = { port = 502, slave_id = 1 }, | ||
| } | ||
|
|
||
| PROTOCOL = "modbus" | ||
|
|
||
| function driver_init(config) | ||
| host.set_make("Unknown") | ||
| host.set_sn(config.serial or "unknown") | ||
| end | ||
|
|
||
| function driver_poll() | ||
| -- TODO: read registers, host.emit("meter", {...}) | ||
| return 5000 | ||
| end | ||
|
|
||
| function driver_command(action, power_w, cmd) end | ||
| function driver_default_mode() end | ||
| function driver_cleanup() end | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new file omits the required sign-convention note, which causes repository verification to fail:
verifyDriverscallsdocumentsSignConventionand rejects drivers missing phrases likesign convention/positive = import(cmd/driverrepo/main.go). Since.github/workflows/verify.ymlenforces this check on every push/PR, this driver cannot pass CI as written.Useful? React with 👍 / 👎.