Giter VIP home page Giter VIP logo

udi-mqtt-poly's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

udi-mqtt-poly's Issues

Flag type does not include the changes to the editor definition

When the new values were added to the Flag type, the editor definition didn't get updated. It still specifies that it should only look at 5 values from the nls file instead of the new 12 supported values.

@therealmysteryman , could you push that change and submit a PR?

Or I could make the change, but I have no real test environment at this time. It's a pretty simple change.

Shelly MQTT

I am not a programmer, but I have tinkered with coding before. I have been trying to get the MQTT Poly to support Shelly devices, and I have been able to look into the differences and similarities against Sonoff / Tasmota devices.

I have a Shelly1 working as far as controlling the ON and OFF functions, but I am trying to add the Temperature sensor information and that has proven more difficult.

Here is a reference of all the commands the device receives and provides, any help would be appreciated:

https://shelly-api-docs.shelly.cloud/#shelly1-1pm-mqtt

Eventually, I would like to get your Poly to support at least these devices:

https://shelly-api-docs.shelly.cloud/#shelly-h-amp-t-mqtt

https://shelly-api-docs.shelly.cloud/#shelly-motion-mqtt

Attached are the files I have modified so far.
MQTT.zip

Missing profile.zip

When I try to install this node server from the UI (after successfully running ./install.sh) it complains it can't find profile.zip. There is profile directory but the node install wants it zipped up.

Ability to support MQTT from sensor that only send numerical value ?

I have created a fork to support sensor using MQTT, that only return a numerical value. I come accross this issue often with device that have support to HA. Instead of returning a structured JSON they only send one message per value. Here an example ( https://github.com/hpeyerl/airthingswave-mqtt )

Not sure if that something you would like to add in the official nodeserver ? Here the class I created. I would prefer running the official release instead of my fork :)

`class MQraw(polyinterface.Node):
def init(self, controller, primary, address, name, device):
super().init(controller, primary, address, name)
self.cmd_topic = device['cmd_topic']
self.on = False

def start(self):
    pass

def updateInfo(self, payload):
    try :
        self.setDriver('ST', int(payload))
    except Exception as ex :
        LOGGER.error('Failed to parse MQTT Payload: {} {}'.format(ex, payload))

def query(self, command=None):
    self.controller.mqtt_pub(self.cmd_topic, '')
    self.reportDrivers()

drivers = [{'driver': 'ST', 'value': 0, 'uom': 56}
          ]   

id = 'MQSR'
hint = [4, 2, 0, 0]
commands = {
        'QUERY': query
           }`

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.