Giter VIP home page Giter VIP logo

Comments (6)

marvinroger avatar marvinroger commented on June 4, 2024 1

@jpmens This is what I wanted to do, an additional device_id field in the JSON configuration file. It would adhere to the following rules, as stated in the convention:

Each device must have a unique device ID. This ID MAY be composed of lowercase letters from a to z, numbers from 0 to 9, and it MAY contain -, but MUST NOT start or end with a -.

@hoalex an Homie.useNameForPublish(true); method would not fit as Homie sketches are meant to be portable.

Does it sound good to both of you?

from homie-esp8266.

marvinroger avatar marvinroger commented on June 4, 2024 1

This will land in 1.3.0! The new device_id field is at the root of the JSON config.

from homie-esp8266.

jpmens avatar jpmens commented on June 4, 2024

name can contain a descriptive text such as Light relay in living room, which is great because it allows, say, a Web interface to display this clearly. As an avid hater of white space in topic names (and file system path names) I think this would lead to some confusion. (Of course people could suppress white space in name if they don't want it (light-relay-in-living-room).

I tend to think this calls for an additional setting (sub_topic ?) which ought to be in the configuration, as we did for base_topic in #44.

My 0.01c 😄

from homie-esp8266.

jpmens avatar jpmens commented on June 4, 2024

👍

from homie-esp8266.

hoalex avatar hoalex commented on June 4, 2024

Sounds perfect 👍 Thanks for looking into it!

from homie-esp8266.

marvinroger avatar marvinroger commented on June 4, 2024

Released!

from homie-esp8266.

Related Issues (20)

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.