Skip to content

hobbyquaker/flowerpower2mqtt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flowerpower2mqtt

mqtt-smarthome

Publish values from Parrot Flower Power to MQTT

This project just connects Sandeep Mistry's awesome Node module to MQTT - all credits belong to him.

Getting started

You need Node.js. Since this depends on Noble you have to fulfill the prerequisites documented in the Noble readme. On apt based Linux a sudo apt-get install bluetooth bluez-utils libbluetooth-dev libudev-dev should be enough.

Then install flowerpower2mqtt: sudo npm install flowerpower2mqtt -g and take a look at the available command line options by typing flowerpower2mqtt --help

MQTT Topics & Payloads

Topic and payload structure follows mqtt-smarthome architecture. Default prefix is "flower".

These topics are published in a configurable interval with retain flag set to true

  • <prefix>/status/<device>/soilTemperature (°C)
  • <prefix>/status/<device>/soilMoisture (%)
  • <prefix>/status/<device>/soilElectricalConductivity (mS/cm)
  • <prefix>/status/<device>/airTemperature (°C)
  • <prefix>/status/<device>/sunlight
  • <prefix>/status/<device>/batteryLevel (%)
  • <prefix>/status/<device>/led

These topics are subscribed. You should publish to them with retain flag set to false

  • <prefix>/set/<device>/led - If you publish a message to this topic the LED will start fading up and down for given number of seconds. Accepts plain and JSON payload.

Todo

  • connection handling - keep connection alive for configurable timeout
  • enable/disable live mode
  • fw 1.1 support - calibrated values

License

Copyright (c) 2015 Sebastian Raff [email protected] (https://github.com/hobbyquaker)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Publish values from Parrot Flower Power to MQTT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published