Adds new plugin [paulkjr/okie-motor] by paulkjr · Pull Request #12387 · hacs/default · GitHub
Skip to content

Adds new plugin [paulkjr/okie-motor] - #12387

Open
paulkjr wants to merge 1 commit into
hacs:masterfrom
paulkjr:add-okie-motor
Open

paulkjr wants to merge 1 commit into
hacs:masterfrom
paulkjr:add-okie-motor

Conversation

@paulkjr

@paulkjr paulkjr commented Oct 21, 2026 •

Copy link
Copy Markdown

Checklist

  • I've read the publishing documentation.
  • I've added the HACS action to my repository.
  • (For integrations only) I've added the hassfest action to my repository.
  • The actions are passing without any disabled checks in my repository.
  • I've added a link to the action run on my repository below in the links section.
  • I've created a new release of the repository after the validation actions were run successfully.

Links

Link to current release: https://github.com/paulkjr/okie-motor/releases/tag/v0.52.5
Link to successful HACS action (without the ignore key): https://github.com/paulkjr/okie-motor/actions/runs/39642062607
Link to successful hassfest action (if integration): <>

@hacs-bot

hacs-bot Bot commented Oct 21, 2026

Copy link
Copy Markdown

@frenck frenck left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @paulkjr, thanks for submitting Okie Motor.

We read the whole release, split into parts. A few things in the card bundle need to change before it can go in:

  1. Entity attributes into innerHTML without escaping. src/okie-energy.js lines 401-404 build the energy server rows from the raw attributes of sensor.energy_server_power (a.cpu_package_w, sys.uptime_s, sys.disk_used_gb, sys.load1 and more) and render them as HTML. Attributes are whatever the entity reports. Please escape every interpolated value, or build these rows with textContent.

  2. clipsUrl goes into an iframe src and a link href without a scheme check. src/okie-cameras.js line 163 returns cfg.clipsUrl as is, and lines 493 and 565 use it as the iframe src and the clips link. Settings can be imported, so a javascript: value from a shared settings file runs in the Home Assistant origin. Please accept only http: and https: (or relative paths) and drop anything else.

  3. Editing a thermostat schedule drops the user's other actions. In src/okie-thermo-sched.js lines 382-388, saving an edit replaces the whole Scheduler timeslot with the card's own actions, so anything else the user had in that slot is gone. Please merge your thermostat action into the existing slot's actions instead of replacing them.

Two smaller things, not blockers:

  • The weather location lookup sends the home coordinates to bigdatacloud.net by default. Please mention it in the README, or make it opt-in.
  • The optional iOS app in ios-app/ writes the access and refresh tokens into the localStorage of every page its web view loads, including third-party links (DashboardView.swift lines 104-113 and 323-324). HACS doesn't ship it, but your users will build it, so it is worth limiting that to your own Home Assistant origin.

Once that's addressed, push a new release and re-request review.

../Frenck

                       

Blogging my personal ramblings at frenck.dev
Or subscribe to my free bi-weekly newsletter: frenck.dev/newsletter

@hacs-bot
hacs-bot Bot marked this pull request as draft October 24, 2026 18:02
@paulkjr

paulkjr commented Oct 24, 2026

Copy link
Copy Markdown
Author

@paulkjr
paulkjr marked this pull request as ready for review October 24, 2026 23:39

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants