Jump to content

v3.1.16 in beta, re-writes of most nodes


sjenkins

Recommended Posts

Posted (edited)

Decided to start the rewrite ; mostly this is modernising the coding of the plugin, but a few features come along for the ride.

Controller:

  • re-written to be more pythonic
  • Status which is meant to indicate if connected was never working right, on at start, off with stop / delete.  If you monitor, it can be useful.  I use it on folders to switch between my beta, local, and production versions of programs.
  • Monitor the control version of ST for heartbeat.
  • added NumberofNodes which may be useful to some

Garage

  • In the continuing roll out of control, the garage device added it for motor, motion, obstruction.
  • will get its rewrite next version, lots to do here

Switch

  • added TOGGLE, as a receive command, the send will be DON or DOF, let me know how useful
  • re-written to be more pythonic, logging should be much less noisy
  • persistence is now using the polyglot management instead of individual files
  • for those watching, the first run will use the file data then store it with polyglot, then delete the file

Generic / dimmer

  • didn't add a TOGGLE but could; thoughts?
  • same as switch for re-write, logging, persistence
  • much improved behaviour from 3.1.15 for remembering on level, won't get messed up by double off or fast off/on

Temp / TempC / TempRC (curious if anyone uses these still?)

  • poly persistence
  • re-write, logging
  • consolidated into a single file, still configured as separate, for backward compatibility

TEST IT OUT & Give me some feedback people!!!

 

VERSION = '3.1.16'
"""
3.1.16
DONE fix controller ST "status" on at start, off at stop / delete, "control" still heartbeat
DONE garage send CMDs, motor, motion, obstruction ; get naming consistent
DONE standardize startup sequence
DONE rewrite checkParams, Discovery
DONE add NumberOfNodes
DONE switch/generic/dimmer/temp(R/C): nodes use polyglot persistence, delete old db files
DONE swtich cmd TOGGLE add
DONE consolidate temp, tempC, tempRC into one module
TODO refactor function naming
TODO refactor garage, fix persistence, sse client

3.1.15
DONE generic, dimmer, change ST to OL, memory of level for DON, DFON/DFOF, command

3.1.14
DONE commands for switches, generic, dimmer, garage

Edited by sjenkins
temp updates, title

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...