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

No MQTT Topics - device removed after starting dali_mqtt_daemon.py #51

Open
pafra opened this issue Sep 7, 2021 · 9 comments
Open

No MQTT Topics - device removed after starting dali_mqtt_daemon.py #51

pafra opened this issue Sep 7, 2021 · 9 comments

Comments

@pafra
Copy link

pafra commented Sep 7, 2021

Hi all,

I have installed dali2mqtt according to your instructions.

But on the MQTT server I don't see any topics from the lamps.
But I see the status of the dali2mqtt.

What could be the problem?

Here are the output:

~/dali2mqtt-venv/bin/python3 ~/dali2mqtt/dali_mqtt_daemon.py --config ~/dali2mqtt/config.yaml --log-level debug --log-color 
2021-09-07 16:37:16,567 DEBUG: Loading devices names from <devices.yaml>
2021-09-07 16:37:16,574 DEBUG: Using <tridonic> driver
2021-09-07 16:37:16,666 DEBUG: Connecting to 192.168.4.201:1883
2021-09-07 16:37:16,681 DEBUG: Loading devices names from <devices.yaml>
2021-09-07 16:37:18,566 INFO: Found 2 lamps
mosquitto_sub -h 192.168.4.201 -u myuser -P mypassword -t dali/+ -v
dali/status offline
dali/status online

thx

@dgomes
Copy link
Owner

dgomes commented Sep 7, 2021

can you share your config.yaml ?

@pafra
Copy link
Author

pafra commented Sep 7, 2021

The device was removed at the start of dali_mqtt_daemon.py

There is no massage in the log or dmesg

ls -l /dev/hidraw0
crw------- 1 root root 237, 0 Jul 21 19:00 /dev/hidraw0

# Start daemon
~/dali2mqtt-venv/bin/python3 ~/dali2mqtt/dali_mqtt_daemon.py --config ~/dali2mqtt/config.yaml --log-level debug --log-color 
2021-09-07 16:37:16,567 DEBUG: Loading devices names from <devices.yaml>
2021-09-07 16:37:16,574 DEBUG: Using <tridonic> driver
2021-09-07 16:37:16,666 DEBUG: Connecting to 192.168.4.201:1883
2021-09-07 16:37:16,681 DEBUG: Loading devices names from <devices.yaml>
2021-09-07 16:37:18,566 INFO: Found 2 lamps

# and then the device is gone
ls -l /dev/hidraw0                                                       
ls: cannot access '/dev/hidraw0': No such file or directory

@pafra
Copy link
Author

pafra commented Sep 7, 2021

Yes,

cat config.yaml

dali_driver: tridonic
devices_names: devices.yaml
ha_discovery_prefix: homeassistant
log_color: true
log_level: debug
mqtt_base_topic: dali
mqtt_password: mypassword
mqtt_port: 1883
mqtt_server: 192.168.4.201
mqtt_username: myuser

@pafra
Copy link
Author

pafra commented Sep 7, 2021

I am using Ubuntu 20.04.3 aarch64 (Raspi)

@dgomes
Copy link
Owner

dgomes commented Sep 7, 2021

strange.... I don't have a tridonic device myself to test :(

@AdamN1 do you have a tridonic ?

@pafra pafra changed the title No MQTT Topics No MQTT Topics - device removed after starting dali_mqtt_daemon.py Sep 23, 2021
@pafra
Copy link
Author

pafra commented Sep 23, 2021

@dgomes what OS do you using?

@dgomes
Copy link
Owner

dgomes commented Sep 23, 2021

I'm running dali2mqtt on the latests raspian version

@pafra
Copy link
Author

pafra commented Sep 23, 2021

thx, I will test it in the next days

@AdamN1
Copy link

AdamN1 commented Apr 17, 2022

strange.... I don't have a tridonic device myself to test :(

@AdamN1 do you have a tridonic ?

Unfortunately not, i will try search something and test.

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

No branches or pull requests

3 participants