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


  • 0

Virtual Device on / off Switch


Question

Posted

Hello Guys

 

I am very new in the Fibaro World. At the Moment i migrate my smart home from Homematic to Fibaro HC2. 

 

My Problem is now, that i will change all devices in the next few month. Now i am searching for a way to control my homematic devices over HC2.

 

For testing i use a homeotic relay switch where a light is connected. 

 

I can control the devices over Http requests. 

 

I created a virtual device with 2 buttons. 

 

Button 1. turns on the light

Homematic = Net.FHttp("10.23.0.10")HWSReponse = Homematic:GET("/addons/xmlapi/statechange.cgi?ise_id=2454&new_value=true")

 
Button 2. turns off the light
 
Homematic = Net.FHttp("10.23.0.10") HWSReponse = Homematic:GET("/addons/xmlapi/statechange.cgi?ise_id=2454&new_value=false")
 
So far this works. 
 
My Problem is that i have no idea how to create the main loop. With the string:
 
/addons/xmlapi/state.cgi?datapoint_id=2458
 
i get the information, if the light is on or off. The Output in the browser looks like this. 
 
<state>
<datapoint ise_id="2458" value="false"/>
</state>
 
Has anybody a tip for me, how to realize this. 
 
My second problem is, that in the HC2 Dashboard is under the VD only one Button, first when i click on the device i see both. Is there a way to display both in the dashboard?
 
 
Regards Stefan
 
 

1 answer to this question

Recommended Posts

  • 0
  • Inquirer
  • Posted

    Hello Guys,

     

    i solved my problem. The Problem is the answer. I realized it now over an other api to the Homematic. Now have created a view VD an i can controll my shutters and my lights from the Homematic Central. 

     

    Regards Stefan

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...