Code Monkey home page Code Monkey logo

node-red-contrib-pimatic's Introduction

node-red-contrib-pimatic

Node-Red Node Types for Pimatic connectivity.

Overview

Available nodes types are:

  • Rule Action calls a pimatic rule action. The action expression may contain variables to include items of the input message object, for example dim light-1 to ${ payload }. Note, it is only possible to call a single action.
  • Device Action calls a pimatic device action. Optionally, a parameter name and value can be provided to be passed along with the invocation.
  • Get Variable gets the value of the specified pimatic variable and sends it to the output channel when the value has changed or when some input has been received.
  • Set Variable sets the received msg.payload or a given value as the new value for the configured pimatic variable.
  • Controller is a supporting node type not shown in the palette. It manages the web socket connection to a pimatic server. As part of the configuration for instances of the aforementioned node types it is possible to select or create an controller. Thus, it is possible to interact with multiple pimatic servers within a flow.

History

See Release History.

Credits

This project has been inspired by Jos Hendriks' work on pimatic-node-red, a pimatic plugin to provide an embedded node-red instance as part of pimatic.

The pimatic.png icon has been created based on the content of the pimatic artworks project published under Creative Commons license.

License

Copyright (c) 2017-2019, Marcus Wittig and contributors. All rights reserved.

License: Apache-2.0.

node-red-contrib-pimatic's People

Contributors

mwittig avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

node-red-contrib-pimatic's Issues

Variable not found error

Hi,

For some reason the module gives an error on finding some variables: variable not found
It is available in pimatic, and it is spelled exactly like in pimatic (so case-sensitive).

edit: the green status mark 'ok' is shown next to the variable though

What can I do to debug this?

Thanks

Pimatic <get variable> node overwrites the complete msg payload

It seems that the Pimatic node overwrites the full input msg payload. So values from earlier operations need to be stored in other variables to be available for later steps. Would it be possible to preserve the data or implement an option like it is done in the dashboard switch node:
image

[device action node] changeStateTo false not working

Hi, i noticed the following problem:
I created the following test flow and wanted to change the state of an homeduino device using the changeStateTo function. TurnOn and TurnOff works fine.

image

The "On" funtion works like a charm, but the "Off" action also returns an payload of true, which should be false.

Here are both debug msg objects:
On:

{"payload":true,"success":true,"deviceId":"homeduino_sofalampe","action":"changeStateTo","time":1513179804893,"_msgid":"bdc9d67c.423628"}

Off:

{"payload":true,"success":true,"deviceId":"homeduino_sofalampe","action":"changeStateTo","time":1513179820124,"_msgid":"d27e9d9e.2d816"}

And here is the whole flow config:

[{"id":"2e72786a.43f558","type":"device action","z":"e9863530.4f9458","controller":"9ced8722.da2f88","deviceId":"homeduino_sofalampe","action":"changeStateTo","parameterName":"state","parameterValue":"true","messageOnError":true,"name":"","x":520,"y":120,"wires":[["5fb08c9d.ac2ac4"]]},{"id":"19c23dd9.ad5a42","type":"device action","z":"e9863530.4f9458","controller":"9ced8722.da2f88","deviceId":"homeduino_sofalampe","action":"changeStateTo","parameterName":"state","parameterValue":"false","messageOnError":true,"name":"","x":520,"y":180,"wires":[["a7843241.f5772"]]},{"id":"5fb08c9d.ac2ac4","type":"debug","z":"e9863530.4f9458","name":"","active":true,"console":"false","complete":"true","x":770,"y":120,"wires":[]},{"id":"df75bd84.e8af2","type":"inject","z":"e9863530.4f9458","name":"An","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":270,"y":120,"wires":[["2e72786a.43f558"]]},{"id":"a4008769.6c4a18","type":"inject","z":"e9863530.4f9458","name":"Aus","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":270,"y":180,"wires":[["19c23dd9.ad5a42"]]},{"id":"a7843241.f5772","type":"debug","z":"e9863530.4f9458","name":"","active":true,"console":"false","complete":"true","x":770,"y":180,"wires":[]},{"id":"9ced8722.da2f88","type":"controller","z":"","name":"PI3","protocol":"http","host":"127.0.0.1","port":"80","path":"","username":"xxx","password":"xxx"}]

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on all branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because we are using your CI build statuses to figure out when to notify you about breaking changes.

Since we did not receive a CI status on the greenkeeper/initial branch, we assume that you still need to configure it.

If you have already set up a CI for this repository, you might need to check your configuration. Make sure it will run on all new branches. If you don’t want it to run on every branch, you can whitelist branches starting with greenkeeper/.

We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.