Jump to content
View in the app

A better way to browse. Learn more.

Tinkerunity

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Geschrieben

Hi,

 

connected a LED to A0 of the IO16 bricklet. Using the Brick Viewer and setting the Port Direction to Output, the LED can be turned on and off via changing the value Low to High vv.

 

Tried to setup the same by using openHAB, but the LED is not reacting.

Any hints what is worng in below openHAB Testconfiguration having Port A0 as output outa0?

 

#openhab.cfg

tinkerforge:hosts=127.0.0.1

tinkerforge:io16.uid=gkM

tinkerforge:io16.type=bricklet_io16

tinkerforge:io16.debouncePeriod=100

tinkerforge:io16outa0.uid=gkM

tinkerforge:io16outa0.subid=outa0

tinkerforge:io16outa0.type=io_actuator

tinkerforge:io16outa0.defaultState=true

 

#items

Number TF_AmbientLight "Luminance [%.0f lx]" { tinkerforge="uid=mdh" }

Switch outa0 "LED A0" { tinkerforge="uid=gkM, subid=outa0" }

 

#rules

import org.openhab.core.library.types.*

 

rule "LED Switch"

when

Item outa0 changed

then

if (outa0.state == true)

sendcommand(outa0, false)

else

sendcommand(outa0, true)

end

 

NOTE: Instead of true false also tried ON OFF.

 

#sitemap

sitemap tf_weather_station label="Weather Station"

{

Frame

{

Text item=TF_AmbientLight

Switch item=outa0

}

}

 

Geschrieben
  • Autor

Removed the rule "LED Switch".

Switching the LED connected to the IO16 Bricklet Port A0 is working fine.

Join the conversation

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

Gast
Reply to this topic...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.