Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for OccupancySensor (io:SomfyOccupancyIOSystemSensor) #19

Closed
francodutch opened this issue Jun 4, 2020 · 6 comments
Closed

Comments

@francodutch
Copy link

francodutch commented Jun 4, 2020

these sensors are ideal to trigger actions (presence/movement sensor):

{
"creationTime":1544905637000,
"lastUpdateTime":1544905637000,
"label":"Movement Kitchen",
"deviceURL":"io://###",
"shortcut":false,
"controllableName":"io:SomfyOccupancyIOSystemSensor",
"definition":{
"commands":[
],
"states":[
{
"eventBased":true,
"values":[
"noPersonInside",
"personInside"
],
"type":"DiscreteState",
"qualifiedName":"core:OccupancyState"
},
{
"type":"ContinuousState",
"qualifiedName":"core:RSSILevelState"
},
{
"values":[
"dead",
"lowBattery",
"maintenanceRequired",
"noDefect"
],
"type":"DiscreteState",
"qualifiedName":"core:SensorDefectState"
},
{
"values":[
"available",
"unavailable"
],
"type":"DiscreteState",
"qualifiedName":"core:StatusState"
}
],
"dataProperties":[

        ],
        "widgetName":"OccupancySensor",
        "uiClass":"OccupancySensor",
        "qualifiedName":"io:SomfyOccupancyIOSystemSensor",
        "type":"SENSOR"
     },
     "states":[
        {
           "name":"core:OccupancyState",
           "type":3,
           "value":"noPersonInside"
        },
        {
           "name":"core:StatusState",
           "type":3,
           "value":"available"
        },
        {
           "name":"core:RSSILevelState",
           "type":2,
           "value":78.0
        }
     ],
     "attributes":[
        {
           "name":"core:PowerSourceType",
           "type":3,
           "value":"battery"
        }
     ],
     "available":true,
     "enabled":true,
     "placeOID":"####",
     "widget":"OccupancySensor",
     "type":2,
     "oid":"#####",
     "uiClass":"OccupancySensor"
  }
@iMicknl
Copy link
Owner

iMicknl commented Jun 4, 2020

Support for this OccupancySensor has been added and is pre-published as 1.1-alpha release on Github and HACS.

  • If you manually want to install the package, download the zip here.
  • If you use HACS, make sure you enable Show beta versions and select 1.1-alpha. If you have a previous version installed already, press re-install to install the beta.

Could you give it a try and report your findings?

@iMicknl iMicknl changed the title Add movement sensor Add support for OccupancySensor (io:SomfyOccupancyIOSystemSensor) Jun 4, 2020
@francodutch
Copy link
Author

francodutch commented Jun 5, 2020

A few log entries:

First:
Logger: custom_components.tahoma
Source: custom_components/tahoma/init.py:94
Integration: Tahoma (documentation)
First occurred: 13:14:30 (7 occurrences)
Last logged: 13:14:30

Unsupported Tahoma device (internal:PodV2Component - Pod - Pod)
Unsupported Tahoma device (io:SomfyIndoorSimpleSirenIOComponent - Siren - IOSiren)
Unsupported Tahoma device (jsw:CameraController - Camera - JSWCamera)
Unsupported Tahoma device (rtd:OutdoorSirenRTDComponent - Siren - RTDOutdoorSiren)
Unsupported Tahoma device (rtds:SirenStatusRTDSComponent - Siren - SirenStatus)

Second:
Log Details (ERROR)
Logger: homeassistant.config_entries
Source: helpers/entity_component.py:163
First occurred: 13:14:30 (4 occurrences)
Last logged: 13:14:30

Error setting up entry ### for binary_sensor
Error setting up entry ### for cover
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 217, in async_setup
hass, self
File "/usr/src/homeassistant/homeassistant/components/binary_sensor/init.py", line 139, in async_setup_entry
return await hass.data[DOMAIN].async_setup_entry(entry)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 163, in async_setup_entry
raise ValueError("Config entry has already been setup!")
ValueError: Config entry has already been setup!
Connection lost. Reconnecting…

Third:
Log Details (WARNING)
Logger: homeassistant.util.async_
Source: util/async_.py:120
First occurred: 13:14:31 (1 occurrences)
Last logged: 13:14:31

Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for tahoma doing I/O at custom_components/tahoma/tahoma_api.py, line 581: timeout=10)
Connection lost. Reconnecting…

@iMicknl
Copy link
Owner

iMicknl commented Jun 5, 2020

Thanks!

Is your occupancy sensor working? Your first log entries are by default and are here to show you that possibly more devices could be integrated in the future.

Your second log entry is related to #16.

Your third log entries are related to #2.

@iMicknl
Copy link
Owner

iMicknl commented Jun 11, 2020

@francodutch can we close this one? It looks like the occopancy sensor is working and that your log entries are related to other issues?

@iMicknl iMicknl closed this as completed Jun 15, 2020
@francodutch
Copy link
Author

@francodutch can we close this one? It looks like the occopancy sensor is working and that your log entries are related to other issues?

yes sure sorry for the late reply I have been offline for a while. thanks

@iMicknl
Copy link
Owner

iMicknl commented Jun 16, 2020

@francodutch no worries. Thank you for testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants