npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

pimatic-dummies

v0.3.2

Published

Dummy devices plugin for Pimatic home automation system

Downloads

5

Readme

pimatic-dummies

Pimatic plugin for extra dummy devices

This plugin creates dummy devices to use within Pimatic. Dummy device are mostly used for user interaction via the gui and rule based actions. Dummy devices do not directly control a device.

The plugin supports 3 devices; DummyLedLight, DummyLightRGBW and DummyThermostat

DummyLedLight

The DummyLedLight device is a renewed pimatic-led-light device made useable with node 8+. Its a dimmer actuator device with brightness (the dimmer), color temperature and color (RGB).

The device can be controlled via the gui and via rules.

The rules syntax:

set <DummyLedLight device> to [<hex color> | <colorname> | <temperature> | <$variable>]

DummyLightRGBW

The DummyLightRGBW device is a dimmer actuator device with brightness (the dimmer), color temprature and color (RGB). This device is based on the RaspBee-RGBCT device from treban

The device can be controlled via the gui and via rules.

The rules syntax:

set <DummyLightRGBW device> to [<hex color> | <colorname> | <temperature> | <$variable>]

Color definitions

<hex color> is in the format #[0-F][0-F][0-F][0-F][0-F][0-F] // like #1F00A0

<color names> can be found in color_schema.json

<temperature> must be between 0-100

For the content of the variable, the same color logic applies

DummyThermostat

The DummyThermostat device is a thermostat device with a heat, heatcool and cool mode.

The device can be controlled via the gui and via rules.

The rules syntax:

thermostat <DummyThermostat device>
    heat | heatcool | cool |
    on | eco | off |
    setpoint [<temperature>|<$temp variable>] |
    setpoint low [<temperature>|<$temp variable>] | setpoint high [<temperature>|<$temp variable] |
    program manual | program auto

With this device you get the maximum thermostat functionality in Google Assistant. For that this device can be added in pimatic-assistant. Real heaters and coolers can be connected via rules based on the DummyThermostat variables.

The variables to be set:

- setPoint: The target temperature in heat or cool mode. The first input in gui.
- setPointLow: The low target temperature in heatcool mode. Below that value the heater will turn on. The second input in the gui.
- setPointHigh: The high target temperature in heatcool mode. Above that value the cooler with turn on. The third input in the gui
- eco: Set the whole thermostat in eco state
- power: Switch the thermostat on or off
- mode: The current mode of the heater (heat,heatcool or cool)
- program: The current program  (manual or auto)

The state variables:

- active: True if heater or cooler is on
- heater: True if the heater is on
- cooler: True if the cooler is on

DummyAlarmPanel

The DummyAlarmPanel device is a alarmpanel device for arming and disarming Pimatic alarm systems. DummyAlarmPanel is home-assistant compatible (via pimatic-hass).

edit The device can be controlled via the gui or via rules. This device is compatible with pimatic-hass and will provide an alarm panel in home-assistant.

The buttons explained:

  • 1 button for disarming. In Hass you need to use the configured pin to disarm
  • 3 buttons for arming; arm home, arm away or arm night
  • 4 info-buttons to inform about state transitions

The device config:

pin: The pincode for disarming the alarm in Hass.
  default: "0000"
triggerHome: The Pimatic device id for the alarm trigger in ArmHome state
triggerAway: The Pimatic device id of the alarm trigger in ArmAway state
triggerNight: The Pimatic device id of the alarm trigger in ArmNight state (optional)
armTime: The time (in seconds) before the AlarmPanel goes to Armed
  default: 30
disarmTime: The time (in seconds) before the AlarmPanel goes to Disarmed
  default: 30
pendingTime: The time (in seconds) after a trigger before the AlarmPanel goed to Triggered
  default: 30

The state and status attributes can be used to interface with the Pimatic Alarm system.

- state ["disarmed", "armedhome", "armedaway", "armednight"]
- status ["ready", "arming", "disarming", "pending", "triggered"]

Status 'ready' means that all the other status-buttons are off.

The disarming and arming buttons can be controlled via rules.

The rules syntax: alarmpanel <DummyAlarmPanel device> [disarm | arm home | arm away | arm night]