Giter Club home page Giter Club logo

iobroker.iot's Introduction

Logo

ioBroker IoT Adapter

Number of Installations Number of Installations NPM version

Test and Release Translation status Downloads

This adapter is ONLY for communication with Amazon Alexa, Google Home and Nightscout. It is not for remote access to your ioBroker instance. Use ioBroker.cloud adapter for that.

This adapter uses Sentry libraries to automatically report exceptions and code errors to the developers. For more details and for information how to disable the error reporting see Sentry-Plugin Documentation! Sentry reporting is used starting with js-controller 3.0.

Settings

To use the iot adapter, you should first register on the ioBroker cloud https://iobroker.pro.

Reference to google API type settings

Intro

Language

If you select "default" language, the smart names of devices and of enumerations will not be translated. If some language specified all known names will be translated into this language. It is done to switch fast between many languages for demonstration purposes.

Place function in names first

Change the order of function and roles in self-generated names:

  • if false: "Room function", e.g. "Living room dimmer"
  • if true: "Function room", e.g. "Dimmer living room"

Concatenate words with

You can define the word which will be placed between function and room. E.g. "in" and from "Dimmer living room" will be "Dimmer in living room".

But it is not suggested doing so, because recognition engine must analyze one more word, and it can lead to misunderstandings.

OFF level for switches

Some groups consist of mixed devices: dimmers and switches. It is allowed to control them with "ON" and "OFF" commands and with percents. If command is Set to 30% and the OFF level is 30% so the switches will be turned on. By command "Set to 25%" all switches will be turned OFF.

Additionally, if the command is "OFF", so the adapter will remember the current dimmer level if the actual value is over or equal to the "30%". Later when the new "ON" command will come, the adapter will switch the dimmer not to 100% but to the level in memory.

Example:

  • Assume, that OFF level is 30%.
  • Virtual device "Light" has two physical devices: switch and dimmer.
  • Command: "set the light to 40%". The adapter will remember this value for dimmer, will set it for "dimmer" and will turn the switch ON.
  • Command: "turn the light off". The adapter will set the dimmer to 0% and will turn off the switch.
  • Command: "turn on the light". dimmer => 40%, switch => ON.
  • Command: "set the light to 20%". dimmer => 20%, switch => OFF. The value for dimmer will not be remembered, because it is bellow OFF level.
  • Command: "turn on the light". dimmer => 40%, switch => ON.

by ON

You can select the behavior of ON command will come for the number state. The specific value can be selected, or the last non-zero value will be used.

Write response to

For every command, the text response will be generated. You can define here the Object ID, where this text must be written to. E.g. sayit.0.tts.text.

Colors

The channel needs 3-5 states with the following roles:

  • level.color.saturation - required for detection of the channel,
  • level.color.hue,
  • level.dimmer,
  • switch - optional,
  • level.color.temperature (optional)
Alexa, set the "device name" to "color"
Alexa, turn the light fuchsia
Alexa, set the bedroom light to red
Alexa, change the kitchen to the color chocolate

Lock

To have the possibility to lock the locks, the state must have the role "switch.lock" and have "native.LOCK_VALUE" to determine the lock state. If you need a separate Value to control the Lock, you can use "native.CONTROL VALUE".

Alexa, is "lock name" locked/unlocked
Alexa, lock the "lock name"

How names will be generated

The adapter tries to generate virtual devices for smart home control (e.g., Amazon Alexa or Google Home).

There are two important enumerations for that: rooms and functions.

Rooms are like: living room, bathroom, sleeping room. Functions are like: light, blind, heating.

The following conditions must be met to get the state in the automatically generated list:

  • the state must be in some "function" enumeration.
  • the state must have role ("state", "switch" or "level.*", e.g. level.dimmer) if not directly included in "functions". It can be that the channel is in the "functions", but state itself not.
  • the state must be writable: common.write = true
  • the state dimmer must have common.type as 'number'
  • the state heating must have common.unit as '°C', '°F' or '°K' and common.type as number

If the state is only in "functions" and not in any "room", the name of state will be used.

The state names will be generated from function and room. E.g. all lights in the living room will be collected in the virtual device living room light. The user cannot change this name, because it is generated automatically. But if the enumeration name changes, this name will be changed too. (e.g., function "light" changed to "lights", so the living room light will be changed to living room lights)

All the rules will be ignored if the state has common.smartName. In this case, just the smart name will be used.

if common.smartName is false, the state or enumeration will not be included in the list generation.

The configuration dialog lets the comfortable remove and add the single states to virtual groups or as single device. Configuration

If the group has only one state, it can be renamed, as for this the state's smartName will be used. If the group has more than one state, the group must be renamed via the enumeration's names.

To create own groups, the user can install "scenes" adapter or create "script" in Javascript adapter.

Replaces

You can specify strings that could be automatically replaced in the device names. E.g., if you set replaces to: .STATE,.LEVEL, so all .STATE and .LEVEL will be deleted from names. Be careful with spaces. If you set .STATE, .LEVEL, so .STATE and .LEVEL will be replaced and not .LEVEL.

Helper states

  • smart.lastObjectID: This state will be set if only one device was controlled by home skill (alexa, google home).
  • smart.lastFunction: Function name (if exists) for which last command was executed.
  • smart.lastRoom: Room name (if exists) for which last command was executed.
  • smart.lastCommand: Last executed command. Command can be: true(ON), false(OFF), number(%), -X(decrease at x), +X(increase at X)
  • smart.lastResponse: Textual response on command. It can be sent to some text2speech (sayit) engine.

Toggle mode

Alexa v3 supports toggle mode. It means that if you say "Alexa, turn on the light" and the light is already on, it will be turned off.

IFTTT

instructions

Google Home

If you see the following error message in the log: [GHOME] Invalid URL Pro key. Status auto-update is disabled you can set states but receive states only manually. So you must generate the URL-Key anew:

Url key

Services

There is a possibility to send messages to cloud adapter. If you call [POST]https://service.iobroker.in/v1/iotService?service=custom_<NAME>&key=<XXX>&user=<USER_EMAIL> und value as payload.

curl --data "myString" https://service.iobroker.in/v1/iotService?service=custom_<NAME>&key=<XXX>&user=<USER_EMAIL>

or

[GET]https://service.iobroker.in/v1/iotService?service=custom_<NAME>&key=<XXX>&user=<USER_EMAIL>&data=myString

If you set in the settings the field teh "White list for services" the name custom_test, and call with "custom_test" as the service name, the state cloud.0.services.custom_test will be set to myString.

You may write "*" in the white list and all services will be allowed.

Here you can find instructions on how to use it with tasker.

IFTTT service is allowed only if an IFTTT key is set.

Reserved names are ifttt, text2command, simpleApi, swagger. These must be used without the custom_ prefix.

You can ask by message the valid URL for service too:

sendTo('iot.0', 'getServiceEndpoint', {serviceName: 'custom_myService'}, result => 
  console.log(JSON.stringify(result)));
  // Output: {"result":
  //  {"url": "https://service.iobroker.in/v1/iotService?key=xxx&user=uuu&service=custom_myService",
  //   "stateID":"iot.0.services.myService",
  //   "warning":"Service name is not in white list"
  //  }}

text2command

You may write text2command in white list, you can send POST request to https://service.iobroker.in/v1/iotService?service=text2command&key=<user-app-key>&user=<USER_EMAIL> to write data into text2command.X.text variable.

You can use GET method too https://service.iobroker.in/v1/iotService?service=text2command&key=<user-app-key>&user=<USER_EMAIL>&data=<MY COMMAND>

X can be defined in settings by the "Use text2command instance" option.

Custom skill

The answers for the custom skill can be processed in two ways:

  • text2command
  • javascript

text2command

if text2command instance is defined in the configuration dialog, so the question will be sent to the instance.

text2command must be configured that the expected phrase will be parsed and the answer will be given back.

Javascript

There is a possibility to process the question directly with the script. It is activated by default if no text2command instance is selected.

If text2command instance is defined, so this instance must provide the answer and the answer from script will be ignored.

The adapter will provide the details in two states with different detail level

  • smart.lastCommand contains the received text including info about the type of query (intent). Example: askDevice Status Rasenmäher
  • smart.lastCommandObj contains an JSON string that can be parsed to an object containing the following information
    • words contain the received words in an array
    • intent contains the type of query. Possible values currently are:
      • v1 Skill: askDevice, controlDevice, actionStart, actionEnd, askWhen, askWhere, askWho
      • v2 Skill: queryIntent when the full said text was captured, controlDevice for fallback with only partial text
    • deviceId contains a deviceId identifying the device the request was sent to, delivered by Amazon, will be empty string if not provided
    • deviceRoom contains a mapped room identifier you can configure in iot admin UI for collected deviceIds
    • sessionId contains a sessionId of the Skill session, should be the same if multiple commands were spoken, delivered by Amazon, will be empty string if not provided
    • userId contains a userId from the device owner (or maybe later the user that was interacting with the skill), delivered by Amazon, will be empty string if not provided
    • userName contains a mapped username you can configure in iot admin UI for collected userIds

More details on how the words are detected and what type of queries the Alexa Custom Skill differentiates, please check https://forum.iobroker.net/viewtopic.php?f=37&t=17452 .

Return result via smart.lastResponse state

The response needs to be sent within 200ms in the state smart.lastResponse, and can be a simple text string or a JSON object. If it is a text string, then this text will be sent as a response to the skill. If the text is a JSON object, then the following keys can be used:

  • responseText needs to contain the text to return to Amazon
  • shouldEndSession is a boolean and controls if the session is closed after the response was spoken or stays open to accept another voice input.
  • sessionId needs to contain the sessionId the response is meant for. Ideally, provide it to allow concurrent sessions. If not provided, the first session that expects a response is assumed.

Return result via the message to iot instance

The iot instance also accepts a message with the name "alexaCustomResponse" containing the key "response" with an object that can contain the keys responseText and shouldEndSession and sessionId as described above. There will be no response from the iot instance to the message!

Example of a script that uses texts

// important, that ack=true
on({id: 'iot.0.smart.lastCommand', ack: true, change: 'any'}, obj => {
    // you have 200ms to prepare the answer and to write it into iot.X.smart.lastResponse
    setState('iot.0.smart.lastResponse', 'Received phrase is: ' + obj.state.val); // important, that ack=false (default)
});

Example of a script that uses JSON objects

// important, that ack=true
on({id: 'iot.0.smart.lastCommandObj', ack: true, change: 'any'}, obj => {
    // you have 200ms to prepare the answer and to write it into iot.X.smart.lastResponse
    const request = JSON.parse(obj.state.val);
    const response = {
        'responseText': 'Received phrase is: ' + request.words.join(' ') + '. Bye',
        'shouldEndSession': true,
        'sessionId': request.sessionId
    };

    // Return response via state
    setState('iot.0.smart.lastResponse', JSON.stringify(response)); // important, that ack=false (default)

    // or alternatively return as message
    sendTo('iot.0', 'alexaCustomResponse', response);
});

Private cloud

If you use private skill/action/навык for communication with Alexa/Google Home/Алиса so you have the possibility to use IoT instance to process the requests from it.

E.g. for yandex alice:

const OBJECT_FROM_ALISA_SERVICE = {}; // object from alisa service or empty object
OBJECT_FROM_ALISA_SERVICE.alisa = '/path/v1.0/user/devices'; // called URL, 'path' could be any text, but it must be there
sendTo('iot.0', 'private', {type: 'alisa', request: OBJECT_FROM_ALISA_SERVICE}, response => {
    // Send this response back to alisa service
    console.log(JSON.stringify(response));
});

The following types are supported:

  • alexa - acting with Amazon Alexa or Amazon Custom Skill
  • ghome - acting with Google Actions via Google Home
  • alisa - acting with Yandex Алиса
  • ifttt - acting like IFTTT (actually not required, but for tests purposes)

Yandex Алиса

instructions

Send messages to app

From version 1.15.x you can send messages to ioBroker.visu application (Android and iOS). For that, you need to write the following states:

setState('iot.0.app.expire', 60); // optional. Time in seconds
setState('iot.0.app.priority', 'normal'); // optional. Priority: 'high' or 'normal'
setState('iot.0.app.title', 'ioBroker'); // optional. Default "ioBroker"
setState('iot.0.app.message', 'Message text'); // important, that ack=false (default)

// or just one state
// only is message is mandatory. All other are optional
setState('iot.0.app.message', JSON.stringify({ 
  message: 'Message text',
  title: 'ioBroker',
  expire: 60,
  priority: 'normal'
})); // important, that ack=false (default)

Todo

  • Smart names must have higher priority as groups
  • Devices should be grouped by smart name

Changelog

WORK IN PROGRESS

  • (bluefox) updated packages
  • (bluefox) Migrated GUI for admin v7

3.3.0 (2024-05-09)

  • (foxriver76) Fix error on reconnect
  • (foxriver76) prepared adapter for new ioBroker Visu app states
  • (bluefox) updated packages

3.2.2 (2024-04-11)

  • (foxriver76) remove some warnings that should only be debug log

3.2.1 (2024-04-11)

  • (foxriver76) fixed issue that only valid JSON could be sent to app via message state

3.2.0 (2024-04-10)

  • (foxriver76) implemented geofence with ioBroker Visu app

3.1.0 (2024-02-05)

  • (bluefox) Updated packages
  • (bluefox) Disabled the state change report for alexa v3

3.0.0 (2023-10-24)

  • (bluefox) Updated packages
  • (bluefox) The minimal supported node.js version is 16

2.0.11 (2023-06-20)

  • (bluefox) Added support for the state toggling (alexa 3)
  • (bluefox) Done small improvements for alexa 3

2.0.9 (2023-06-15)

  • (bluefox) Working on support for amazon alexa v3

2.0.2 (2023-06-05)

  • (bluefox) Added support for amazon alexa v3
  • (bluefox) Removed support for sugar blood indication

1.14.6 (2023-05-12)

  • (bluefox) Corrected translations

1.14.5 (2023-03-01)

  • (bluefox) Corrected names of enums in GUI

1.14.3 (2023-01-10)

  • (kirovilya) Fixed processing for lights with CT and RGB in Alisa

1.14.2 (2022-12-23)

  • (bluefox) Updated GUI packages

1.14.1 (2022-12-22)

  • (bluefox) Downgraded the axios version to 0.27.2

1.14.0 (2022-12-13)

  • (bluefox) Added netatmo support

1.13.0 (2022-12-08)

  • (Apollon77) Added support vor Custom Skill v2

1.12.5 (2022-11-09)

  • (bluefox) Small changes on configuration GUI

1.12.4 (2022-11-03)

  • (bluefox) Added ukrainian language
  • (bluefox) Corrected blockly for unknown languages

1.12.2 (2022-10-01)

  • (Apollon77) Fixed crash case

1.12.1 (2022-09-27)

  • (bluefox) Corrected error in GUI with empty password

1.12.0 (2022-09-27)

  • (Apollon77) Do not control saturation with a percentage request via alexa
  • (bluefox) Migrated GUI to v5

1.11.9 (2022-07-22)

  • (Apollon77) Fix temperature controlling for thermostats via alexa

1.11.8 (2022-06-24)

  • (Apollon77) Update dependencies to allow better automatic rebuild

1.11.7 (2022-06-13)

  • (bluefox) Tried to correct URL key creation for Google home

1.11.5 (2022-06-03)

  • (kirovilya) Alisa: update for binary-sensor "motion" and "contact"

1.11.4 (2022-03-29)

  • (Apollon77) Fix crash cases reported by Sentry

1.11.3 (2022-03-23)

  • (bluefox) Added the generation of URL key for services

1.11.2 (2022-03-20)

  • (Apollon77) Fix crash case reported by Sentry (IOBROKER-IOT-3P)

1.11.1 (2022-03-18)

  • (Apollon77) Optimize logging when many devices are used

1.11.0 (2022-03-17)

  • (Apollon77) Also support "stored" when a rgb state is turned on/off
  • (Apollon77) Fixed control percent value to respect min/max correctly
  • (bluefox) Support for response messages longer than 128k (zip)

1.10.0 (2022-03-09)

  • (Apollon77) Respect min/max when calculating the value for byOn with % values

1.9.7 (2022-02-20)

  • (Apollon77) Fix crash case reported by Sentry (IOBROKER-IOT-3C)

1.9.6 (2022-02-19)

  • (Apollon77) Make sure to not remember the off value when using stored values for on
  • (Apollon77) Fix crash case reported by Sentry (IOBROKER-IOT-3A)

1.9.5 (2022-02-08)

  • (bluefox) Fixed Google home error with color control

1.9.4 (2022-02-08)

  • (bluefox) Fixed error with the certificates fetching

1.9.3 (2022-02-03)

  • (bluefox) Removed deprecated package request
  • (bluefox) Refactoring and better error handling

1.9.2 (2022-01-26)

  • (bluefox) Added experimental support for remote access

1.8.25 (2021-11-18)

  • (bluefox) Corrected the enabling of the category

1.8.24 (2021-09-19)

  • (bluefox) Respect the min/max limits by controlling

1.8.23 (2021-09-18)

  • (bluefox) Fixed the response for the heating control

1.8.22 (2021-05-16)

  • (bluefox) Make it admin4 compatible

1.8.21 (2021-05-16)

  • (bluefox) Fixed the encryption of the password. Warning: if you see the message in the log, that password is invalid, please enter the password in configuration dialog one more time and save.

1.8.20 (2021-05-16)

  • (foxriver76) we now write data received from custom services with the acknowledge flag

1.8.19 (2021-05-14)

  • (bluefox) Only added one debug output

1.8.16 (2021-03-13)

  • (bluefox) fixed the blind functionality in alisa

1.8.15 (2021-03-12)

  • (bluefox) implemented the sensor functionality in alisa

1.8.14 (2021-03-12)

  • (bluefox) allowed the control of the blinds in alisa

1.8.13 (2021-02-04)

  • (Apollon77) add missing object smart.lastObjectID

1.8.12 (2021-02-02)

  • (bluefox) Fixed the dimmer issue with alisa.

1.8.11 (2021-01-20)

  • (Morluktom) Alexa - Corrected the request for percentage values

1.8.10 (2021-01-20)

  • (bluefox) Added the reconnection strategy if DNS address cannot be resolved

1.8.9 (2020-12-27)

  • (bluefox) Updated configuration GUI to the latest state

1.8.8 (2020-12-14)

  • (bluefox) Corrected the "Google home" error

1.8.6 (2020-12-13)

  • (bluefox) Try to fix google home error

1.8.5 (2020-11-23)

  • (bluefox) Corrected the configuration table for Google home

1.8.4 (2020-11-18)

  • (bluefox) Corrected the configuration table for Google home

1.8.3 (2020-11-16)

  • (bluefox) Trying to fix the set to false at start for Google home

1.8.2 (2020-11-15)

  • (bluefox) Added the debug outputs for Google home

1.8.1 (2020-11-13)

  • (bluefox) The deletion of google home devices was corrected

1.8.0 (2020-11-12)

  • (bluefox) The Google home table was rewritten

1.7.15 (2020-11-05)

  • (Morluktom) Corrected the request for temperature

1.7.14 (2020-11-05)

  • (bluefox) Updated the select ID dialog.

1.7.12 (2020-09-25)

  • (bluefox) Updated the select ID dialog.

1.7.9 (2020-09-17)

  • (bluefox) Updated GUI for config.

1.7.7 (2020-09-02)

  • (bluefox) Added information about changed linking process.

1.7.6 (2020-08-25)

  • (bluefox) Some colors were changed in the dark mode.

1.7.5 (2020-08-21)

  • (Apollon77) Crash prevented (Sentry IOBROKER-IOT-W)
  • (bluefox) Values for modes will be converted to number in Alisa

1.7.3 (2020-08-16)

  • (bluefox) Added vacuum cleaner to Alisa

1.7.1 (2020-08-16)

  • (bluefox) Added blinds, lock and thermostat to Alisa

1.6.4 (2020-08-06)

  • (Apollon77) crash prevented (Sentry IOBROKER-IOT-V)

1.6.3 (2020-08-04)

  • (bluefox) Added french letters to allowed symbols

1.6.1 (2020-07-10)

  • (bluefox) Used new SelectID Dialog in GUI

1.5.3 (2020-05-28)

  • (bluefox) Small change for nightscout

1.5.2 (2020-05-21)

  • (bluefox) Changed requirements for password
  • (bluefox) Do not try to load the "sharp" if the blood sugar not enabled

1.4.18 (2020-05-11)

  • (Apollon77) Make sure that invalid configured states or values without a timestamp do not crash adapter (Sentry IOBROKER-IOT-8)
  • (Apollon77) Make sure publishes after the disconnect to not break adapter (Sentry IOBROKER-IOT-A)

1.4.17 (2020-05-11)

  • (bluefox) Better error output is implemented

1.4.14 (2020-05-01)

  • (bluefox) Fixed the problem if admin is not on 8081 port

1.4.12 (2020-04-30)

  • (Apollon77) error case handled where system.config objects does not exist (Sentry IOBROKER-IOT-5)

1.4.11 (2020-04-26)

  • (bluefox) fixed IOBROKER-IOT-REACT-F

1.4.10 (2020-04-24)

  • (bluefox) Fixed crashes reported by sentry

1.4.7 (2020-04-23)

  • fixed iot crash when timeouts in communications to Google happens (Sentry IOBROKER-IOT-2)
  • fixed iot crash when google answers without customData (Sentry IOBROKER-IOT-1)

1.4.6 (2020-04-18)

  • (Apollon77) Add the Sentry error reporting to React Frontend

1.4.4 (2020-04-14)

  • (Apollon77) remove js-controller 3.0 warnings and replace adapter.objects access
  • (Apollon77) add linux dependencies for canvas library
  • (Apollon77) add sentry configuration

1.4.2 (2020-04-08)

  • (TA2k) Fix updateState for Google Home

1.4.1 (2020-04-04)

  • (bluefox) The blood glucose request supported now

1.3.4 (2020-02-26)

  • (TA2k) Fixed deconz issues in Google Home

1.3.3 (2020-02-12)

  • (Apollon77) fix alisa error with invalid smartName attributes

1.3.2 (2020-02-10)

  • (Apollon77) usage with all kinds of admin ports and reverse proxies optimized

1.3.1 (2020-02-09)

  • (Apollon77) Dependency updates
  • (Apollon77) Make compatible with Admin > 4.0 because of updated socket.io

1.2.1 (2020-01-18)

  • (bluefox) Fixed problem if the port of admin is not 8081

1.2.0 (2020-01-04)

  • (TA2k) Google Home handling and visualization improved.

1.1.10 (2020-01-03)

  • (bluefox) Now is allowed to select the temperature values as alexa states
  • (bluefox) Allowed the setting type immediately after insertion of new state

1.1.9 (2019-11-27)

  • (bluefox) Fixed: sometimes the configuration could not be loaded

1.1.8 (2019-09-12)

  • (bluefox) Optimization of google home communication was done

1.1.7 (2019-09-11)

  • (bluefox) The sending rate to google home is limited now

1.1.6 (2019-09-11)

  • (TA2k) Room fix for Google Home and LinkedDevices

1.1.4 (2019-09-10)

  • (bluefox) decreased keepalive value to fix issue with disconnect

1.1.3 (2019-09-09)

  • (TA2k) Google Home problem fixed with LinkedDevices

1.1.0 (2019-09-06)

  • (bluefox) Added support of aliases

1.0.8 (2019-09-03)

  • (TA2k) Improved support for Google Home
  • (TA2k) Added auto detection for RGB, RGBSingle, Hue, CT, MediaDevice, Switch, Info, Socket, Light, Dimmer, Thermostat, WindowTilt, Blinds, Slider
  • (TA2k) Added support for manually adding states as devices
  • (TA2k) Fix update state after Sync
  • (TA2k) Added typical Google Home devices and traits/actions
  • (TA2k) Fix only process update message when Alexa is checked in the options

1.0.4 (2019-08-01)

  • (bluefox) Fixed password encoding. Please enter password anew!

1.0.3 (2019-07-30)

  • (bluefox) Fixed language issues for google home and yandex alice

1.0.1 (2019-07-26)

  • (bluefox) Support of private skills/actions was added.

1.0.0 (2019-07-14)

  • (TA2k) Google Home list was added

0.5.0 (2019-06-29)

  • (bluefox) tried to add yandex Alisa

0.4.3 (2019-04-14)

  • (Apollon77) Change enable/disable of Amazon Alexa and of Google Home from configuration to be really "active if selected".

0.4.2 (2019-03-10)

  • (bluefox) Allowed the enablement and disable of Amazon Alexa and of Google Home from configuration.

0.4.1 (2019-02-19)

  • (bluefox) Add version check to google home

0.3.1 (2019-01-13)

  • (bluefox) Blockly was fixed

0.3.0 (2018-12-30)

  • (bluefox) Detection of google devices was fixed

0.2.2 (2018-12-21)

  • (bluefox) Generation of new URL key was added

0.2.0 (2018-12-18)

  • (bluefox) Change the name of adapter

0.1.8 (2018-10-21)

  • (bluefox) Added extended diagnostics

0.1.7 (2018-10-14)

  • (bluefox) The configuration dialog was corrected
  • (bluefox) The possibility to create the answer with script for the custom skill was implemented.

0.1.4 (2018-09-26)

  • (bluefox) Initial commit

License

The MIT License (MIT)

Copyright (c) 2018-2024 bluefox [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

iobroker.iot's People

Contributors

alcalzone avatar apollon77 avatar arteck avatar bergreiter avatar boergegrunicke avatar bondrogeen avatar c-klinger avatar crycode-de avatar dependabot[bot] avatar feurer98 avatar foxriver76 avatar germanbluefox avatar gh-god avatar grimneko avatar hurdurderp avatar itprofi avatar johnnybyzhang avatar kirovilya avatar klein0r avatar ldittmar81 avatar maag-da avatar mcm1957 avatar morluktom avatar piwoxar avatar schmakus avatar sneak-l8 avatar steiger04 avatar unclesamswiss avatar weindler avatar wolfspiritm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iobroker.iot's Issues

Verbindung regelmässig verloren

Guten Tag liebe Devs,

ich bin ja bereit für guten Service Geld auszugeben, leider ist der IoT Adapter der schlimmste Adapter den ich in IOBroker je genutzt habe.

Andauernd verliert er die Verbindung zu Alexa dann sagt mir Alexa nur das das Gerät Offline sei, dann funktioniert die Geschichte mit den Hinzufügen von Geräten immer nur mit hin und herschalten der Tabs in den Einstellungen, und bei Zigbee Geräten muss ich noch irgendwas in den RAW Daten Rumpfuschen.

Ich bastel ja gerne, aber wenn schon Grundfunktionen nicht möglich sind (wie eine Stabile Verbindung) ist es einfach traurig.
Anscheinend gibt es für mich wohl auch keine Alternative, außer ich binde jedes Gerät aufwendig in meine Homematic CCU ein, um dann mit Cloudmatic zu arbeiten.

Bekommt ma eure Sachen gefitxt, und löscht die "alten" Cloud Adapter raus, bis ich raus hatte welcher der aktuellste ist vergingen auch eins zwei Stunden.

Um mal etwas detallierter zu werden bekomme ich diese Fehlermeldung bezüglich der verbindung:

`

iot.0 2019-09-08 18:26:56.703 error read ECONNRESET
iot.0 2019-09-08 18:21:56.589 warn [GHOME] Invalid URL key. Status update is disabled: {"error":{"error":"No license found or license is no more valid"}}
iot.0 2019-09-08 18:21:56.587 error [GHOME] Cannot report device state: null
iot.0 2019-09-08 18:21:56.425 info Connection changed: connect
iot.0 2019-09-08 18:21:53.454 info Connecting with a18wym7vjdl22g.iot.eu-west-1.amazonaws.com
iot.0 2019-09-08 18:21:53.387 info starting. Version 0.4.3 in /opt/iobroker/node_modules/iobroker.iot, node: v8.16.0
host.raspberrypi 2019-09-08 18:21:51.303 info instance system.adapter.iot.0 started with pid 3377
host.raspberrypi 2019-09-08 18:21:48.873 info instance system.adapter.iot.0 terminated with code 0 (OK)
host.raspberrypi 2019-09-08 18:21:48.784 info stopInstance system.adapter.iot.0 killing pid 2336
host.raspberrypi 2019-09-08 18:21:48.784 info stopInstance system.adapter.iot.0
host.raspberrypi 2019-09-08 18:21:48.782 info object change system.adapter.iot.0
iot.0 2019-09-08 18:21:14.942 info Request devices
iot.0 2019-09-08 18:21:14.588 info Request devices
iot.0 2019-09-08 18:21:09.638 info Request devices
iot.0 2019-09-08 18:20:59.717 warn [GHOME] Invalid URL key. Status update is disabled: {"error":{"error":"No license found or license is no more valid"}}
iot.0 2019-09-08 18:20:59.716 error [GHOME] Cannot report device state: null
iot.0 2019-09-08 18:20:59.501 info Connection changed: connect
`

Grüße
Zakuma

iot.0 Instanz bleibt gelb

Hallo,

nachdem anfänglich alles funktionierte, bleibt die iot.0 Instanz jetzt immer im gelben Status hängen.
Ursprünglich hatte ich unterschiedliche Kennwörter für den Amazon-Skill und den iobroker.pro login.
Dies habe ich aber bereits angepasst - beide haben jetzt identische Kennwörter.
Auch das Kennwort habe ich mehrfach in der iot Instanz neu eingegeben - ohne Erfolg.

Das Protokoll zeigt beim Neustart der Instanz immer nur folgendes an:

iot.0 | 2018-12-31 00:45:13.488 | error | {}
iot.0 | 2018-12-31 00:45:13.359 | info | Connecting with a18wym7vjdl22g.iot.eu-west-1.amazonaws.com
iot.0 | 2018-12-31 00:45:13.354 | info | starting. Version 0.2.2 in opt/iobroker/node_modules/iobroker.iot, node: v8.15.0

Gemäß der Angabe im Forum iot-Adapter verbindet sich nicht bzw Verbindung ist "gelb" mache ich hier mal ein Issue auf.

Gruß,
Kay Matzke

Not Possible to add Object with common role button

Version: 0.2.2

It is not possible to add a Object with the role button.

When the object is selected nothing happens, the screen to give it a name doesn´t show up.
It is possible to add the object when it has the role switch, when after that the object is changed to a button it still works in the iot adapter and shows the correct possible value as only true and not true/false like the switch.

Creating groups within the smart device section fails

You are supposed to create groups of smart devices, by adding an addl. smart device and give it a name of an already existing smart device. A group should be created with all devices with the same smart device name.

This approach fails. When you try to use a smart device which is already used, you'll receive an error message stating exactly that. The creation of the new smart device will be aborted, no group created.

Verbindungszertifikate

Heute morgen war es mal wieder soweit.
Der iot Adapter stand als `Gelb´ im iobroker.
Bei neustart des Adapters kam dieser Log:

info: iot.0 starting. Version 0.1.3 in /opt/iobroker/node_modules/iobroker.iot, node: v8.12.0 2018-10-14 08:30:48.680 - info: iot.0 Connecting with a18wym7vjdl22g.iot.eu-west-1.amazonaws.com with "" 2018-10-14 08:30:52.559 - error: iot.0 {} 2018-10-14 08:33:51.892 - info: host.raspberrypi object change system.adapter.iot.0 2018-10-14 08:33:51.892 - info: host.raspberrypi stopInstance system.adapter.iot.0 2018-10-14 08:33:51.893 - info: host.raspberrypi stopInstance system.adapter.iot.0 killing pid 20328 2018-10-14 08:33:51.934 - info: host.raspberrypi instance system.adapter.iot.0 terminated with code 0 (OK)
Erst nach klicken auf den Button:
ERHALTEN SIE NEUE Verbindungszertifikate
ging der Adapter auf Grün.
Ist es normal das hin und wieder neue Zertifikate geladen werden müssen?

V1.1.0 - GHOME Can't recognize any devices

After completely fresh install of v1.1.0 GHOME can't add any devices.
In the log I see that some devices are automatically added with type dimmer and light, but when I try to add IoBroker to Gogole Home App, nothing is added and in the log I get message that I have no devices:
image

Also, it is not possible to see anything on the GOOGLE DEVICES tab of the adapter. It just shows constantly spinning circle with repeating requests to GH devices in the log:
image

.... and to add.
After enabling Alexa on adapter restart it throws the following
image

Error by device connection: "read ECONNRESET"

Hallo,

Ich will mit diesem Issue nochmal an das jetzt schon längere Zeit bestehendes Problem zu errinern, in der Hoffnung Hilfe zu finden, da ich den Iot Service sehr eingeschränkt nutzen kann.

Ich muss teilweise befehle an mein Google Home mehrmals wiederholen, damit er ausgeführt wird, ob über IFTTT oder die direkte Anbindung an GHome, ich Zitiere "Der Service Iobroker ist zurzeit nicht erreichbar".

Der Iot adapter wird im wechsel gelb und grün, der Log ist voll mit dieser Meldung:
2019-08-11 22:16:54.958 - �[31merror�[39m: iot.0 Error by device connection: "read ECONNRESET" 2019-08-11 22:16:54.958 - �[32minfo�[39m: iot.0 Connection changed: disconnect 2019-08-11 22:16:54.958 - �[32minfo�[39m: iot.0 Connection lost 2019-08-11 22:17:00.268 - �[32minfo�[39m: iot.0 Connection changed: connect 2019-08-11 22:22:00.541 - �[31merror�[39m: iot.0 Error by device connection: "read ECONNRESET".

Forum Thema "Iot Fehler"
Aws Iot Issue #251

2. iot instance startet nicht

habe 2 Alexas mit eigenen Amazon Accounts.
Meine Annahme ist, das ich für jede Alexa mit eigenem Account jeweils eine eigene Alexa2 und iot instance benötige.

habe dementsprechend einen Alexa2.0 und einen Alexa2.1 auf dem Raspberry laufen (beide grün)
habe dementsprechend einen iot.0 und einen iot.1 installliert, aber leider läuft nur der iot.0, der iot.1 bleibt bei Gelb, im Log steht

iot.1 | 2018-12-27 21:22:36.912 | error | {}-- | -- | -- | --
iot.1 | 2018-12-27 21:22:36.909 | error | Cannot fetch keys: "Internal server error"
iot.1 | 2018-12-27 21:22:34.242 | error | Cannot read URL key: Not exists
iot.1 | 2018-12-27 21:22:34.186 | info | Connecting with a18wym7vjdl22g.iot.eu-west-1.amazonaws.com
iot.1 | 2018-12-27 21:22:34.110 | info | starting. Version 0.2.2 in /opt/iobroker/node_modules/iobroker.iot, node: v8.12.0

Think about to fix the issues found by adapter checker

I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:

https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/ioBroker/ioBroker.iot

  • [E150] No common.connectionType found in io-package.json
  • [E152] No common.dataSource found in io-package.json
  • [E701] No actual year found in LICENSE. Please add "Copyright (c) 2018-2021 bluefox [email protected]" at the start of LICENSE
  • [E812] file test/ found in repository, but not found in .npmignore
  • [E813] file src/ found in repository, but not found in .npmignore
  • [E814] file appveyor.yml found in repository, but not found in .npmignore
  • [E815] file .travis.yml found in repository, but not found in .npmignore
  • [E816] file tsconfig.json found in repository, but not found in .npmignore

Thanks,
your automatic adapter checker.

multiple adapter, different accounts, different smart devices

hey... is it possible to have this adapter installed multiple times with different iobroker.xxx accounts and have separated smart device list for e.g. alexa. The goal for this feature is, to have different location handled by iobroker and alexa.
thx

add a new device is not available

click add a smart device and i see my new device.. but nothing happens after that..
i cant see the device in iot under smart devices

Documentation not understandable

Ich versuche die Dokumentation zu verstehen, aber ich bin leider total gescheitert.

Das ich einen pro Account haben muss, habe ich noch verstanden, aber schon beim zweiten Kapitell stehe ich auf dem Schlauch
"if you select "default" language the smart names of devices and of enumerations will not be translated". Was um alles in der Welt haben smart name devices und enumerations mit dem Adapter zu tun. Wäre es nicht möglich, mal das grundsätzliche Zusammenspiel des Adapter mit Enumeration zu erklären?

Dann im zweiten Kapitell wird es noch anstrengender. Man soll irgendwelche Funktion names irgendwo platzieren. Warum soll ich das machen? Was sind Funktionnames.

"Concatinate with words with". Welche Wörter soll ich concatinieren?

Jetzt bin ich einer Stelle, wo ich leider aufgeben muss.

Das ist schade. Da wird in wochenlangen, respektabler, harter Arbeit so ein Adapter programmiert, aber das Ergebnis ist leider nur für Leute nutzbar, die den Code reverse engineeren und zu sich dadurch die Funktion erschließen.
Warum wird es dem potentiellen Anwender so schwer gemacht?

Oder wenn dieser Adapter noch nicht allgemein benutzt werden soll, dann sollte in der Dokumentation als Warning stehen, dass dieser Adapter noch experimentell ist.

Custom Service request returs code 500, but works

I tried to switch my custom service requests to the iot adapter (and service). The state is correctly set in ioBroker but the client receives a 500 status code indicating an error (but body is {result: ok}).

It would be nice to get a 200 status code, if the request worked fine. I currently have two widgets on my android home screen using the app "HTTPRequestWidget" and they stop working and require reconfiguration, if they receive an error status code.

This might be related to #6 .

One or more requested attributes do not exist

2019-08-10 21:12:22.587 - info: host.ioBroker instance system.adapter.iot.0 started with pid 18478
--
2019-08-10 21:12:23.008 - info: iot.0 starting. Version 1.0.6 in /opt/iobroker/node_modules/iobroker.iot, node: v10.16.2
2019-08-10 21:12:23.024 - info: iot.0 Connecting with xxxxxxxxxx.iot.eu-west-1.amazonaws.com
2019-08-10 21:12:25.902 - info: iot.0 Connection changed: connect
2019-08-10 21:12:25.973 - error: iot.0 [GHOME] Cannot report device state: {"error":{"message":"One or more requested attributes do not exist.","code":"InvalidParameterException","time":"2019-08-10T19:12:25.944Z","requestId":"d35a1809-41ca-46ba-af6d-9b3061247efb","statusCode":400,"retryable":false,"retryDelay":92.1988802608786}}
2019-08-10 21:12:25.973 - warn: iot.0 [GHOME] Invalid URL key. Status update is disabled: {"error":{"message":"One or more requested attributes do not exist.","code":"InvalidParameterException","time":"2019-08-10T19:12:25.944Z","requestId":"d35a1809-41ca-46ba-af6d-9b3061247efb","statusCode":400,"retryable":false,"retryDelay":92.1988802608786}}
2019-08-10 21:12:26.003 - error: iot.0 [GHOME] Cannot report device state: {"error":{"message":"One or more requested attributes do not exist.","code":"InvalidParameterException","time":"2019-08-10T19:12:25.983Z","requestId":"3da9a2ff-f047-4e87-aee2-122c358a985a","statusCode":400,"retryable":false,"retryDelay":27.58056875126067}}
2019-08-10 21:12:26.003 - warn: iot.0 [GHOME] Invalid URL key. Status update is disabled: {"error":{"message":"One or more requested attributes do not exist.","code":"InvalidParameterException","time":"2019-08-10T19:12:25.983Z","requestId":"3da9a2ff-f047-4e87-aee2-122c358a985a","statusCode":400,"retryable":false,"retryDelay":27.58056875126067}}
20

Keine Funktion bei der Option "eigene Einstellungen (nur Pro)"

Wenn man auf eigene Einstellungen im Reiter "Erweiterte Einstellungen" klickt und danach auf abbrechen, bleibt das Häckchen gesetzt. Nach einer Bestätigung für eine Neustart, verschindet das Häcken wieder und der Adapter wird nicht neu gestartet.

Password

Ich habe heute das Problem gehabt, dass Alexa keine Befehle mehr angenommen hat. Gestern lief noch alles. IOBroker lief auch noch, aber alle Geräte bei Alexa waren offline. Neu suchen hat nicht funktioniert. Alle Geräte entfernen und neu Suchen hat keine Geräte mehr angezeigt.
Falls es für dieses Verhalten eine Antwort/Lösung gibt wäre ich dankbar diese zu erfahren. Das ist aber nicht der Grund für dieses Ticket.

Nachdem ich den Skill deaktiviert und neu aktiviert hatte wurde ich auf eine Anmeldeseite geleitet. Dort habe ich dann auf "Password vergessen" geklickt weil ich es nicht mehr wusste.

Jetzt kommt das Issue:

  • Es kam eine Mail mit einem Code
  • Code eingegeben, neues Password eingegeben
  • Fehler: Password muss ein Symbol haben
  • Also neues Password ausprobiert.
  • Fehler Code abgelaufen. - Echt jetzt?
  • Also wieder zurück, neuen Code angefordert, gewartet bis de Mail da war
  • Wieder auf die Anmeldeseite Code eingegeben
  • Neues Password eingegeben. Diesmal mit einem "Symbol" Character ("=")
  • Schon wieder Fehlermeldung, dass das Password ein Symbol enthalten soll. Was zur Hölle wollt ihr da haben? Ein "=" ist ein Sonderzeichen.
  • Neues Password ausprobiert
  • Fehler "Code abgelaufen"
  • ???

Das ist jetzt hoffentlich nicht absichtlich so impementiert.
Also bitte

  • Wenn die Credentials nicht passen, dann bitte die Mehrfacheingabe zulassen, ohne dass jedesmal dieser Code ungültig wird
  • Bitte genauer beschreiben wie das Password aufgebaut sein soll. Vielleicht wäre es auch eine gute Idee das in deutsch zu formulieren. Ich würde mal sagen, dass ein Grossteil der User von IOT diese Sprache durchaus beherrscht und man nicht auf englisch ausweichen muss.

Gruss Ralf

Error message when requesting new API token

I am getting the error message Cannot read URL key: Not exists when requesting a new error token by pressing the button "GET NEW SERVICE URL KEY" within the tab "SERVICE AND IFTTT".

What am I doing wrong?

"Alexa reagiert gerade nicht" - geht aber alles!

Ich habe ein komisches Phänomen festgestellt: Ich habe meine Klimasteuerung über den iot-Adapter mit Alexa verbunden. Hierzu habe ich ein Smartgerät namens Klimaanlage angelegt, welches die beiden Datenpunkte für Power und Temperatur beinhaltet.

Wenn ich nun sage: "Alexa, stelle Klimaanlage auf 18 Grad", kommt die Ansage "Klimaanlage reagiert gerade nicht". Verstellt wird jedoch sowohl mein Datenpunkt (level.temperature) als auch die Klimaanlage an sich (gesteuert über einen Broadlink). Die Skripte stimmen also in meinen Augen alle! Beim ein- und ausschalten kommt der Fehler nicht, hier kommt einfach der "Bestätigungs-Dong" (Datenpunnkt ist switch.power).

In den Smartgeräten haben beide Datenpunkte den Typ "Thermostat". Ich bekomme als Funktion angezeigt: an aus ° ↑ ↓ ±?

Theoretisch müsste es doch auch möglich sein, nach der aktuell eingestellten Temperatur zu fragen? Wenn ich sage "Alexa wie ist die Temperatur von Klimaanlage?" kommt "Klimaanlage unterstützt das nicht". Deute ich den Befehl "?" falsch? Der Wert müsste für den Adapter ja problemlos aus dem Datenpunkt, den er ja auch beschreibt, auszulesen sein...

V0.4.x can't add smart device

up version 0.4.x it's the new smart devices that I've added in the config at instances, come not to alexa, there is something broken with the connection... current devices working, but new ones, that in the instance are added, can't see in the alexa app, new device scan, and a remove / assing of the skill... don't help..
Back at Version 0.3.1 is working fine. The checkmark for "Alexa"is set in the newer versions.

ioBroker Custom Skill / Javascript Problem

Hallo,

Laut Github Beschreibung kann man ja auf die Fragen im ioBroker Custom Skill mit dem text2command Adapter reagieren, oder auch mit Javascript (Beispiel ist auch in Github zu finden).

Ich habe hierfür nun ein wenig mit Javascript experimentiert, da ich mir auf Dauer hier mehr Flexibilität und ggf. etwas weniger Pflegeaufwand als bei text2command verspreche.

Ich verwende den iot Adapter, und habe dort "Benutze text2command Instanz" deaktiviert.

Habe dann das Beispiel Script für einen kleinen Test etwas angepasst, das schaut dann so aus:

// important, that ack=true on({id: 'iot.0.smart.lastCommand', ack: true, change: 'any'}, obj => { // you have 200ms to prepare the answer and to write it into iot.X.smart.lastResponse log("### Last Command: " +obj.state.val); if(obj.state.val.match(/büro/) && obj.state.val.match(/luftfeuchtigkeit/)) { var humVal = getState("hm-rpc.0.MEQxxxxxxx.1.HUMIDITY").val; setState("iot.0.smart.lastResponse", "Die Luftfeuchtigkeit im Büro liegt aktuell bei " +humVal+ " Prozent"); // important, that ack=false (default) //setState('iot.0.smart.lastResponse', 'Received phrase is: ' + obj.state.val); // important, that ack=false (default) } });

Dann teste ich mit dem Satz "Alexa, Frag ioBroker nach der Luftfeuchtigkeit im Büro".
Bekomme auch sofort die Antwort "Die Luftfeuchtigkeit im Büro liegt aktuell bei Prozent".

Theoretisch alles wunderbar.

Allerdings wartet Alexa nach der Antwort auf eine weitere Eingabe. D.h. sie bleibt aktiv und hört weiter zu. Wenn ich noch etwas sage, dann wird das auch als Eingabe vom ioBroker Skill verarbeitet und steht in iot.0.smart.lastCommand zur Verfügung.

Wenn ich nichts sage sprich nicht weiter reagiere, dann wartet sie ein paar Sekunden. Dann kommt der Quittierungston gefolgt von der Meldung "Ich habe im Moment Schwierigkeiten auf Deinen Custom ioBroker Skill zuzugreifen".

Der Skill ist aber korrekt verbunden bzw. verknüpft (wurde auch schon getrennt und wieder verbunden).

Gibt es da noch einen Fehler im ioBroker Custom Skill in Kombination mit Javascript?

Hier noch die Versionen der Adapter die meiner Meinung nach hier relevant sein könnten:
JS Script Engine >>> 4.0.11
IoT Adapter >>> 0.3.1

Ich verwende zwei JS Sript Engine Instanzen. Instanz 0 für Tests und Instanz 1 produktiv.
Getestet habe ich das Ganze bei mir in der javascript.0 Instanz.

Gibt es da ggf. noch einen Fehler beim IoT Adapter oder mache ich etwas falsch?

Habe die Anfrage ursprünglich auch im ioBroker Forum gestellt.
Zu finden hier: https://forum.iobroker.net/viewtopic.php?f=37&t=21105

Gruß
Roland

Batch Action for deleting Smart Devices

Hi,

it would be nice if one could delete numerous smart devices at once.
E.g. when adding a CuxD device that emulates a 16 button remote and one only uses the first channel you have to delete 15 channels (times 2 for level and state).

It would be cool to have select boxes and one delete button to confirm the deletion of all devices.

Cannot read property 'message' of undefined

2019-09-11 03:12:35.240  - �[31merror�[39m: iot.0 uncaught exception: Cannot read property 'message' of undefined
2019-09-11 03:12:35.241  - �[31merror�[39m: iot.0 TypeError: Cannot read property 'message' of undefined
2019-09-11 03:12:35.279  - �[31merror�[39m: Caught by controller[0]: TypeError: Cannot read property 'message' of undefined
2019-09-11 03:12:35.280  - �[31merror�[39m: Caught by controller[0]:     at Request.request.post [as _callback] (/opt/iobroker/node_modules/iobroker.iot/lib/GoogleHome.js:1713:102)
2019-09-11 03:12:35.280  - �[31merror�[39m: Caught by controller[0]:     at Request.self.callback (/opt/iobroker/node_modules/request/request.js:185:22)
2019-09-11 03:12:35.280  - �[31merror�[39m: Caught by controller[0]:     at Request.emit (events.js:198:13)
2019-09-11 03:12:35.280  - �[31merror�[39m: Caught by controller[0]:     at Request.<anonymous> (/opt/iobroker/node_modules/request/request.js:1161:10)
2019-09-11 03:12:35.280  - �[31merror�[39m: Caught by controller[0]:     at Request.emit (events.js:198:13)
2019-09-11 03:12:35.280  - �[31merror�[39m: Caught by controller[0]:     at IncomingMessage.<anonymous> (/opt/iobroker/node_modules/request/request.js:1083:12)
2019-09-11 03:12:35.281  - �[31merror�[39m: Caught by controller[0]:     at Object.onceWrapper (events.js:286:20)
2019-09-11 03:12:35.281  - �[31merror�[39m: Caught by controller[0]:     at IncomingMessage.emit (events.js:203:15)
2019-09-11 03:12:35.281  - �[31merror�[39m: Caught by controller[0]:     at endReadableNT (_stream_readable.js:1145:12)
2019-09-11 03:12:35.281  - �[31merror�[39m: Caught by controller[0]:     at process._tickCallback (internal/process/next_tick.js:63:19)
2019-09-11 03:12:35.281  - �[31merror�[39m: host.iobroker instance system.adapter.iot.0 terminated with code 0 (OK)
2019-09-11 03:12:35.281  - �[32minfo�[39m: host.iobroker Restart adapter system.adapter.iot.0 because enabled
2019-09-11 03:13:05.297  - �[32minfo�[39m: host.iobroker instance system.adapter.iot.0 started with pid 28192
2019-09-11 03:13:06.646  - �[32minfo�[39m: iot.0 starting. Version 1.0.8 in /opt/iobroker/node_modules/iobroker.iot, node: v10.16.3
2019-09-11 03:13:06.681  - �[32minfo�[39m: iot.0 Connecting with a18wym7vjdl22g.iot.eu-west-1.amazonaws.com
2019-09-11 03:13:07.229  - �[32minfo�[39m: iot.0 shelly.0.SHSW-1#xxx#1.Relay0.Switch is auto added with type  light.
2019-09-11 03:13:07.236  - �[32minfo�[39m: iot.0 shelly.0.SHSW-1#yyy#1.Relay0.Switch is auto added with type  light.
2019-09-11 03:13:07.241  - �[32minfo�[39m: iot.0 sonoff.0.Nachtlicht Benchy.POWER is auto added with type  light.
2019-09-11 03:13:07.246  - �[32minfo�[39m: iot.0 sonoff.0.Nachtlicht Liah.POWER is auto added with type  light.
2019-09-11 03:13:07.250  - �[32minfo�[39m: iot.0 sonoff.0.Nachtlicht Marcus.POWER is auto added with type  light.
2019-09-11 03:13:07.255  - �[32minfo�[39m: iot.0 sonoff.0.Stehlampe.POWER is auto added with type  light.
2019-09-11 03:13:07.259  - �[32minfo�[39m: iot.0 shelly.0.SHSW-1#zzz#1.Relay0.Switch is auto added with type  light.
2019-09-11 03:13:07.288  - �[32minfo�[39m: iot.0 shelly.0.SHRGBW2#rrr#1.color is auto added with type  rgb.
2019-09-11 03:13:07.294  - �[32minfo�[39m: iot.0 sonoff.0.Schreibtischlampe.POWER is auto added with type  light.
2019-09-11 03:13:07.298  - �[32minfo�[39m: iot.0 sonoff.0.Küchenlicht.POWER is auto added with type  light.
2019-09-11 03:13:07.303  - �[32minfo�[39m: iot.0 sonoff.0.TV Steckdose.POWER is auto added with type  socket.
2019-09-11 03:13:07.310  - �[32minfo�[39m: iot.0 tuya.0.edrertetetert2d5a02cc.1 is auto added with type  socket.
2019-09-11 03:13:07.313  - �[32minfo�[39m: iot.0 javascript.0.scriptEnabled.Steckdosen.Schreibtischsteckdosen_Automatik is auto added with type  socket.
2019-09-11 03:13:07.322  - �[32minfo�[39m: iot.0 Cannot auto convert chromecast.0.Küche.status.volume. Type volume is not available, yet. If you need the state please add him manually
2019-09-11 03:13:07.326  - �[32minfo�[39m: iot.0 Cannot auto convert chromecast.0.Schlafzimmer.status.volume. Type volume is not available, yet. If you need the state please add him manually
2019-09-11 03:13:07.330  - �[32minfo�[39m: iot.0 Cannot auto convert chromecast.0.WohnzimmerJBL.status.volume. Type volume is not available, yet. If you need the state please add him manually
2019-09-11 03:13:07.715  - �[32minfo�[39m: iot.0 Connection changed: connect

POST Daten & RESPONSES

Hallo zusammen,

ich habe in meinem ioBroker.nello adapter bereits die custom services von ioBroker.iot in Benutzung. Um Benachrichtigungen der nello API zu empfangen muss ein Webhook gesetzt werden. Statt einer DynDNS und einem offenen Port im Router, nutze ich hierfür die custom services des ioBroker.iot.

Gerne würde ich das auch für den ioBroker.owntracks nutzen, um auch hier die Portöffnung zu umgehen. Die Android App unterstützt einen HTTP-Mode in dem ich die URL eintragen kann.

  1. Ich empfange auch den location payload, aber keine Benutzerdaten. Diese werden für Android über X-Limit-U bzw. X-Limit-D (vgl. https://owntracks.org/booklet/tech/http/#distinguishing-payloads) bereitgestellt, die ich aber nicht weitergereicht werden und ich daher nicht auslesen kann.

  2. Außerdem kann ich keine Antwort (RESPONSE) zurückschicken, was entsprechend der OwnTracks Dokumentation (vgl. https://owntracks.org/booklet/tech/http/#http) möglich wäre. Dies ist notwendig, um mehrere User zu verbinden.

Es würde mich freuen, wenn die zwei genannten Dinge Unterstützung fänden.
Gerne unterstütze ich bei der Implementierung.

Vielen Dank im Voraus und viele Grüße
Zefau

[GHOME] Device Unknown

Hallo,
ich bekomme seit einigen Wochen im Log für alle Möglichen Geräte den Fehler:

iot.0 | 2019-03-06 07:13:56.243 | error | [GHOME] device sonoff.0.Sonoff_Bild_Diner.POWER is unknown to google home
iot.0 | 2019-03-06 07:12:19.662 | error | [GHOME] device sonoff.0.Sonoff_Terrasse.POWER is unknown to google home

Wie bekomme ich den weg? Ich habe im Internet leider keine Lösung dazu gefunden.

Danke.
LG,
Sascha

Adding new smart device from the ioBroker Zigbee Adapter fails (after selecting the ID in the popup the list of devices is not updated).

With the ioBroker.iot Adapter it is not possible to add a new smart device in the smart device tab.
After pressing plus on the top left a popup occurs to select the appropriate ID / datapoint,
but after selecting one and pressing save, the list of smart devices is not updated.

Tested with the current ioBroker.iot Adapter version and by adding an ID (Xiaomi Aqara temperature sensor - temperature ID) of within the ioBroker.Zigbee adapter.

SSL handshake failure

Bekomme seitdem ich heute 2 ioT Instanzen mit dem selben PRO Account eingerichtet hatte, diese Fehler im Log. Deaktivieren der iot.1 Instanz und Neusetzen der Logindaten in der iot.0 hilft auch nicht.
Deaktiviere ich die 0 springt die 1 auf grün. Aber ich brauche eigentlich beide parallel mit dem selben Konto. Sonst müsste ich ja zwei Lizenzen kaufen.

iot.0 2018-12-12 13:29:19.665 error 1996287904:error:1409E0E5:SSL routines:ssl3_write_bytes:ssl handshake failure:../deps/openssl/openssl/ssl/s3_pkt.c:659:
iot.0 2018-12-12 13:29:19.665 error write EPROTO 1996287904:error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown:../deps/openssl/openssl/ssl/s3_pkt.c:1498:SSL alert number 46
iot.0 2018-12-12 13:29:19.664 error 1996287904:error:1409E0E5:SSL routines:ssl3_write_bytes:ssl handshake failure:../deps/openssl/openssl/ssl/s3_pkt.c:659:
iot.0 2018-12-12 13:29:19.664 error write EPROTO 1996287904:error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown:../deps/openssl/openssl/ssl/s3_pkt.c:1498:SSL alert number 46

Generell wäre hier also die Frage:
Kann man überhaupt zwei ioT Instanzen mit dem selben Login verwenden um Smart Geräte getrennt für zwei Echo Dot festlegen zu können? Denn das ist das Ziel. Immerhin werden die Geräte im JSON ja pro Instanz gespeichert.

Alexa versteht mich nicht

Hallo leider funktioniert keine Anfrage, mache ich was falsch?

`

iot.0 2018-10-19 10:10:06.901 debug Response from text2command: Ich verstehe "sind geschlossen fenster alle" nicht
text2command.0 2018-10-19 10:10:06.900 info processText: "de;askDevice Sind geschlossen fenster alle"
iot.0 2018-10-19 10:10:06.891 debug sendTo "send" to system.adapter.text2command.0 from system.adapter.iot.0: de;askDevice Sind geschlossen fenster alle
iot.0 2018-10-19 10:10:06.891 debug askDevice: questionStart = Sind, adjective = undefined, articletwo = undefined, questionDetails = undefined, place = undefined, state = geschlossen, device = fenster, article = undefined, status = al
iot.0 2018-10-19 10:10:06.891 debug 1539936606891 ALEXA: {"version":"1.0","session":

`

screenshot 968 _li

[0.3.1] Smart Devices list is missing several devices

As in the topic, I am missing several devices in the smart devices list.
I allow lights and heating to show up in the selected rooms.
But for some rooms not all lights show up and the heating does not show up in other rooms.
All devices are provided by Homematic, but I could not find a logic behind the messing devices or any other relation, so it is hard to provide further information.
Any idea how I could help to debug?

enum.Functions/enum.Rooms wird nicht an den IoT übergeben

Ich habe heute 5 neue Geräte in den ioBroker eingebunden, die jeweiligen States (die schaltbar sind) wurden automatisch im IoT-Adapter eingetragen. Ich nutze allerdings bei mir die Zuordnung bei den Objekten für Funktion/Räume. Im IoT wurde allerdings eingetragen "object object object object" z.B.

Groups show up in Alexa as connected by "IoBroker group"

If you create a group in iot adapter the device shows up in the Alexa app as connected by "IoBroker group". All other devices show up as connected by "IoBroker".
Issue with that is that Alexa complains that the skill "IoBroker group" is not active and I should activate it.
Issuing commands to the device directly by its name works fine. But using the Alexa room feature (ie just ask alexa to switch on the lights and have her and the lights assigned to the same room in the Alexa app) fails with the mentioned error.

Why is it that a different skill name shows up for the grouped devices? Or is this a left over from migration from cloud to iot?

can't clean device list

Can' remove devices from device list. Also the names were not taken over from cloud adapter so now I need to edit a lot.

Edit .. I unchecked "own settings (pro)" and now everything seems back to normal .. strange.

Status von Steckdose/Licht etc. in Alexa sichtbar

Hi Zusammen,

mich würde es sehr interessieren ob geplant ist, und wenn nicht eingeplant werden kann, das ich in meiner Alexa App den Status des Gerätes das ich über iobroker eingebunden habe sehen kann. Also zum Beispiel bei einer Steckdose ob diese gerade an oder ausgeschaltet ist usw.
Funktioniert bei jedem Skill den ich bisher eingebunden habe also müsste die Technik vorhanden sein.

Grüße

Geräte Gruppieren

Wenn mehrere Geräte in einer Gruppe sind und man diese in einer zweiten Gruppe führen möchte werden sie aus der ersten Gruppe entfernt.

Bspw Lampen im Wohnzimmer. Diese sollen auch die Gruppe Erdgeschoss.

Auch wenn einzelne Geräte vorhanden sind und man eine Gruppe erstellt existiert das einzelne Gerät nicht mehr. Also kann ich Rollladen nur in Gruppe steuern ODER einzelne wenn KEINE Gruppe vorhanden ist.

Renaming Smart Device is not pushed to google home

When I rename a smart device this changed is not pushed to google home at the moment.
To get the new name in google home I have to remove the action and re-add the action to get the new device name.

meldung "Unsubscribe from all states..." wenn adapter aktiv

Hallo
sobald ich den Adapter aktiviere kommt folgende Meldung im Log

Unsubscribe from all states, except system's, because over 3 seconds the number of events is over 200 (in last second 0)

und im browser kommt der ladekringel
muss ich da noch etwas einstellen???

weitere "type" und "trait" Einträge

Zur Zuordnung meiner Sonos Lautsprecher vermisse ich so etwas wie "Speaker" und/oder "Audio" in den Typen und dazu entsprechend "On/Off" und "Volume" (und ggf. "Channel"?) für trait

Ebenfalls sollte der type "Button" mit dem trait "press" als Ergänzung mit aufgenommen werden

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.