Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


mazzurra

Member
  • Posts

    31
  • Joined

  • Last visited

About mazzurra

Profile information

  • Country
    Australia
  • Gateway/s
    Home Center 2

Recent Profile Visitors

160 profile views

mazzurra's Achievements

Learner

Learner (2/8)

1

Reputation

1

Community Answers

  1. Thanks @I.Srodka, was exactly what i was looking for.
  2. Yes I would like to change the scene icon using code. For example when I run the scene I want to change the icon of the scene. Would this be possible?
  3. Hello, Is it possible to change a scene icon in LUA? The scene is just a simple toggle: local switchState = tonumber(fibaro:getValue(59, "value")) == 1 if switchState then fibaro:call(59, "turnOff") else fibaro:call(59, "turnOn") end Thanks
  4. Apologies, just realized I didn't have a "HomeTable" setup. Commented that out and all good now.
  5. Very handy scene thanks. I seem to get this error every time i try using it. Am I doing something wrong?
  6. My Hikviison NVR doesn't support MJPEG unfortunately. I would much prefer the lower network load of H.264 anyway. I will probably purchase the Doorbird, as it has all these features, but might just wait to see what Fibaro has to offer. Does anyone have a link to the Fibaro ANZ video?
  7. I have the Mobotix T25 here in Australia. I run the Fibaro app with a fixed android device on my wall downstairs and on an Apple upstairs. While the device is good is doesn't integrate with Fibaro very well at all and I just run the Mobotix app in the background for doorbell ringing. I have a sneaky suspicion this Fibaro intercom has some heavy involvement from Mobotix. It has so many similarities with heavy delays and big price tag which sounds very Mobotix like. I really hope the intercom supports H.264 Onvif (Mobotix doesn't) so it can integrate into universal camera recording systems.
  8. Actron are no real help at all. The only issue about my implementation is it still works over the cloud, so it's slightly delayed, but doesn't bother me at all.
  9. SUCCESS! So for anyone that would like to know you can't use HTTPS in "virtual devices" only "scenes". The following worked for me to turn the Actron ON: local http = net.HTTPClient() jsonTable = {DA={amOn=true}} jsonString = json.encode(jsonTable) http:request('https://actron.ninja.is/rest/v0/device/XXXX?user_access_token=XXXX',{ options = { method = "PUT", data = jsonString, headers = { [ 'Content-Type' ] = 'application/json' } }, success = function(response) fibaro:debug(response.data) end, error = function(err) fibaro:debug("Error: " ..err) end })
  10. Would the below be the correct way of defining a payload request? When I Debug I receive the error [ERROR] 13:55:12: line 3: '}' expected near ' local jsonTable = {"DA":{"amOn":true,"tempTarget":20,"fanSpeed":0,"mode":0}}
  11. also do I have to put in "headers" some how? The below snipet is taken from the website used to control the A/C. var url = this.ServerUrl() + '/device/' + this.GUID() + ninja.Authentication.getAuthSlug(); data = { DA: data }; xhr.open('PUT', url, true); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(JSON.stringify(data));
  12. Thanks for your help so far but I can't seem to get it working. Does anything look wrong with the code below? local http = Net.FHttp("https://actron.ninja.is", 443); jsonTable = {"amOn":true,"tempTarget":24,"fanSpeed":2,"mode":1} response, status, errorCode = http:PUT('/rest/v0/device/ACONNECTXXXX_0_2_4?user_access_token=XXXX', jsonTable) fibaro:debug("Response = "..response) fibaro:debug("Status = "..status) fibaro:debug("ErrorCode = "..errorCode)
  13. This seems to be the snipped of code preforming actuation: /** * Actuate this device with the specified data. * @param {string/number} data Value to actuate the Ninja Blocks cloud with. * @param {function} callback Callback called with (error, response) signature * */ this.Emit = function(data, callback) { var url = this.ServerUrl() + '/device/' + this.GUID() + ninja.Authentication.getAuthSlug(); data = { DA: data }; if (ninja.Options.debug) console.log("Emit: ", this.GUID(), this.Options.block.Options.server); var xhr = Ninja.Utilities.CreateXHR(function(error, response) { if (callback) { callback(error, response); } }, this); xhr.open('PUT', url, true); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(JSON.stringify(data)); return true; }; this.Options = { name: "", type: Ninja.DeviceTypes.UNDEFINED, deviceId: 0, vendor: 0, port: 0, block: undefined, value: undefined, subdevices: [], onActuate: function() { throw(".onActuate() not implemented."); } }; How do I implement? There is no local service so what do I enter when creating the virtual device?
×
×
  • Create New...