Be a part of CinemaVision today! Once registered and logged in, you will have access to public chat and your own private messenger, you can view and contribute guides, collaborate on the forums, review downloads, give reputation to your fellow members, contribute content and so much more. Registering is quick and completely free, so what are you waiting for? Sign In Sign Up
If you are running OpenHAB you can easily integrate with a one line HTTP GET in an action file. This is a very basic method but could get you up and running within a few mins. Example:
Create a file named lights_before_trivia.txt
Place this line in the document and replace with the following information:
INSERT_LAN_IP = The IP of your OpenHAB server INSERT_PORT = The Port in which your OpenHAB server is on NAME_OF_DIM/SW = Put the name of the Switch or Dimmer you want to send the command to Example: Light_HomeTheater_Back_Sw VALUE = If your sending to a SWITCH use either ON or OFF, if you are sending to a DIMMER use any value between 0 - 100.
Save the file and place in your actions command folder on your Kodi system where you have the CinemaVision folders. Then within the Sequence editor add the action. In the example above I placed this right before the trivia slides start. Once you place the action in, point it to your newly created .txt file. Save your sequence and run it, your lights should now react within the sequence.
** NOTE: If you have security enabled within OpenHAB you will need to add an additional line to your action file. The 2nd line in the action file will need to be the following: HEADERS: {"Authorization": "Basic=XXXXX"} - You can generate the Basic=XXXX by using the Postman plugin for Chrome. Using Postman you can place in your user credentials and the header line will generate for you. You can than place this within the header line and you will than be able to send your JSON request lines with authorization turned on. Here is an example of how the action file can look
** NOTE:Currently when sending a new brightness the dimmer will be a quick change and not a gradual.** Currently working on a smoother dim which might be done using a rule, but if you want to be up and running with OpenHAB quick heres one way to do it. I'll post my working example of a smoother dim once I have it.
Edited by DexDeadly use the code button to avoid formatting
If you are running OpenHAB you can easily integrate with a one line HTTP GET in an action file. This is a very basic method but could get you up and running within a few mins. Example:
Create a file named lights_before_trivia.txt
Place this line in the document and replace with the following information:
INSERT_LAN_IP = The IP of your OpenHAB server
INSERT_PORT = The Port in which your OpenHAB server is on
NAME_OF_DIM/SW = Put the name of the Switch or Dimmer you want to send the command to Example: Light_HomeTheater_Back_Sw
VALUE = If your sending to a SWITCH use either ON or OFF, if you are sending to a DIMMER use any value between 0 - 100.
Example:
Save the file and place in your actions command folder on your Kodi system where you have the CinemaVision folders. Then within the Sequence editor add the action. In the example above I placed this right before the trivia slides start. Once you place the action in, point it to your newly created .txt file. Save your sequence and run it, your lights should now react within the sequence.
** NOTE: If you have security enabled within OpenHAB you will need to add an additional line to your action file. The 2nd line in the action file will need to be the following:
HEADERS: {"Authorization": "Basic=XXXXX"} - You can generate the Basic=XXXX by using the Postman plugin for Chrome. Using Postman you can place in your user credentials and the header line will generate for you. You can than place this within the header line and you will than be able to send your JSON request lines with authorization turned on. Here is an example of how the action file can look
** NOTE:Currently when sending a new brightness the dimmer will be a quick change and not a gradual.** Currently working on a smoother dim which might be done using a rule, but if you want to be up and running with OpenHAB quick heres one way to do it. I'll post my working example of a smoother dim once I have it.
Edited by DexDeadlyuse the code button to avoid formatting
Share this post
Link to post
Share on other sites