Giter Site home page Giter Site logo

Comments (10)

PatchworkBoy avatar PatchworkBoy commented on May 31, 2024 1

Might have chance to look into this tomorrow... Stay tuned...!

from homebridge-edomoticz.

JonyBCN avatar JonyBCN commented on May 31, 2024

I also configured as a switch dummy shutter (switchtype 3) I also appears on Eve as a normal shutter switch instead.

{
"ActTime" : 1463310954,
"ServerTime" : "2016-05-15 13:15:54",
"Sunrise" : "06:34",
"Sunset" : "21:02",
"result" : [
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "Open",
"Description" : "",
"Favorite" : 0,
"HardwareID" : 9,
"HardwareName" : "Persiana terraza",
"HardwareType" : "Dummy (Does nothing, use for virtual switches only)",
"HardwareTypeVal" : 15,
"HaveDimmer" : true,
"HaveGroupCmd" : true,
"HaveTimeout" : false,
"ID" : "000140E3",
"Image" : "Light",
"IsSubDevice" : false,
"LastUpdate" : "2016-05-15 09:52:38",
"Level" : 0,
"LevelInt" : 0,
"MaxDimLevel" : 100,
"Name" : "Persiana terraza",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"Status" : "Open",
"StrParam1" : "",
"StrParam2" : "",
"SubType" : "Switch",
"SwitchType" : "Blinds",
"SwitchTypeVal" : 3,
"Timers" : "false",
"Type" : "Light/Switch",
"TypeImg" : "blinds",
"Unit" : 1,
"Used" : 1,
"UsedByCamera" : false,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "148"
}
],
"status" : "OK",
"title" : "Devices"
}

from homebridge-edomoticz.

PatchworkBoy avatar PatchworkBoy commented on May 31, 2024

Replace the current index.js file for the plugin with the one from this repo... that should enable SwitchTypeVal 3 blinds - let me know if they operate as expected.

Should be a case of (assuming edomoticz is at /usr/local/lib/node_modules/homebridge-edomoticz):

cd /usr/local/lib/node_modules/homebridge-edomoticz
sudo wget https://raw.githubusercontent.com/PatchworkBoy/homebridge-eDomoticz/master/index.js

from homebridge-edomoticz.

JonyBCN avatar JonyBCN commented on May 31, 2024

Ready. Same result, the modules of the blind remain as "Light / switch".

from homebridge-edomoticz.

JonyBCN avatar JonyBCN commented on May 31, 2024

Hello again. after restarting and check I saw that the file had been saved as index.js.1 I deleted the index.js and I've replaced by raw, and got the following error:
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister
[6/20/2016, 7:33:06 PM] ====================
[6/20/2016, 7:33:06 PM] ERROR LOADING PLUGIN homebridge-edomoticz:
[6/20/2016, 7:33:06 PM] SyntaxError: Unexpected token {
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:413:25)
at Object.Module._extensions..js (module.js:452:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Plugin.load (/usr/local/lib/node_modules/homebridge/lib/plugin.js:65:22)
at Server. (/usr/local/lib/node_modules/homebridge/lib/server.js:112:14)
at Array.forEach (native)
[6/20/2016, 7:33:06 PM] ====================
[6/20/2016, 7:33:06 PM] No plugins found. See the README for information on installing plugins.
[6/20/2016, 7:33:06 PM] Loaded config.json with 0 accessories and 1 platforms.
[6/20/2016, 7:33:06 PM] ---
[6/20/2016, 7:33:06 PM] Loading 1 platforms...
/usr/local/lib/node_modules/homebridge/lib/api.js:106
throw new Error("The requested platform '" + name + "' was not registered by any plugin.");
^

Error: The requested platform 'eDomoticz' was not registered by any plugin.
at API.platform (/usr/local/lib/node_modules/homebridge/lib/api.js:106:13)
at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:263:45)
at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:71:36)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10)
at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:434:26)
at Object.Module._extensions..js (module.js:452:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:475:10)

from homebridge-edomoticz.

PatchworkBoy avatar PatchworkBoy commented on May 31, 2024

Sorry... wget the file again - have just fixed some ridiculously basic coding errors on my behalf!

from homebridge-edomoticz.

JonyBCN avatar JonyBCN commented on May 31, 2024

Well, there is progress. Fibaro controlled blinds still identified as lights, but a virtual blind previously appeared as light now appears as blind!

from homebridge-edomoticz.

PatchworkBoy avatar PatchworkBoy commented on May 31, 2024

OK - wget again - have just enabled SWTypeVal 13 which should sort the Fibaro ones - let me know what functionality does / doesn’t work as nothing to test with here so I’ve guessed a bit...!

NB: They may operate in reverse, or they may not, or they simply may not operate at all!

from homebridge-edomoticz.

JonyBCN avatar JonyBCN commented on May 31, 2024

Wow. Just, WOW. It works perfectly. Thanks a lot, for a few days proves that such Siri behaves and will communicate any incident.

from homebridge-edomoticz.

PatchworkBoy avatar PatchworkBoy commented on May 31, 2024

If you wget the file one last time, any Total Consumption or Current Consumption Electric meters should now comply to the Elgato Eve sensortypes so that they are id’d correctly within Eve, along with support for Location sensors and Occupancy sensors. See: 69ff8eb

from homebridge-edomoticz.

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.