Giter Site home page Giter Site logo

hc3-to-mqtt's People

Contributors

alexander-vitishchenko 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hc3-to-mqtt's Issues

Cover state does not update

Describe the bug
Hi! To start with, I love this QA!

The cover state on all my covers, however, is always Unknown and never updated to Closed or Opened. The MQTT topic homeassistant/cover/732/events/fibaro => home assistant/value is properly updated when closing/opening, but homeassistant/cover/732/events/fibaro => home assistant/state never changes.

Environment:

  • QuickApp version 1.0.230
  • Home Center 3
  • Home Assistant 2023.4.2

MQTT Logs

config:

{
    "availability": [
        {
            "payload_available": "online",
            "payload_not_available": "offline",
            "topic": "homeassistant/hc3-status"
        },
        {
            "payload_available": "false",
            "payload_not_available": "true",
            "topic": "homeassistant/cover/732/events/fibaro => home assistant/dead",
            "value_template": "{{ value_json.value }}"
        }
    ],
    "availability_mode": "all",
    "command_topic": "homeassistant/cover/732/events/home assistant => fibaro/action",
    "device": {
        "configuration_url": "http://REDACTED/app/settings/devices/list#device-729",
        "hw_version": "Z-Wave type 3; Z-Wave version 3.52",
        "identifiers": "hc3-729",
        "manufacturer": "Fibargroup",
        "model": "",
        "name": "709",
        "suggested_area": "Default Room",
        "sw_version": "Fibargroup 25.25"
    },
    "json_attributes_topic": "homeassistant/cover/732/config_json_attributes",
    "name": "Markisen",
    "object_id": "732",
    "payload_close": "close",
    "payload_open": "open",
    "payload_stop": "stop",
    "position_template": "{{ value_json.value }}",
    "position_topic": "homeassistant/cover/732/events/fibaro => home assistant/value",
    "set_position_topic": "homeassistant/cover/732/events/home assistant => fibaro/value",
    "state_closed": "Closed",
    "state_closing": "Closing",
    "state_open": "Opened",
    "state_opening": "Opening",
    "state_topic": "homeassistant/cover/732/events/home assistant => fibaro/state",
    "tilt_closed_value": 0,
    "tilt_command_topic": "homeassistant/cover/732/events/home assistant => fibaro/value2",
    "tilt_opened_value": 100,
    "tilt_status_template": "{{ value_json.value }}",
    "tilt_status_topic": "homeassistant/cover/732/events/fibaro => home assistant/value2",
    "unique_id": "732",
    "value_template": "{{ value_json.value }}"
}

config_json_attributes:

{
    "actions": {
        "setFavoritePosition": 1
    },
    "baseType": "com.fibaro.baseShutter",
    "configXml": false,
    "created": 1650281079,
    "enabled": true,
    "hasUIView": true,
    "id": 732,
    "interfaces": [
        "deviceGrouping",
        "energy",
        "favoritePosition",
        "favoritePositions",
        "levelChange",
        "power",
        "zwave",
        "zwaveMultiChannelAssociation",
        "zwaveProtection",
        "zwaveSceneActivation"
    ],
    "isPlugin": false,
    "modified": 1678098894,
    "name": "Markisen",
    "parentId": 729,
    "properties": {
        "RFProtectionState": 0,
        "RFProtectionSupport": 3,
        "categories": [
            "blinds"
        ],
        "configured": true,
        "dead": false,
        "deadReason": "",
        "deviceControlType": 54,
        "deviceGroup": [],
        "deviceGroupMaster": 0,
        "deviceIcon": 87,
        "deviceRole": "BlindsWithPositioning",
        "emailNotificationID": 0,
        "emailNotificationType": 0,
        "endPointId": 0,
        "energy": 0.22,
        "favoritePositions": [
            {
                "label": "Favorite position 1",
                "name": "favoritePosition1",
                "value": 50
            }
        ],
        "favoritePositionsNativeSupport": false,
        "icon": {
            "path": "/assets/icon/fibaro/roleta/roleta100.png",
            "source": "HC"
        },
        "includeInEnergyPanel": true,
        "localProtectionState": 0,
        "localProtectionSupport": 5,
        "log": "",
        "logTemp": "",
        "manufacturer": "",
        "markAsDead": true,
        "model": "",
        "nodeId": 147,
        "parametersTemplate": 721,
        "pollingTimeSec": 0,
        "power": 0.0,
        "productInfo": "1,15,3,2,16,0,25,25",
        "protectionExclusiveControl": 0,
        "protectionExclusiveControlSupport": false,
        "protectionLocal": 0,
        "protectionLocalSupport": 5,
        "protectionRF": 0,
        "protectionRFSupport": 3,
        "protectionState": 0,
        "protectionTimeout": 0,
        "protectionTimeoutSupport": false,
        "pushNotificationID": 0,
        "pushNotificationType": 0,
        "remoteGatewayId": 0,
        "saveLogs": true,
        "saveToEnergyPanel": false,
        "sceneActivation": 0,
        "serialNumber": "",
        "showEnergy": true,
        "smsNotificationID": 0,
        "smsNotificationType": 0,
        "state": "Unknown",
        "storeEnergyData": false,
        "supportedDeviceRoles": [
            "BlindsWithPositioning",
            "BlindsWithoutPositioning",
            "VenetianBlinds",
            "GateWithoutPositioning",
            "GateWithPositioning"
        ],
        "useTemplate": true,
        "userDescription": "",
        "value": 99,
        "value2": 0,
        "zwaveCompany": "Fibargroup",
        "zwaveInfo": "3,3,52",
        "zwaveVersion": "25.25"
    },
    "roomID": 232,
    "roomName": "Sovrummet",
    "sortOrder": 71,
    "type": "com.fibaro.FGRM222",
    "view": [
        {
            "assetsPath": "dynamic-plugins/com.fibaro.rollerShutter",
            "name": "com.fibaro.rollerShutter",
            "translatesPath": "/assets/i18n/com.fibaro.rollerShutter",
            "type": "ts"
        },
        {
            "assetsPath": "dynamic-plugins/energy",
            "name": "energy",
            "translatesPath": "/assets/i18n/energy",
            "type": "ts"
        },
        {
            "assetsPath": "dynamic-plugins/favorite-positions",
            "name": "favorite-positions",
            "translatesPath": "/assets/i18n/favorite-positions",
            "type": "ts"
        },
        {
            "assetsPath": "",
            "name": "level-change",
            "translatesPath": "/assets/i18n/level-change",
            "type": "ts"
        },
        {
            "assetsPath": "dynamic-plugins/power",
            "name": "power",
            "translatesPath": "/assets/i18n/power",
            "type": "ts"
        }
    ],
    "viewXml": false,
    "visible": true
}

No device id for {"type":"PowerMetricsChangedEvent" ...

[06.09.2022] [22:03:21] [WARNING] [QUICKAPP3526]: No device id for {"type":"PowerMetricsChangedEvent","created":1662494601,"data":{"consumptionPower":3179.7,"productionPower":0.0}}
[06.09.2022] [22:03:21] [WARNING] [QUICKAPP3526]: No device id for {"type":"PowerMetricsChangedEvent","created":1662494601,"data":{"consumptionPower":3179.7,"productionPower":0.0}}
[06.09.2022] [22:03:21] [WARNING] [QUICKAPP3526]: No device id for {"type":"PowerMetricsChangedEvent","created":1662494601,"data":{"consumptionPower":3179.7,"productionPower":0.0}}
[06.09.2022] [22:03:21] [WARNING] [QUICKAPP3526]: No device id for {"type":"PowerMetricsChangedEvent","created":1662494601,"data":{"consumptionPower":3179.7,"productionPower":0.0}}

Fibaro RGBW Controller not visible as light

First of all - thanks for a great piece of integration, it was missed by many I suppose :)

I have issue with RGBW controller - it is somehow recognized, but only as power and energy source, an it should also be recognized as light/switch. Also settings like color and brightness would be nice :)

I was trying to look at code and I think RGBW integration is on very early state, but my knowledge is very poor in this area to change anything here...

Thanks

MQTT Password

Thank you for coding this interesting QA.
I was wondering if its possible to use MQTT servers with Username/password protection?

could you elaborate om the
hc3Auth - login and password for pulling events from Fibaro HC3. Must be encoded with Base64, e.g. "admin:password" -> "YWRtaW46cGFzc3dvcmQ="

hc3Auth _ is the the HC3 admin password i need to base64 encode, not sure what is ment here.

And the IP for MQTT is for an external MQTT server - right ?

Control HA devices back from HC3

Hi there,

Is there anyway i could control devices already on HA (from any other system, like Lutron) on the HC3 using HC3 as a MQTT client that controls HA devices?

Duplicates in home assistant for same device

Describe the bug
MQTT Integration in Homeassistant creates duplicate/alternate entity for the same fibaro device:

image

How to reproduce?
After remove the integration, clear MQTT and reconfigure and restart quickapp, works, but after some time happens again. Automations in node red stop working because the reference is invalid.
Happens in ~60 devices of ~ 350 total devices, seems irrespective of type and controller (below listed)

duplicates.txt

Expected behavior
No duplicates

Environment:

  • QuickApp version latest stable (1.0.230 )
  • Fibaro hardware: Home Center 3: 1 Master, 4 Slaves, ~ 350 devices

image

image

Attach QuickApp logs

  • Open Fibaro Home Center 3 in a web-browser
  • Home Screen > Logging (left-bottom panel) > enable filter by QuickApp id
  • Copy log records starting from "------- HC3 <-> MQTT BRIDGE"
    fibaro_log.txt
    repeated

Attach Home Assistant logs
Attach Home Assistant Core and MQTT integration logs.

home-assistant_2023-07-30T06-57-58.717Z.zip

home-assistant_mqtt_2023-07-30T06-48-20.218Z.zip

Missing Devices.

Love your plug-in!! :)

I now have a HC2 running with 100+ devices, and I have already a HC3. But I first need to get the link between HC3 and HASS correctly working. As the normal HC3 interface in HASS is not 100% working I turned to your plug-in. But I have some devices missing.

First a temperature and moisture sensor, I only see the temperature now and missing the moisture reading in HASS. This is the JSON from the device:

Parrent:

{"id":37,"name":"36.0","roomID":219,"view":[{"assetsPath":"/dynamic-plugins/com.fibaro.multilevelSensor/assets","jsPath":"/dynamic-plugins/com.fibaro.multilevelSensor","name":"com.fibaro.multilevelSensor","translatesPath":"/assets/i18n","type":"ts"}],"type":"com.fibaro.multilevelSensor","baseType":"com.fibaro.sensor","enabled":true,"visible":true,"isPlugin":false,"parentId":36,"viewXml":false,"configXml":false,"interfaces":["battery","fibaroFirmwareUpdate","tamper","zwave","zwaveAlarm","zwaveWakeup"],"properties":{"parameters":[],"pollingTimeSec":0,"wakeUpTime":86400,"zwaveCompany":"Philio Technology Corp","zwaveInfo":"3,4,5","zwaveVersion":"1.14","alarmLevel":0,"alarmType":0,"batteryLevel":100,"batteryLowNotification":true,"categories":["other"],"configured":true,"dead":false,"deadReason":"","defInterval":0,"deviceControlType":0,"deviceIcon":47,"endPointId":0,"firmwareUpdate":{"info":"","progress":0,"status":"UpToDate","updateVersion":"1.14"},"log":"","logTemp":"","manufacturer":"","markAsDead":true,"maxInterval":0,"minInterval":0,"model":"","nodeId":6,"parametersTemplate":"0","pendingActions":false,"productInfo":"1,60,0,2,0,32,1,14","saveLogs":true,"serialNumber":"h'100d46e5","stepInterval":0,"tamper":false,"unit":"","updateVersion":"","useTemplate":true,"userDescription":"","value":0.0},"actions":{"abortUpdate":1,"reconfigure":0,"retryUpdate":1,"setInterval":1,"startUpdate":1,"updateFirmware":1},"created":1625515690,"modified":1625515690,"sortOrder":11}

Child1:

{"id":38,"name":"36.0.1","roomID":219,"view":[{"assetsPath":"/dynamic-plugins/com.fibaro.securitySensor/assets","jsPath":"/dynamic-plugins/com.fibaro.securitySensor","name":"com.fibaro.securitySensor","translatesPath":"/dynamic-plugins/com.fibaro.securitySensor/i18n","type":"ts"}],"type":"com.fibaro.motionSensor","baseType":"com.fibaro.securitySensor","enabled":true,"visible":true,"isPlugin":false,"parentId":36,"viewXml":false,"configXml":false,"interfaces":["battery","fibaroBreach","zwave","zwaveWakeup"],"properties":{"parameters":[],"pollingTimeSec":0,"wakeUpTime":86400,"zwaveCompany":"Philio Technology Corp","zwaveInfo":"3,4,5","zwaveVersion":"1.14","batteryLevel":100,"batteryLowNotification":true,"categories":["security"],"configured":true,"dead":false,"deadReason":"","defInterval":0,"deviceControlType":0,"deviceIcon":21,"endPointId":0,"lastBreached":0,"log":"","logTemp":"","manufacturer":"","markAsDead":true,"maxInterval":0,"minInterval":0,"model":"","nodeId":6,"parametersTemplate":"0","pendingActions":false,"productInfo":"1,60,0,2,0,32,1,14","saveLogs":true,"serialNumber":"h'100d46e5","stepInterval":0,"useTemplate":true,"userDescription":"","value":false},"actions":{"reconfigure":0,"setInterval":1},"created":1625515690,"modified":1625515690,"sortOrder":12}

Child2:

{"id":39,"name":"36.0.2","roomID":219,"view":[{"assetsPath":"/dynamic-plugins/com.fibaro.multilevelSensor/assets","jsPath":"/dynamic-plugins/com.fibaro.multilevelSensor","name":"com.fibaro.multilevelSensor","translatesPath":"/assets/i18n","type":"ts"}],"type":"com.fibaro.temperatureSensor","baseType":"com.fibaro.multilevelSensor","enabled":true,"visible":true,"isPlugin":false,"parentId":36,"viewXml":false,"configXml":false,"interfaces":["battery","zwave","zwaveWakeup"],"properties":{"parameters":[],"pollingTimeSec":0,"wakeUpTime":86400,"zwaveCompany":"Philio Technology Corp","zwaveInfo":"3,4,5","zwaveVersion":"1.14","batteryLevel":100,"batteryLowNotification":true,"categories":["climate"],"configured":true,"dead":false,"deadReason":"","defInterval":0,"deviceControlType":0,"deviceIcon":30,"endPointId":0,"log":"","logTemp":"","manufacturer":"","markAsDead":true,"maxInterval":0,"minInterval":0,"model":"","nodeId":6,"offset":0.0,"parametersTemplate":"0","pendingActions":false,"productInfo":"1,60,0,2,0,32,1,14","saveLogs":true,"serialNumber":"h'100d46e5","showFireAlarm":true,"showFreezeAlarm":false,"stepInterval":0,"unit":"C","useTemplate":true,"userDescription":"","value":20.9},"actions":{"reconfigure":0,"setInterval":1},"created":1625515690,"modified":1625515690,"sortOrder":13}

Child3:

{"id":40,"name":"36.0.3","roomID":219,"view":[{"assetsPath":"/dynamic-plugins/com.fibaro.multilevelSensor/assets","jsPath":"/dynamic-plugins/com.fibaro.multilevelSensor","name":"com.fibaro.multilevelSensor","translatesPath":"/assets/i18n","type":"ts"}],"type":"com.fibaro.humiditySensor","baseType":"com.fibaro.multilevelSensor","enabled":true,"visible":true,"isPlugin":false,"parentId":36,"viewXml":false,"configXml":false,"interfaces":["battery","zwave","zwaveWakeup"],"properties":{"parameters":[],"pollingTimeSec":0,"wakeUpTime":86400,"zwaveCompany":"Philio Technology Corp","zwaveInfo":"3,4,5","zwaveVersion":"1.14","batteryLevel":100,"batteryLowNotification":true,"categories":["other"],"configured":true,"dead":false,"deadReason":"","defInterval":0,"deviceControlType":0,"deviceIcon":31,"endPointId":0,"log":"","logTemp":"","manufacturer":"","markAsDead":true,"maxInterval":0,"minInterval":0,"model":"","nodeId":6,"parametersTemplate":"0","pendingActions":false,"productInfo":"1,60,0,2,0,32,1,14","saveLogs":true,"serialNumber":"h'100d46e5","stepInterval":0,"unit":"%","useTemplate":true,"userDescription":"","value":82.03},"actions":{"reconfigure":0,"setInterval":1},"created":1625515690,"modified":1625515690,"sortOrder":14}

And A Fibaro wall plug switch, this is the JSON from that device:

{"id":35,"name":"StekkerHC3","roomID":221,"view":[{"assetsPath":"/dynamic-plugins/com.fibaro.binarySwitch/assets","jsPath":"/dynamic-plugins/com.fibaro.binarySwitch","name":"com.fibaro.binarySwitch","translatesPath":"/dynamic-plugins/com.fibaro.binarySwitch/i18n","type":"ts"},{"assetsPath":"/dynamic-plugins/energy/assets","jsPath":"/dynamic-plugins/energy","name":"energy","translatesPath":"/dynamic-plugins/energy/i18n","type":"ts"},{"assetsPath":"/dynamic-plugins/power/assets","jsPath":"/dynamic-plugins/power","name":"power","translatesPath":"/dynamic-plugins/power/i18n","type":"ts"}],"type":"com.fibaro.FGWP102","baseType":"com.fibaro.FGWP","enabled":true,"visible":true,"isPlugin":false,"parentId":34,"viewXml":false,"configXml":false,"interfaces":["energy","fibaroFirmwareUpdate","light","power","zwave","zwaveAlarm","zwaveMultiChannelAssociation"],"properties":{"parameters":[{"id":1,"lastReportedValue":0,"lastSetValue":0,"size":1,"value":0},{"id":2,"lastReportedValue":1,"lastSetValue":1,"size":1,"value":1},{"id":3,"lastReportedValue":0,"lastSetValue":0,"size":2,"value":0},{"id":10,"lastReportedValue":80,"lastSetValue":80,"size":1,"value":80},{"id":11,"lastReportedValue":15,"lastSetValue":15,"size":1,"value":15},{"id":12,"lastReportedValue":30,"lastSetValue":30,"size":2,"value":30},{"id":13,"lastReportedValue":10,"lastSetValue":10,"size":2,"value":10},{"id":14,"lastReportedValue":3600,"lastSetValue":3600,"size":2,"value":3600},{"id":15,"lastReportedValue":0,"lastSetValue":0,"size":1,"value":0},{"id":20,"lastReportedValue":0,"lastSetValue":0,"size":1,"value":0},{"id":21,"lastReportedValue":300,"lastSetValue":300,"size":2,"value":300},{"id":22,"lastReportedValue":500,"lastSetValue":500,"size":2,"value":500},{"id":23,"lastReportedValue":6,"lastSetValue":6,"size":1,"value":6},{"id":24,"lastReportedValue":255,"lastSetValue":255,"size":2,"value":255},{"id":30,"lastReportedValue":63,"lastSetValue":63,"size":1,"value":63},{"id":31,"lastReportedValue":0,"lastSetValue":0,"size":1,"value":0},{"id":32,"lastReportedValue":600,"lastSetValue":600,"size":2,"value":600},{"id":40,"lastReportedValue":25000,"lastSetValue":25000,"size":2,"value":25000},{"id":41,"lastReportedValue":1,"lastSetValue":1,"size":1,"value":1},{"id":42,"lastReportedValue":0,"lastSetValue":0,"size":1,"value":0},{"id":43,"lastReportedValue":2,"lastSetValue":2,"size":1,"value":2},{"id":50,"lastReportedValue":3,"lastSetValue":3,"size":1,"value":3}],"pollingTimeSec":0,"zwaveCompany":"Fibargroup","zwaveInfo":"3,4,24","zwaveVersion":"3.2","alarmLevel":0,"alarmType":0,"categories":["lights"],"color":"white","configured":true,"dead":false,"deadReason":"","deviceControlType":2,"deviceIcon":125,"endPointId":0,"energy":0.0,"firmwareUpdate":{"info":"","progress":0,"status":"UpToDate","updateVersion":"3.2"},"icon":{"path":"assets/icon/fibaro/onoff/onoff100.png","source":"HC"},"isLight":true,"log":"","logTemp":"","manufacturer":"","markAsDead":true,"model":"","nodeId":5,"parametersTemplate":"741","power":0.0,"productInfo":"1,15,6,2,16,3,3,2","saveLogs":true,"serialNumber":"h'0000000000022a2a","showEnergy":true,"state":true,"updateVersion":"","useTemplate":true,"userDescription":"","value":true},"actions":{"abortUpdate":1,"reconfigure":0,"reset":0,"retryUpdate":1,"startUpdate":1,"toggle":0,"turnOff":0,"turnOn":0,"updateFirmware":1},"created":1625515690,"modified":1625515690,"sortOrder":9}

I hope you can add those devices. :)
Or is there a way to add them myself? I think I will have more devices missing when I am going to transfer everything to the HC3. But if you add then, it will make your plug-in more complete for all the users.....

Keep up the good work!

Aeotec siren 6 in mqtt

Hi Alexander,

do you think you can add the siren 6?

In the logs i get:

[27.10.2022] [10:08:08] [DEBUG] [QUICKAPP732]: Couldn't recognize device #350 - Sirene - com.fibaro.actor - com.fibaro.soundSwitch
[27.10.2022] [10:08:08] [DEBUG] [QUICKAPP732]: Couldn't recognize device #351 - Inbraak_Alarm - com.fibaro.actor - com.fibaro.soundSwitch
[27.10.2022] [10:08:08] [DEBUG] [QUICKAPP732]: Couldn't recognize device #352 - Deurbel - com.fibaro.actor - com.fibaro.soundSwitch
[27.10.2022] [10:08:08] [DEBUG] [QUICKAPP732]: Couldn't recognize device #353 - 348.4 - com.fibaro.actor - com.fibaro.soundSwitch
[27.10.2022] [10:08:08] [DEBUG] [QUICKAPP732]: Couldn't recognize device #354 - 348.5 - com.fibaro.actor - com.fibaro.soundSwitch
[27.10.2022] [10:08:08] [DEBUG] [QUICKAPP732]: Couldn't recognize device #355 - Smoke_Alarm - com.fibaro.actor - com.fibaro.soundSwitch
[27.10.2022] [10:08:08] [DEBUG] [QUICKAPP732]: Couldn't recognize device #356 - Brandalarm - com.fibaro.actor - com.fibaro.soundSwitch
[27.10.2022] [10:08:08] [DEBUG] [QUICKAPP732]: Couldn't recognize device #357 - 348.8 - com.fibaro.actor - com.fibaro.soundSwitch
[27.10.2022] [10:08:08] [DEBUG] [QUICKAPP732]: Couldn't recognize device #361 - Home - com.fibaro.device - com.fibaro.genericDevice

https://aeotec.com/products/aeotec-siren-6/

Thanks

Roelof

Problem in dispatchFibaroEventToMqtt(event) if a scene has the same identifier as a device

Hello and I wish you a happy end of the year,
I send you this message to inform you of a problem:

The devices and a scene in question (I specify that for the moment only 5 floodSensors are exported to Home Assistant, and therefore no motionSensor or other device)

1 floodSensor (id 142)
1 Scene (id 142)
1 motionSensor (id 175)

My explanation, which I hope is clear:

In my case, the motionSensor (#175) triggers a scene (#142) to turn on a socket for a while (it works fine for a long time with a scene).

The floodSensor is waiting for him to report a leak. (no problem with the leak sensor)

But here I have the impression and even the certainty that the event triggered by the scenario #142 and understood for an event of the floodSensor #142.

I think you should make changes in the function : dispatchFibaroEventToMqtt(event)

Attached is a screenshot of the last log.

image

Best regards.

Fibaro FGT-001 Radiator TRV support

Hi,

attached are the json files from the Fibaro FGT-001, parent and 3 childs. Please see if you can impement it :) I would send one but can't take it out from my installation.
Thank you !
FGT-001.zip

elero blinds and shutters support

Hi, can you please add support for elero venetian blinds and roller shutters? They behave a bit differently than already coded covers.

These devices advertise their state as string ("Unknown", "Opened", "Closed", "Opening", "Closing", "FavoritePosition1", "FavoritePosition2")
They don't respond to setValue command but to: "open", "close", "stop" and "setFavoritePosition" with additional argument "FavoritePosition1" or "FavoritePosition2".
There are three more commands which are not really needed: "rotateSlatsUp", "rotateSlatsDown", "stopSlats"

response_1677794384428.txt
response_1677794146086.txt

Change MQTT Topic

I have tried to change the MQTT topic to something like HC3/ . Made the change in mqtt_convention_api.lua line 39.

MqttConventionHomeAssistant = inheritFrom(MqttConventionPrototype)
MqttConventionHomeAssistant.type = "Home Assistant"
MqttConventionHomeAssistant.rootTopic = "HC3/"

Bridge starts but HA does't see any device.

For sure i'm missing something :) Please help.

PS: need to change the topic as i have quite a few Mqtt devices , all flooding homeasisstant topic.

Thank you !

QA just stops

Hi,

I see in the logs :

[20.09.2021] [18:05:11] [DEBUG] [QUICKAPP1508]: HC3-to-MQTT bridge shutdown sequence complete [20.09.2021] [18:07:24] [DEBUG] [QUICKAPP1508]: Disconnected from HC3 (got flagged to stop reading HC3 events)

And QA stops.

Any idea what is flagging it please ?

Problem with a keyFOB remote control in automations in HA

To test one of my keyFOB remotes in HA, I created a simple automation to turn on a light.

I attach screenshots ->

  1. In the MQTT integration the information of the pressed button is displayed (example button 2).
    image

  2. Automation:
    image

image

  1. but nothing happens in the trace (button 2 doesn't seem to trigger automation).

Am I us

Rooms are not imported as area

Rooms are not currently imported as area in HomeAssistant. For big installs with 100's of devices would be very convenient

Fibaro Thermostats support

Thank you very much for this nice piece of code!

It works just fine with my HCL3 controller and connected sensors and relays, but I can't get the thermostatic heads to be recognised in full by HomeAssistant.

I'm seeing only current temperature from it's sensors, but not the heating mode and heating setpoints.

Is it a bug or it is not implemented yet?

[Feature] Implement Mqtt standard specification

It would be interesting to implement in this project the specification describe here :
https://homieiot.github.io/

However, MQTT doesn’t define the structure and content of these messages and their relation. An IoT device publishes data and provides interaction possibilities but a controlling entity will need to be specifically configured to be able to interface with the device.

The Homie convention defines a standardized way of how IoT devices and services announce themselves and their data on the MQTT broker.

It is thereby a crucial aspect on top of the MQTT protocol for automatic discovery, configuration and usage of devices and services.

Some other xxx2mqtt already purpose this and I think specification for MQTT is the futur of home automation.
It would be not changing the way of this project work actually, but add another way to publish.

I'm from the open source project NextDom (home automation software) and we are working on another solution from scratch. We want to organize NextDom directly with MQTT and Node-Red (Nextdom becoming a kind of orchestrator. In this way, this standard for MQTT will be very interesting for us of course, but also for all others home automation software.

Thanks for reading and give me some feed back about that !

After update from 1.0.221 to 1.0.225 cover/curtain does not work anymore.

Hi,

My curtains do not work anymore from Home Assistant after updating to 1.0.225, I think something got messed up in the update.

For example cover.899 has now the status unknown. The Energy and Power sensor for that same cover are still working.

And in the home assistant log I see these error's:

Entity cover.899 does not support this service.

Error executing service: <ServiceCall cover.open_cover (c:01GVZAKNFSKN10ZKAPKD6BHDAZ): entity_id=['cover.899']>

Anything I can test / try to help with debug?

With kind regards,

Remco

Unable to discoverDeviceHierarchy

New user setup and I am running into a problem with the device discovery not completing.
The connection to my MQTT broker is working (regular updated messages to homeassistant\hc3-dead topic).

Running 1.0.203 from this site and HC3 5.130.64

The initialsation process for device discovery is not completing but gives no error message.
The following shows all the detail I get through the console:

[14.01.2023] [15:41:32] [DEBUG] [QUICKAPP284]:
[14.01.2023] [15:41:32] [DEBUG] [QUICKAPP284]: ------- Connected to MQTT (Home Assistant)
[14.01.2023] [15:41:32] [DEBUG] [QUICKAPP284]: Bridge mode: PRODUCTION
[14.01.2023] [15:41:32] [WARNING] [QUICKAPP284]: Variable deviceFilter not found
[14.01.2023] [15:41:32] [DEBUG] [QUICKAPP284]: All is good - default filter applied, where only enabled and visible devices are used
[14.01.2023] [15:41:32] [DEBUG] [QUICKAPP284]: Filter: {"filters":[{"value":[true],"filter":"enabled"},{"value":[true],"filter":"visible"}],"attributes":{"main":["id"]}}
[14.01.2023] [15:41:35] [DEBUG] [QUICKAPP284]: [BinarySensor.init] Uknown doow/window sensor 193 Shop Door

I tried to add in some debug messages around the code to isolate where it is stopping, but cannot chase it through yet. The odd part is the lack of error messages in the console.

Problems with devices of type remoteSceneController

I like the application very much. But i would like to ask if it is possible to add the remoteSceneController device Support to the App.

I tried to integrate it in the Code but I am stuck by missing knowledge about LUA and the System. I added the following lines to the file device_api (Line 96):

`-----------------------------------
-- CentralSceneEvent

Scene = inheritFrom(PrototypeDevice)
Scene.bridgeType = "scene"
Scene.bridgeBinary = true
Scene.bridgeMultilevel = false
Scene.bridgeRead = true
Scene.bridgeWrite = true

function Scene.isSupported(fibaroDevice)
if (fibaroDevice.baseType == "com.fibaro.remoteSceneController" or fibaroDevice.type == "com.fibaro.remoteController") then
return true
else
return false
end
end`
and added it at line 417.

The Debug Log shows me a warning: [WARNING] [QUICKAPP46]: TBD: Need to introduce new event type for CentralSceneEvent

I added a line in the "main" file to see what the variable "event.data" shows in the output:
[WARNING] [QUICKAPP46]: {"keyId":1,"id":25,"keyAttribute":"Pressed","icon":{"path":"assets\/icon\/fibaro\/com.fibaro.FGPB101_white\/com.fibaro.FGPB101-1Pressed_white.png","source":"HC"}}

I have here the API output of the devices, may it could help:
{"id":32,"name":"Taste1","roomID":219,"view":[],"type":"com.fibaro.remoteController","baseType":"com.fibaro.actor","enabled":true,"visible":true,"isPlugin":false,"parentId":30,"viewXml":false,"configXml":false,"interfaces":["battery","zwave","zwaveMultiChannelAssociation","zwaveWakeup"],"properties":{"parameters":[],"pollingTimeSec":0,"wakeUpTime":0,"zwaveCompany":"AEON Labs","zwaveInfo":"3,4,62","zwaveVersion":"2.3","batteryLevel":69,"batteryLowNotification":true,"categories":["remotes"],"configured":true,"dead":false,"deadReason":"","defInterval":0,"deviceControlType":0,"deviceIcon":103,"emailNotificationID":0,"emailNotificationType":0,"endPointId":1,"log":"","logTemp":"","manufacturer":"","markAsDead":true,"maxInterval":0,"minInterval":0,"model":"","nodeId":4,"parametersTemplate":"0","pendingActions":false,"productInfo":"0,134,0,2,0,130,2,3","pushNotificationID":0,"pushNotificationType":0,"saveLogs":true,"serialNumber":"","smsNotificationID":0,"smsNotificationType":0,"stepInterval":0,"useTemplate":true,"userDescription":""},"actions":{"reconfigure":0,"setInterval":1},"created":1628863086,"modified":1628863086,"sortOrder":14}

{"id":25,"name":"Zentral Aus","roomID":219,"view":[],"type":"com.fibaro.FGPB101","baseType":"com.fibaro.remoteSceneController","enabled":true,"visible":true,"isPlugin":false,"parentId":24,"viewXml":false,"configXml":false,"interfaces":["battery","fibaroFirmwareUpdate","zwave","zwaveAlarm","zwaveCentralScene","zwaveMultiChannelAssociation","zwaveWakeup"],"properties":{"parameters":[{"id":1,"lastReportedValue":127,"lastSetValue":127,"size":1,"value":127},{"id":3,"lastReportedValue":7,"lastSetValue":7,"size":1,"value":7},{"id":10,"lastReportedValue":3,"lastSetValue":3,"size":1,"value":3},{"id":11,"lastReportedValue":255,"lastSetValue":255,"size":2,"value":255},{"id":12,"lastReportedValue":1,"lastSetValue":1,"size":1,"value":1},{"id":13,"lastReportedValue":99,"lastSetValue":99,"size":2,"value":99},{"id":14,"lastReportedValue":0,"lastSetValue":0,"size":1,"value":0},{"id":15,"lastReportedValue":255,"lastSetValue":255,"size":2,"value":255},{"id":20,"lastReportedValue":3,"lastSetValue":3,"size":1,"value":3},{"id":21,"lastReportedValue":255,"lastSetValue":255,"size":2,"value":255},{"id":22,"lastReportedValue":1,"lastSetValue":1,"size":1,"value":1},{"id":23,"lastReportedValue":99,"lastSetValue":99,"size":2,"value":99},{"id":24,"lastReportedValue":0,"lastSetValue":0,"size":1,"value":0},{"id":25,"lastReportedValue":255,"lastSetValue":255,"size":2,"value":255},{"id":29,"lastReportedValue":3,"lastSetValue":3,"size":1,"value":3},{"id":30,"lastReportedValue":127,"lastSetValue":127,"size":1,"value":127}],"pollingTimeSec":0,"wakeUpTime":0,"zwaveCompany":"Fibargroup","zwaveInfo":"3,4,38","zwaveVersion":"3.2","alarmLevel":0,"alarmType":0,"batteryLevel":100,"batteryLowNotification":true,"categories":["remotes"],"centralSceneSupport":[{"keyAttributes":["Pressed","Released","HeldDown","Pressed2","Pressed3","Pressed4","Pressed5"],"keyId":1}],"configured":true,"dead":false,"deadReason":"","defInterval":0,"deviceControlType":0,"deviceIcon":115,"emailNotificationID":0,"emailNotificationType":0,"endPointId":0,"firmwareUpdate":{"info":"","progress":0,"status":"UpToDate","updateVersion":"3.2"},"icon":{"path":"assets/icon/fibaro/com.fibaro.FGPB101_white/com.fibaro.FGPB101_white.png","source":"HC"},"log":"","logTemp":"","manufacturer":"","markAsDead":true,"maxInterval":0,"minInterval":0,"model":"","nodeId":2,"panicMode":false,"parametersTemplate":"772","pendingActions":false,"productInfo":"1,15,15,1,16,0,3,2","pushNotificationID":0,"pushNotificationType":0,"saveLogs":true,"sequences":[],"serialNumber":"h'000000000001d077","smsNotificationID":0,"smsNotificationType":0,"stepInterval":0,"updateVersion":"","useTemplate":true,"userDescription":""},"actions":{"abortUpdate":1,"reconfigure":0,"retryUpdate":1,"setInterval":1,"startUpdate":1,"updateFirmware":1},"created":1628863086,"modified":1628863086,"sortOrder":7}

for my pourposes it would be enough if i have a json output of the variable "event.data".

Thank you for your help.

Duplicate battery entities for each device

I have the impression that for each device on battery, a new battery entity is created for each child entity. Shouldn't we create a battery entity linked to the parent, to no longer have multiple battery entities for each device?

Can't find a way to filter more than one device

Hi!

I'm trying to filter more than one device on the DeviceFilter local variable, but it only filter the first Device Id.

My DeviceFilter var looks like this:
{"filter":"deviceID", "value":[268]}, {"filter":"deviceID", "value":[269]}

Only DeviceId 268 gets to the HA... I would like to get only deviceId from 268 to 271, but I can't do that.

I also tried to create DeviceFilter2 and so on to add the other deviceID, but it also don't work.

Can you help me?

Integration issue

Hello,

I'm trying to integrate Home assistant in Home Center 3 but i have an issue.
The HC3 doesn't import anything from Home assistant.

Could you help me ?
Thanks

[04.08.2022] [12:04:59] [TRACE] [QUICKAPP162]: MQTT Connection Parameters: {"username":"","lastWill":{"payload":"true","topic":"homeassistant\/hc3-dead"},"clientId":"HC3","keepAlivePeriod":60,"password":""} [04.08.2022] [12:04:59] [DEBUG] [QUICKAPP162]: MQTT connection established [04.08.2022] [12:04:59] [DEBUG] [QUICKAPP162]: Bridge mode: PRODUCTION [04.08.2022] [12:04:59] [DEBUG] [QUICKAPP162]: Device filter URI '/devices?visible=true&enabled=true' [04.08.2022] [12:04:59] [DEBUG] [QUICKAPP162]: Couldn't recognize device #3 - YR Weather - com.fibaro.weather - com.fibaro.yrWeather [04.08.2022] [12:04:59] [DEBUG] [QUICKAPP162]: Device Détecteur fumée #38 (Salon) identified as binary_sensor-smoke [04.08.2022] [12:04:59] [DEBUG] [QUICKAPP162]: Device Détecteur de chaleur #39 (Salon) identified as binary_sensor-safety [04.08.2022] [12:05:00] [DEBUG] [QUICKAPP162]: Device Lumière Escalier #97 (Escalier) identified as light-dimmer [04.08.2022] [12:05:00] [DEBUG] [QUICKAPP162]: Device 104.0.1 #106 (Couloir) identified as sensor-remoteController [04.08.2022] [12:05:00] [DEBUG] [QUICKAPP162]: Device Lumière couloir #107 (Couloir) identified as light-dimmer [04.08.2022] [12:05:00] [DEBUG] [QUICKAPP162]: Couldn't recognize device #113 - Philips Hue - com.fibaro.device - com.fibaro.philipsHue [04.08.2022] [12:05:00] [DEBUG] [QUICKAPP162]: Device HC3 <-> MQTT Bridge #162 (Default Room) identified as light-binary [04.08.2022] [12:05:00] [DEBUG] [QUICKAPP162]: ---------------------------------- [04.08.2022] [12:05:00] [DEBUG] [QUICKAPP162]: Device discovery has been complete [04.08.2022] [12:05:00] [DEBUG] [QUICKAPP162]: ---------------------------------- [04.08.2022] [12:05:00] [DEBUG] [QUICKAPP162]: --------------------------------------------------- [04.08.2022] [12:05:00] [DEBUG] [QUICKAPP162]: Started monitoring events from Fibaro Home Center 3 [04.08.2022] [12:05:00] [DEBUG] [QUICKAPP162]: --------------------------------------------------- [04.08.2022] [12:26:49] [WARNING] [QUICKAPP162]: No device id for {"type":"UpdateReadyEvent","data":{"isReady":false},"created":1659608809} [04.08.2022] [12:26:49] [WARNING] [QUICKAPP162]: No device id for {"type":"UpdateReadyEvent","data":{"isReady":false},"created":1659608809} [04.08.2022] [12:26:49] [WARNING] [QUICKAPP162]: No device id for {"type":"UpdateReadyEvent","data":{"isReady":false},"created":1659608809} [04.08.2022] [12:26:49] [WARNING] [QUICKAPP162]: No device id for {"type":"UpdateReadyEvent","data":{"isReady":false},"created":1659608809} [04.08.2022] [12:26:49] [WARNING] [QUICKAPP162]: No device id for {"type":"UpdateReadyEvent","data":{"isReady":false},"created":1659608809} [04.08.2022] [12:26:49] [WARNING] [QUICKAPP162]: No device id for {"type":"UpdateReadyEvent","data":{"isReady":false},"created":1659608809} [04.08.2022] [12:28:38] [WARNING] [QUICKAPP162]: No device id for {"type":"WeatherChangedEvent","data":{"newValue":51.1,"change":"Humidity","oldValue":59.3},"created":1659608918} [04.08.2022] [12:28:38] [WARNING] [QUICKAPP162]: No device id for {"type":"WeatherChangedEvent","data":{"newValue":51.1,"change":"Humidity","oldValue":59.3},"created":1659608918} [04.08.2022] [12:28:38] [WARNING] [QUICKAPP162]: No device id for {"type":"WeatherChangedEvent","data":{"newValue":51.1,"change":"Humidity","oldValue":59.3},"created":1659608918} [04.08.2022] [12:28:38] [WARNING] [QUICKAPP162]: No device id for {"type":"WeatherChangedEvent","data":{"newValue":51.1,"change":"Humidity","oldValue":59.3},"created":1659608918} [04.08.2022] [12:28:38] [WARNING] [QUICKAPP162]: No device id for {"type":"WeatherChangedEvent","data":{"newValue":27.4,"change":"Temperature","oldValue":24.5},"created":1659608918} [04.08.2022] [12:28:38] [WARNING] [QUICKAPP162]: No device id for {"type":"WeatherChangedEvent","data":{"newValue":11.88,"change":"Wind","oldValue":10.44},"created":1659608918} [04.08.2022] [12:28:38] [WARNING] [QUICKAPP162]: No device id for {"type":"WeatherChangedEvent","data":{"newValue":30,"change":"ConditionCode","oldValue":40},"created":1659608918} [04.08.2022] [12:28:38] [WARNING] [QUICKAPP162]: No device id for {"type":"WeatherChangedEvent","data":{"newValue":"cloudy","change":"WeatherCondition","oldValue":"rain"},"created":1659608918}

Selective device import

Hi Alexander:) Hope you are ok and settled well in Berlin. Crazy times we live now....

I have a question: it might already be possible but i did not find out how.
How could i set the QA to just export into HA some devices , not all? or even more specific only some device properties. I have 126 devices and 433 entities in HA from HC3. I do not need all those entities and/or devices. I was thinking about impementing in the QA a list of devices id and a list of properties. If nothing is set in the list then all would be exported, else follow the list. Or in the varibles tabs.
Would that be feasible please?

Regards

Error while saving

I downloaded the new version - its corrupted or something else is wrong. When changing the variables - HC3 shows an error with red - "cannot save". Old version works. I tried download again / - try all over, but i cant save/change the variables. actually i have never seen this error in HC3 before. http://www.nyfodt.dk/downloads/Error%20while%20saving.jpg

Battery sensor created multiple times

Hi again :)

I noticed a bug and i can not find a way to solve it. We have battery devices like motion sensors, flood, smoke and so on. They all have a master device which gets discovered in HA and sub devices - entities.

Problem is that for each sub device , like temperature, light sensor and so on , a new battery sensor is created in HA.

image

Why this matters ? Because there are many extra entities that do not have any purpose, it should be only one battery sensor per master device and most important because it messes up the naming once again:

For a motion sensor there is:
binary_sensor.pirfibarodining_living - which is the motion sensor
sensor.pirfibarodining_living - which is the first battery sensor
sensor.lightsensordining_living_2 - which is the actual light sensor
sensor.lightsensordining_living - which is the second battery sensor.

So what happened is that the light sensor got the index 2 while the battery sensor got the naming of the lux sensor. So automations do not work anymore. I can not find any way to convince it to give the naming wihtout index to the actual light sensor.

Can this be solved somehow so we have only one battery device ?

thank you !!!

not a issue just ask

if I want to connect directly to the room assistant without the home assistant can this QA do it?

"Device modified" event causes QuickApp crash

Posting the issues on behalf of @MomosX

One other issue i just noticed now. From HC3 i calibrated a roller shutter. At that point the QA just crashed.

[18.10.2021] [20:54:58] [DEBUG] [QUICKAPP1508]: Unsupported event type received "PluginChangedViewEvent". All is good - feel free contact this QuickApp developer to get it supported [18.10.2021] [20:54:59] [DEBUG] [QUICKAPP1508]: Device modified 98 [18.10.2021] [20:54:59] [DEBUG] [QUICKAPP1508]: Device removed 98 [18.10.2021] [20:55:00] [DEBUG] [QUICKAPP1508]: Device created {"configXml":false,"properties":{"categories":["blinds"],"pollingTimeSec":0,"emailNotificationID":0,"favoritePosition":50,"showEnergy":true,"localProtectionSupport":5,"smsNotificationType":0,"parametersTemplate":"249","energy":3.24,"manufacturer":"","logTemp":"TxtGreen","emailNotificationType":0,"log":"transfer OK","zwaveInfo":"3,3,52","value":98,"value2":0,"protectionTimeout":0,"userDescription":"","firmwareUpdate":{"updateVersion":"22.22","info":"","status":"UpToDate","progress":0},"useTemplate":true,"protectionExclusiveControlSupport":false,"updateVersion":"","nodeId":32,"parameters":[{"lastReportedValue":0,"lastSetValue":0,"value":0,"size":1,"id":3},{"lastReportedValue":1,"lastSetValue":1,"value":1,"size":1,"id":10},{"lastReportedValue":150,"lastSetValue":150,"value":150,"size":2,"id":12},{"lastReportedValue":1,"lastSetValue":1,"value":1,"size":1,"id":13},{"lastReportedValue":0,"lastSetValue":0,"value":0,"size":1,"id":14},{"lastReportedValue":10,"lastSetValue":10,"value":10,"size":1,"id":17},{"lastReportedValue":10,"lastSetValue":10,"value":10,"size":1,"id":18},{"lastReportedValue":240,"lastSetValue":240,"value":240,"size":2,"id":22},{"lastReportedValue":0,"lastSetValue":0,"value":0,"size":1,"id":29},{"lastReportedValue":0,"lastSetValue":0,"value":0,"size":1,"id":30},{"lastReportedValue":0,"lastSetValue":0,"value":0,"size":1,"id":31},{"lastReportedValue":0,"lastSetValue":0,"value":0,"size":1,"id":32},{"lastReportedValue":0,"lastSetValue":0,"value":0,"size":1,"id":33},{"lastReportedValue":1,"lastSetValue":1,"value":1,"size":1,"id":35},{"lastReportedValue":0,"lastSetValue":0,"value":0,"size":1,"id":40},{"lastReportedValue":0,"lastSetValue":0,"value":0,"size":2,"id":42},{"lastReportedValue":0,"lastSetValue":0,"value":0,"size":1,"id":43},{"lastReportedValue":0,"lastSetValue":0,"value":0,"size":1,"id":44},{"lastReportedValue":0,"lastSetValue":0,"value":0,"size":1,"id":50}],"pushNotificationType":0,"protectionState":0,"RFProtectionState":0,"smsNotificationID":0,"localProtectionState":0,"deviceControlType":54,"markAsDead":true,"productInfo":"1,15,3,1,16,1,22,22","serialNumber":"","endPointId":0,"protectionTimeoutSupport":false,"saveToEnergyPanel":true,"saveLogs":true,"state":"Unknown","deviceIcon":87,"pushNotificationID":0,"sceneActivation":0,"RFProtectionSupport":3,"protectionExclusiveControl":0,"zwaveVersion":"22.22","power":0.0,"zwaveCompany":"Fibargroup","dead":false,"deadReason":"","model":"","configured":true},"actions":{"retryUpdate":1,"startLevelIncrease":0,"setValue2":1,"getParameter":1,"stopLevelChange":0,"sceneActivationSet":0,"abortUpdate":1,"setParameter":2,"open":0,"updateFirmware":1,"close":0,"reconfigure":0,"startUpdate":1,"startLevelDecrease":0,"reset":0,"setValue":1,"stop":0,"setFavoritePosition":0},"visible":true,"enabled":true,"id":98,"roomID":225,"name":"RulouSudVestLiving","isPlugin":false,"baseType":"com.fibaro.FGR","type":"com.fibaro.FGRM222","sortOrder":62,"parentId":97,"modified":1634577413,"created":1634577413,"interfaces":["energy","fibaroFirmwareUpdate","levelChange","power","zwave","zwaveConfiguration","zwaveProtection","zwaveSceneActivation"],"viewXml":false,"view":[{"name":"com.fibaro.rollerShutter","translatesPath":"/dynamic-plugins/com.fibaro.rollerShutter/i18n","type":"ts","jsPath":"/dynamic-plugins/com.fibaro.rollerShutter","assetsPath":"/dynamic-plugins/com.fibaro.rollerShutter/assets"},{"name":"energy","translatesPath":"/dynamic-plugins/energy/i18n","type":"ts","jsPath":"/dynamic-plugins/energy","assetsPath":"/dynamic-plugins/energy/assets"},{"name":"level-change","translatesPath":"/dynamic-plugins/level-change/i18n","type":"ts","jsPath":"/dynamic-plugins/level-change","assetsPath":"/assets/icon"},{"name":"power","translatesPath":"/dynamic-plugins/power/i18n","type":"ts","jsPath":"/dynamic-plugins/power","assetsPath":"/dynamic-plugins/power/assets"}]} [18.10.2021] [20:55:00] [ERROR] [QUICKAPP1508]: QuickApp crashed [18.10.2021] [20:55:00] [ERROR] [QUICKAPP1508]: mqtt_convention_api.lua:99: attempt to index a nil value (local 'device') [18.10.2021] [20:56:00] [DEBUG] [QUICKAPP1508]: -------------------------

feat request : nice blinder support

Hi I have Nice blinder.
I could try to add support just need some guidelines.

I would like to be able to use Yubii Home as mqtt gateway, send order from HASS via mqtt in order to open and close blinder.

Do you have some kind of "add device support" guideline documentation ?

Devices unavailable after HA restart

Hello.
Great job. It works great for me.
Just a problem when I restart home assistant, the devices become "unavailable".
I tried to use the mqtt.publish service from home assistant, it is possible to send a value to the HC3.
The only way to get an "available" status in home assistant is to relaunch the quickapp.
Can you help me on this point?
Thank you.
Nico

cover:close

Using the cover: close function from HA outputs a warning message:

"WARNING (MainThread) [homeassistant.components.mqtt.cover] Payload is not supported (e.g. open, closed, opening, closing, stopped): close"

I think it is related to the state payload from MQTT . Looking at the mqtt_convention_api i think the following should be changed:

        msg.payload_open = "open"
        msg.payload_close = "close"
        msg.payload_stop = "stop"

        msg.state_open = "open"
        msg.state_closed = "close" -- it is "closed" in the QA now
        msg.state_opening = "opening"
        msg.state_closing = "closing"
        msg.state_stopped = "stop" -- missing in the QA now

Happy New Year !!!!!

Device of type com.fibaro.FGT001

Hi,

I really very appreciate your work it is very helpful for my integration of Fibaro to Home Assistant.

I have a small improvement for the Fibaro Heat Controller

If I add

function Thermostat.isSupported(fibaroDevice)
    if (fibaroDevice.type == "com.fibaro.hvacSystem" or **fibaroDevice.type == "com.fibaro.FGT001"**) then 
        return true 
    else 
        return false
    end
end

it is working without any issues.

Cheers

D.

Juste question for potential feature - Send mqtt every x min

Hello,

Your QuickApp is very interresting and I use it since several week/month to load in Influxdb some data.
But I've some device without lot of update, like Internet box, where power is very stable, or some other device when they are off... and if understand, no new mqtt message if no update.

But when I try to have grap (grafana), without data, it's complicated to have correct interface.
I would like to know if it's possible to have process to have regulare message, without wait update of device. I see 2 solutions, but not sure if I've capacity to implemente them :

  • Have process to rescan and sent mqtt message every x min
  • QA subcribe to topic mqtt, an when message is recieved, new scan is done

What to you think of this feature ?

Thanks

QA keeps restarting - Variable not found

Hi,

I wanted to try the QA but after filling all the variables it crashes with an error 2 and keeps restarting.

[21.08.2021] [23:46:04] [WARNING] [QUICKAPP1501]: Variable hc3Auth not found [21.08.2021] [23:46:04] [DEBUG] [QUICKAPP1501]: --------------------------------------------------- [21.08.2021] [23:46:04] [DEBUG] [QUICKAPP1501]: Started monitoring events from Fibaro Home Center 3 [21.08.2021] [23:46:04] [DEBUG] [QUICKAPP1501]: --------------------------------------------------- [21.08.2021] [23:46:04] [ERROR] [QUICKAPP1501]: MQTT ERROR: {"code":2} [21.08.2021] [23:46:04] [DEBUG] [QUICKAPP1501]: Disconnected from MQTT and HC3 [21.08.2021] [23:46:04] [DEBUG] [QUICKAPP1501]: Turned off HC3-to-MQTT bridge at Fibaro GUI [21.08.2021] [23:46:04] [DEBUG] [QUICKAPP1501]: Got flagged to stop reading HC3 events [21.08.2021] [23:46:14] [DEBUG] [QUICKAPP1501]: Attempt to reconnect to MQTT... [21.08.2021] [23:46:14] [WARNING] [QUICKAPP1501]: Variable mqttClientId not found [21.08.2021] [23:46:14] [WARNING] [QUICKAPP1501]: Variable mqttAuth not found

I complains about Variable hc3Auth, mqttClientId and mqttAuth not being found.

It discovers the devices but keeps restaring due to the above errors.

Temperatures do not update from Fibaro Multisensors

Hi!

Weird problem. Temperatures do not update from Fibaro Multisensors, except when I reboot HA. Any ideas?

Thank you!

PS: I tried to donate 20 € via Paypal and credit card. I got message "...this payment can't be completed due to regulations."

Hope you are OK!

Changing the 'mqtt-convention' crashes the QA.

Changing the 'mqtt-convention' [from 'home-assistant'] crashes the QA.
There appear to be some hard-coded assumptions on the value of this variable.

My assumption: This variable sets the MQTT topic prefix. [And I don't use Home Assistant...]

But hey, Слава Україні! and hoping for better times for you! And thanks so much for this QA. I can provide more details if needed once you're back up and running safe and sound.

Qubino 3 Phase Smart Meter

Will get two switches in HA but no values ? See all values in HC3 but no one in HA
https://qubino.com/products/3-phase-smart-meter/

Config_entry_mqtt

"id": "d5941b377db4de900811ac320ebd4dd0",
    "name": "773",
    "name_by_user": null,
    "disabled": false,
    "disabled_by": null,
    "entities": [
      {
        "device_class": null,
        "disabled_by": null,
        "disabled": false,
        "entity_category": null,
        "entity_id": "light.793_5_el_forbrukning",
        "icon": null,
        "original_device_class": null,
        "original_icon": null,
        "state": {
          "entity_id": "light.793_5_el_forbrukning",
          "state": "on",
          "attributes": {
            "supported_color_modes": [
              "onoff"
            ],
            "color_mode": "onoff",
            "viewXml": false,
            "id": 937,
            "visible": true,
            "baseType": "com.fibaro.actor",
            "isPlugin": false,
            "configXml": false,
            "type": "com.fibaro.binarySwitch",
            "enabled": true,
            "interfaces": [
              "light",
              "zwave",
              "zwaveMultiChannelAssociation"
            ],
            "roomID": 601,
            "sortOrder": 242,
            "modified": 1647163172,
            "parentId": 793,
            "created": 1647163172,
            "actions": {
              "toggle": 0,
              "turnOn": 0,
              "turnOff": 0,
              "reconfigure": 0
            },
            "properties": {
              "logTemp": "",
              "saveLogs": true,
              "useTemplate": true,
              "value": false,
              "deadReason": "",
              "userDescription": "",
              "isLight": true,
              "supportedDeviceRoles": [
                "Light",
                "Drencher",
                "Pin",
                "NightLamp",
                "Kettle",
                "Bracket",
                "AirConditioner",
                "AlarmAlarm",
                "Coffee",
                "GardenLamp",
                "TvSet",
                "CeilingFan",
                "Toaster",
                "Radio",
                "RoofWindow",
                "Other",
                "AlarmState",
                "AlarmArm",
                "VideoGateBell",
                "VideoGateOpen",
                "Valve"
              ],
              "deviceIcon": 2,
              "deviceRole": "Light",
              "categories": [
                "lights"
              ],
              "zwaveInfo": "3,4,61",
              "dead": false,
              "zwaveCompany": "Goap",
              "zwaveVersion": "1.0",
              "endPointId": 5,
              "state": false,
              "serialNumber": "",
              "log": "",
              "productInfo": "1,89,0,7,0,84,1,0",
              "markAsDead": true,
              "pollingTimeSec": 0,
              "model": "",
              "deviceControlType": 2,
              "parametersTemplate": 847,
              "nodeId": 97,
              "manufacturer": "",
              "configured": true
            },
            "view": [
              {
                "translatesPath": "/dynamic-plugins/com.fibaro.binarySwitch/i18n",
                "assetsPath": "/dynamic-plugins/com.fibaro.binarySwitch/assets",
                "name": "com.fibaro.binarySwitch",
                "type": "ts",
                "jsPath": "/dynamic-plugins/com.fibaro.binarySwitch"
              }
            ],
            "friendly_name": "793.5 (El f\u00f6rbrukning)",
            "supported_features": 0
          },
          "last_changed": "2022-03-13T09:35:09.223818+00:00",
          "last_updated": "2022-03-13T09:35:09.223818+00:00"
        },
        "unit_of_measurement": null
      },
      {
        "device_class": null,
        "disabled_by": null,
        "disabled": false,
        "entity_category": null,
        "entity_id": "light.793_6_el_forbrukning",
        "icon": null,
        "original_device_class": null,
        "original_icon": null,
        "state": {
          "entity_id": "light.793_6_el_forbrukning",
          "state": "on",
          "attributes": {
            "supported_color_modes": [
              "onoff"
            ],
            "color_mode": "onoff",
            "viewXml": false,
            "id": 938,
            "visible": true,
            "baseType": "com.fibaro.actor",
            "isPlugin": false,
            "configXml": false,
            "type": "com.fibaro.binarySwitch",
            "enabled": true,
            "interfaces": [
              "light",
              "zwave",
              "zwaveMultiChannelAssociation"
            ],
            "roomID": 601,
            "sortOrder": 243,
            "modified": 1647163172,
            "parentId": 793,
            "created": 1647163172,
            "actions": {
              "toggle": 0,
              "turnOn": 0,
              "turnOff": 0,
              "reconfigure": 0
            },
            "properties": {
              "logTemp": "",
              "saveLogs": true,
              "useTemplate": true,
              "value": false,
              "deadReason": "",
              "userDescription": "",
              "isLight": true,
              "supportedDeviceRoles": [
                "Light",
                "Drencher",
                "Pin",
                "NightLamp",
                "Kettle",
                "Bracket",
                "AirConditioner",
                "AlarmAlarm",
                "Coffee",
                "GardenLamp",
                "TvSet",
                "CeilingFan",
                "Toaster",
                "Radio",
                "RoofWindow",
                "Other",
                "AlarmState",
                "AlarmArm",
                "VideoGateBell",
                "VideoGateOpen",
                "Valve"
              ],
              "deviceIcon": 2,
              "deviceRole": "Light",
              "categories": [
                "lights"
              ],
              "zwaveInfo": "3,4,61",
              "dead": false,
              "zwaveCompany": "Goap",
              "zwaveVersion": "1.0",
              "endPointId": 6,
              "state": false,
              "serialNumber": "",
              "log": "",
              "productInfo": "1,89,0,7,0,84,1,0",
              "markAsDead": true,
              "pollingTimeSec": 0,
              "model": "",
              "deviceControlType": 2,
              "parametersTemplate": 847,
              "nodeId": 97,
              "manufacturer": "",
              "configured": true
            },
            "view": [
              {
                "translatesPath": "/dynamic-plugins/com.fibaro.binarySwitch/i18n",
                "assetsPath": "/dynamic-plugins/com.fibaro.binarySwitch/assets",
                "name": "com.fibaro.binarySwitch",
                "type": "ts",
                "jsPath": "/dynamic-plugins/com.fibaro.binarySwitch"
              }
            ],
            "friendly_name": "793.6 (El f\u00f6rbrukning)",
            "supported_features": 0
          },
          "last_changed": "2022-03-13T09:35:10.206376+00:00",
          "last_updated": "2022-03-13T09:35:10.206376+00:00"
        },
        "unit_of_measurement": null
      }
    ]
  }
],

Battery level to HA

Hello Alexander.
is there a way to get the battery levels from Zwave device like thermostat to HA?
Jerome

Z-wave remote support

Plug-in is still working well here. :)

I only have one device not supported , a remote. They sell it only with different brand names.

https://heatit.com/product/9311/smart-products/controllers/heatit-z-push-button-8-white/1107

This is the JSON for the 8 button version:

{"id":984,"name":"8 Knoppen Deur","roomID":224,"view":[],"type":"com.fibaro.remoteController","baseType":"com.fibaro.actor","enabled":true,"visible":true,"isPlugin":false,"parentId":983,"viewXml":false,"configXml":false,"interfaces":["battery","fibaroFirmwareUpdate","zwave","zwaveCentralScene","zwaveMultiChannelAssociation","zwaveWakeup"],"properties":{"parameters":[],"pollingTimeSec":0,"wakeUpTime":28800,"zwaveCompany":"Heatit","zwaveInfo":"3,5,3","zwaveVersion":"1.26","batteryLevel":74,"batteryLowNotification":true,"categories":["remotes"],"centralSceneSupport":[{"keyAttributes":["Pressed","Released","HeldDown"],"keyId":1},{"keyAttributes":["Pressed","Released","HeldDown"],"keyId":2},{"keyAttributes":["Pressed","Released","HeldDown"],"keyId":3},{"keyAttributes":["Pressed","Released","HeldDown"],"keyId":4},{"keyAttributes":["Pressed","Released","HeldDown"],"keyId":5},{"keyAttributes":["Pressed","Released","HeldDown"],"keyId":6},{"keyAttributes":["Pressed","Released","HeldDown"],"keyId":7},{"keyAttributes":["Pressed","Released","HeldDown"],"keyId":8}],"configured":true,"dead":false,"deadReason":"","defInterval":0,"deviceControlType":0,"deviceIcon":103,"emailNotificationID":0,"emailNotificationType":0,"endPointId":0,"firmwareUpdate":{"info":"","progress":0,"status":"UpToDate","updateVersion":"1.26"},"log":"","logTemp":"","manufacturer":"","markAsDead":true,"maxInterval":0,"minInterval":0,"model":"","nodeId":176,"parametersTemplate":"889","pendingActions":false,"productInfo":"1,155,3,0,163,5,1,26","pushNotificationID":0,"pushNotificationType":0,"remoteGatewayId":0,"saveLogs":true,"serialNumber":"h'0000000000000000000000000000000000ff","smsNotificationID":0,"smsNotificationType":0,"stepInterval":0,"updateVersion":"","useTemplate":true,"userDescription":""},"actions":{},"created":1632778740,"modified":1632778740,"sortOrder":479}

Error while fetching Fibaro HC3 events "End of file"

Hello, I have a problem with the QuickApp, it stops without any reason apparently.

I attach the Error log (stopped after a few minutes of commissioning):
apparently occurs in 'function QuickApp:readHc3EventAndScheduleFetcher())

[08.01.2023] [12:25:50] [ERROR] [QUICKAPP555]: Error while fetching Fibaro HC3 events "End of file"
[08.01.2023] [12:25:50] [DEBUG] [QUICKAPP555]:
[08.01.2023] [12:25:50] [DEBUG] [QUICKAPP555]: ------- Disconnected from Fibaro HC3
[08.01.2023] [12:25:50] [DEBUG] [QUICKAPP555]:
[08.01.2023] [12:25:50] [DEBUG] [QUICKAPP555]: ------- Disconnected from MQTT (Home Assistant)

have a nice day.

Unexpected response status

Hi Alexander,

I have successfully installed your quickapp. Everything seems to function perfectly.
Only in the logs, every so many seconds comes the message:

[WARNING] [QUICKAPP496]: Unexpected response status STARTING_SERVICES

It doesn't seem to bother the operation, but I have no idea where this comes from. I also asked this question on the fibaro forum in the topic about this quickapp, but I think you prefer github to discuss the issues.

I realize that you are in a special situation. And i hope those problems will resolve quickly and everyone in the Ukraine will be able to rebuild their lives to normal in the coming year.

So, absolutely the best for you in 2023.

And thanks for your code!

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.