superbox-dev / unipi-control Goto Github PK
View Code? Open in Web Editor NEWControl Unipi I/O directly with MQTT commands.
License: Apache License 2.0
Control Unipi I/O directly with MQTT commands.
License: Apache License 2.0
This is probably some misconfiguration on my part, but I'm not able to find what is wrong in logs or documentation.
Worth to mention that I added yml for xS10
extension myself #121 so there might be some error with it? I'm not sure at this moment how unipi-control
decides which hw definition is used.
Here is relevant part of my configuration:
modbus_serial:
port: /dev/extcomm/0/0
baud_rate: 19200
units:
- unit: 1
device_name: xS10
identifier: xS10
suggested_area: 1.03 Technická
Btw. I can't find in docs what identifier
is used for.
In evok, working configuration is:
[EXTENSION_1]
global_id = 2
device_name = xS10
modbus_uart_port = /dev/extcomm/0/0
allow_register_access = False
address = 1
scan_frequency = 10
scan_enabled = True
baud_rate = 19200
Evok is stopped. When I start unipi-control, it says Reading extensions but there are no features from extension available, only those from main unit are.
(.venv) unipi@holly:~/dev/unipi_control$ sudo /home/unipi/.pyenv/shims/unipi-control
2023-11-19 21:05:54,959 | INFO | [MODBUS] TCP client connected to localhost:502
2023-11-19 21:05:54,963 | INFO | [MODBUS] Serial client connected to /dev/extcomm/0/0
2023-11-19 21:05:54,964 | INFO | [MODBUS] Reading SPI boards
2023-11-19 21:05:54,979 | INFO | [MODBUS] Reading extensions
2023-11-19 21:05:56,010 | INFO | [CONFIG] 72 features initialized.
Thanks for any tips.
Hi,
I discovered your project yesterday when I tried to replace some of custom scripts I'm using on my Unipi. After some digging, it seems it is much much better then I hoped for, thanks for it!
I'm currently using modbus integration in HA, but unipi-control seems much faster (more responsive), so I would like to ditch all my modbus configs and switch over to it. But I realized that all RO's are discovered as switches and there is no option in Features
to handle RO as light
instead of switch
.
TBH, I'm not 100 % sure at this moment why I need light switches as lights :) but I remember I had troubles with this in HA before and it had been worth it to change modbus switches to lights.
I'm opening this issue more as a discussion - are you open to have this feature in unipi-control? If yes, I can try to prepare PR, but I would appreciate any tips for where to begin and how you would like to have this configured. My thought was add something like device_integration
next to device_class
.
What a wonderful project!
Would you be able to support the Unipi 1.1 as well?
I tried running your project, but I am getting an error because /sys/bus/i2c/devices/1-0057/eeprom seems to be read when it is empty with the Unipi 1.1.
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.