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

Huge code rewrite to be more adaptive + other fixes #16

Open
wants to merge 21 commits into
base: master
Choose a base branch
from

Conversation

espenh-no
Copy link

@espenh-no espenh-no commented Jul 31, 2024

Breaking changes

Note that version 0.3.x includes breaking changes from 0.2.x.
This is mainly due to the refactor to include adapter name in the identifiers, and how entities are grouped to one device.
You may have to update all entities in dashboards and automations etc.

New, fixed, and improved:

  • Huge code rewrite to be more adaptive
  • Added basic lock/unlock for doorlocks. Tested with IDLock 150 (Unlock commands are currently not supported on Zigbee)
  • Added thermostat support
    • Set mode
    • Set target temp
    • Change fan speed if device supports it (e.g Sensibo)
  • Added humidity sensor
  • Fixed meter_elec service for accumulated energy usage (kWh)
  • Expanded meter_elec service for devices that supports this:
    • Power (W)
    • Voltage (V)
    • Current (A)
  • Changed mode sensor to be a (dropdown) select, so you are able to switch mode
  • Added shortcuts support
  • Added room support
    • Devices will be placed in rooms with the same names as Futurehome. If the room does not exist it will be created
  • All devices now generate MQTT devices and group all common sensors and controls
  • (dev) added .env file to be sourced with python-dotenv

Fixed in 0.3.1:

  • Fails to install on Home Assistant. Error: The command '/bin/ash -o pipefail -c apk add --no-cache python3 py-pip && pip3 install --upgrade pip' returned a non-zero code: 1

Fixed in 0.3.2:

  • Added basic HAN sensor support
  • Updated README
    • Clearer installation instructions
    • Added 'Known issues' section

Fixed in 0.3.3

  • Added logo and icon
  • Fixes: On some thermostats (e.g Heatit) you are currently not able to readout current measured temperature (room temp sensor or floor temp sensor) directly on the thermostat card as it is on a different device.
    Note that the temperature sensor that have the "Set as main temp sensor" checkbox checked in the Futurehome app will be used.

Fixed in 0.3.4

  • Removed unused dependency 'requests'

Fixed in 0.3.5

  • Added support for contact sensors
    • Subtypes door, window, garage supported
  • Added more checks on reports from sensors
  • Added support to select if you want to include or excluding certain devices from being synced
  • Move mode and shortcut to one device "Futurehome Smarthub"
  • Updated README
    • Support for contact sensor
    • Describing the selected_devices in configuration
  • (dev) Added symbolic link for README.md into futurehome2mqtt directory.
    This allows the add-on store to show the content of README.md instead of nothing.
  • (dev) Refactored client.py, and removed fimp.py
  • (dev) Changed env variables to snake_case for readability
  • (dev) Changed from str to password for fimp_password on configuration screen
  • (dev) Added breaking_versions to config file
  • (dev) Temporarily fixed debug option - verbose logging enabled if option is set to true.
    Plan to use better logger with loglevels.
  • (dev) Removed name from device object for sensor_temp.
    This will prevent device name for Heatit z-trm3 to be overwritten with the sensor name

Fixed in 0.3.6

  • Added more sensors in meter_elec
    • p_import
    • e_import
    • p_import_react
    • p_export_react
  • Added 'boiler' type as switch
  • (dev) Some cleanup in meter_elec.py

Fixed in 0.3.7

  • Updated README
  • Changed selected_devices_mode default option from 'ignored' to 'default' to include all supported devices.

Known issues:

  • Some devices might still use sensor_power (deprecated) and sensor_voltage (deprecated) instead of meter_elec. This needs to be fixed by Futurehome. (This is also mentioned in the README.md)

Fixes issues:
#5
#15

Includes PRs:
#14
#13

No need of merging (no longer in use):
#12

Copy link
Author

@espenh-no espenh-no left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SR

@espenh-no espenh-no marked this pull request as ready for review July 31, 2024 20:58
Copy link
Author

@espenh-no espenh-no left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SR and tested

@espenh-no
Copy link
Author

@runelangseid Note that VS Code did not like the move of the devcontainer.json file. It seems like the devcontainer need to be recreated if we are moving forward with this. If this is not a good solution then we can revert back to the old location.

Copy link
Author

@espenh-no espenh-no left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SR

Copy link
Author

@espenh-no espenh-no left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SR

Copy link
Author

@espenh-no espenh-no left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SR

Copy link
Author

@espenh-no espenh-no left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SR

Copy link
Author

@espenh-no espenh-no left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SR

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

Successfully merging this pull request may close these issues.

1 participant