Coder Social home page Coder Social logo

Comments (3)

udo1toni avatar udo1toni commented on July 30, 2024

If you are using openHAB2.5.4, you're probably using the mqtt2 binding. My complete mfi thing (6ch):

     Thing topic mFi "mFi" @ "mqtt" {
          Type number : ch1Power "Leistung" [ stateTopic="homie/Steckdosen/port1/power" ]
          Type number : ch1Volt  "Spannung" [ stateTopic="homie/Steckdosen/port1/voltage" ]
          Type number : ch1Energy  "Energy" [ stateTopic="homie/Steckdosen/port1/energy" ]

          Type number : ch2Power "Leistung" [ stateTopic="homie/Steckdosen/port2/power" ]
          Type number : ch2Volt  "Spannung" [ stateTopic="homie/Steckdosen/port2/voltage" ]
          Type number : ch2Energy  "Energy" [ stateTopic="homie/Steckdosen/port2/energy" ]

          Type number : ch3Power "Leistung" [ stateTopic="homie/Steckdosen/port3/power" ]
          Type number : ch3Volt  "Spannung" [ stateTopic="homie/Steckdosen/port3/voltage" ]
          Type number : ch3Energy  "Energy" [ stateTopic="homie/Steckdosen/port3/energy" ]

          Type number : ch4Power "Leistung" [ stateTopic="homie/Steckdosen/port4/power" ]
          Type number : ch4Volt  "Spannung" [ stateTopic="homie/Steckdosen/port4/voltage" ]
          Type number : ch4Energy  "Energy" [ stateTopic="homie/Steckdosen/port4/energy" ]

          Type number : ch5Power "Leistung" [ stateTopic="homie/Steckdosen/port5/power" ]
          Type number : ch5Volt  "Spannung" [ stateTopic="homie/Steckdosen/port5/voltage" ]
          Type number : ch5Energy  "Energy" [ stateTopic="homie/Steckdosen/port5/energy" ]

          Type number : ch6Power "Leistung" [ stateTopic="homie/Steckdosen/port6/power" ]
          Type number : ch6Volt  "Spannung" [ stateTopic="homie/Steckdosen/port6/voltage" ]
          Type number : ch6Energy  "Energy" [ stateTopic="homie/Steckdosen/port6/energy" ]
      }

As I don't want to switch the sockets at all, I' did'nt create switch channels, but that would be

Type switch : ch1Switch "Schalter" [ commandTopic="homie/Steckdosen/port1/relay/set", stateTopic="homie/Steckdosen/port1/relay",on="1",off="0" ]
Type switch : ch1Lock "Sperre" [ commandTopic="homie/Steckdosen/port1/lock/set", stateTopic="homie/Steckdosen/port1/lock",on="1",off="0" ]

The lock is to disable switching at all. I have set this to ON to prevent unwanted poweroff for connected devices (as these are my servers... I'm using the mfi only for measurement)

from mpower-tools.

spyrito79 avatar spyrito79 commented on July 30, 2024

Hi
thanks for your reply.
I tried to copy your configuration on the folder things of openhab 2.5.4 but when i have entered in openhab GUI via web browser i didn't found your configuration. Anyway I set the mqtt binding and mqtt broker first but i don't know how to go on because , as I told you, the folder of your "things" didn't appear.
In the end I also installed openhab 3.0 but the result is the same.
May you help me with Openhab and mpower configurations with a teamwiever session?
Obviously I'm going to pay for your disturb.
If you are interest send me an email on [email protected]
or write me via telegram looking for @root_toor

from mpower-tools.

udo1toni avatar udo1toni commented on July 30, 2024

Maybe better to change to the official openHAB community: https://community.openhab.org/ mpower is not that special ;) in the end it's just another mqtt device.

from mpower-tools.

Related Issues (19)

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.