-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
Lametric component sound problem and cycles feature request #10561
Comments
Does the |
No. The notification is only displayed once. On the lametric site, the lifetime should be in milliseconds. In HA is in seconds. |
So nothing changes if you change the |
Let me try in milliseconds. |
It makes 20000000 in the log, the recalculate works. :D No, if it is set to 20 seconds in the config, the notification is showed once. It is about 6 seconds. From lametric site for lifetime:
It is not the time to display. It defaults to 2 minutes. I think it is useless. |
Thanks for this info. I think we should keep it to not make a breaking change, but we should document it properly with the info above. I'll try to add cycles. Should it be a configuration option or service data option? |
For my opinion it should be a configuration option. It lets the user choose how often a message repeats. |
@MartinHjelmare The service call from the dev console works, but if I add the sound to the automation, it does not work. `2017-11-14 20:25:36 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service_call_id=140511511142072-84, domain=notify, service=lametric1, service_data=sound=bicycle, message=Lennart ist unterwegs.> |
@MartinHjelmare Automation rule is the right place, isn't it? I think, the best way would be, to make the definition of the sound in the config (notify.yaml or configuration.yaml)). One sound for all messages to lametric. Otherwise you have to add the sound to every notification and in my opinion there is no need to make different sounds for notifications on lametric from HA. |
I think we should keep the sound in the service call. That is the most flexible. Can you post your automation? I think you're missing the |
This is my automation rule:
|
Try this:
|
Failed config on config test. |
My fault. With data...data...it works. |
But it is another way like mentioned in the automation documentation of action. "You have to do it like this, but with lametric you have to go another way..." Is it possible to make it like:
For me it works, but usability? |
No the This is documented here: |
Yeah, I'll try do something on the cycles. I'll ping you when I have something. |
@MartinHjelmare Made it and created a pull request. |
Home Assistant release (
hass --version
):0.57.3
Python release (
python3 --version
):Python 3.5.2
Component/platform:
https://home-assistant.io/components/notify.lametric/
Description of problem:
Notification sound does not work.
Additional info:
Added
sound: notification
to /home/homeassistant/.homeassistant/notify.yaml
and component stops working.
In the code (lametric.py), the sound is added to the list of frames. And the list of frames is added to the model.
I think the sound has to be added to the model.
See:
https://github.com/keans/lmnotify/blob/master/lmnotify/models.py
and
http://lametric-documentation.readthedocs.io/en/latest/reference-docs/device-notifications.html
notify/lametric.py
If sound is added to the list of frames, component stops working.
It would be nice, if cycles were also implemented. At the moment, the notification is displayed once, also if display_time is set to 20 seconds. If cycle are configurable, the notification could be shown maybe 3 times or 0 for static.
The text was updated successfully, but these errors were encountered: