xsherlock Posted December 26, 2015 at 11:10 AM Share Posted December 26, 2015 at 11:10 AM Ok this question might be very ignorant, but how do you setup multiple masterbricks in the openhab? My house will have 7 separate master bricks (one per room to control the light switches, blinds and provide temp readout) all of them with Eternet POE extensions so they will have separate IP's how do I setup them in the openhab.cfg? What is the suntax for the second masterbrick? first is defined as: tinkerforge:hosts=172.16.2.156 And the second? Quote Link to comment Share on other sites More sharing options...
theo Posted December 26, 2015 at 10:06 PM Share Posted December 26, 2015 at 10:06 PM Hi xsherlock, just add your brickd/master brick configurations space separated to the tinkerforge:hosts line: tinkerforge:hosts=127.0.0.1:4224 192.168.1.50 192.168.1.104 This is an example copied from the openHAB wiki docs: https://github.com/openhab/openhab/wiki/Tinkerforge-Binding#example-configurations Regards, Theo Quote Link to comment Share on other sites More sharing options...
xsherlock Posted December 27, 2015 at 04:41 AM Author Share Posted December 27, 2015 at 04:41 AM Ok that is brutally simple. But can you tell me how openhab knows that particular "XYZ" bricklet is behind given IP address. Does it use multicast to communicate or it is using pooling on the setup phase to determine that? Maciej Quote Link to comment Share on other sites More sharing options...
theo Posted January 8, 2016 at 08:02 PM Share Posted January 8, 2016 at 08:02 PM The binding opens an ipconnection to each configured brickd address and has a virtual device model for the bookkeeping. Quote Link to comment Share on other sites More sharing options...
xsherlock Posted January 13, 2016 at 12:59 PM Author Share Posted January 13, 2016 at 12:59 PM OK, that is smart. I still however have a bit of the problem setting up a second IO16, First is configured as in the examples tinkerforge:io16.uid=w1j tinkerforge:io16.type=bricklet_io16 tinkerforge:io16.debouncePeriod=100 tinkerforge:io16ina0.uid=w1j tinkerforge:io16ina0.subid=ina0 tinkerforge:io16ina0.type=iosensor How do I add the second one? Like that? tinkerforge:io16_second.uid=xxx tinkerforge:io16_second.type=bricklet_io16 tinkerforge:io16_second.debouncePeriod=100 tinkerforge:io16ina0_second.uid=xxx tinkerforge:io16ina0_second.subid=ina0 tinkerforge:io16ina0_second.type=iosensor Quote Link to comment Share on other sites More sharing options...
theo Posted January 13, 2016 at 05:34 PM Share Posted January 13, 2016 at 05:34 PM Looks good to me. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.