Smarthome: ScriptExtensionManager.get("voice") return NULL instead of VoiceManagerImpl

Created on 3 Jul 2018  路  1Comment  路  Source: eclipse-archived/smarthome

Hi Folks,
I currently develop some libraries to write ESH and OpenHAB automation rules in groovy. In this process, I noticed an bug in the ScriptExtensionWrapper class. According to the getTypes() method, the following objects should be loadable via the ScriptExtensionManagerWrapper.get() method:

  • voice
  • audio
  • DOWN
  • CLOSED
  • FileUtils
  • StringType
  • DECREASE
  • rules
  • OFF
  • StopMoveType
  • StringUtils
  • INCREASE
  • OpenClosedType
  • things
  • UP
  • URLEncoder
  • HSBType
  • events
  • ON
  • itemRegistry
  • STOP
  • ir
  • UpDownType
  • PercentType
  • FilenameUtils
  • OPEN
  • DateTimeType
  • Command
  • OnOffType
  • MOVE
  • State
  • DecimalType
  • PointType
  • IncreaseDecreaseType
  • File
  • items
  • Condition
  • TriggerType
  • Action
  • ActionType
  • Configuration
  • ActionHandlerFactory
  • ruleRegistry
  • SimpleActionHandler
  • automationManager
  • SimpleRule
  • ModuleType
  • Trigger
  • SimpleConditionHandler
  • ConditionHandlerFactory
  • Visibility
  • Rule
  • ConfigDescriptionParameter
  • SimpleTriggerHandler
  • TriggerHandlerFactory

However, when I try to load the first two objects (voice or audio), NULL get returned instead the VoiceManagerImpl or AudioManagerImpl Class. For all other objects, the correct instance is given back. I am using openHAB 2.4.0 Build 1305.

Cheers,
Philipp

Automation Voice bug

Most helpful comment

whoops, there is a nice typo that went unnoticed so far...
I quickly pushed a fix - too easy once identified. Thanks for the concise analysis!
Once merged, it will reach openHAB snapshots after the next ESH stable is built - as usual.

>All comments

whoops, there is a nice typo that went unnoticed so far...
I quickly pushed a fix - too easy once identified. Thanks for the concise analysis!
Once merged, it will reach openHAB snapshots after the next ESH stable is built - as usual.

Was this page helpful?
0 / 5 - 0 ratings