Giter Club home page Giter Club logo

shsonos's People

Contributors

spfuu 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  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

shsonos's Issues

alarms Objekt

Hi. Ich bekomme alle 2min pro Speaker diesen Fehler:
2014-08-15 21:14:28 ERROR Main Error parsing sonos broker response!
Error: 'SonosSpeaker' object has no attribute 'alarms'

Heute auf die aktuelle Version geupdated...

Gruss buffi

rincon-fehler

Hi,

bei mir kommt ein Fehler von einem Speaker, welcher aber gar nicht vorhanden ist bzw. definiert ist... (Error: 'rincon_000e588643b401400')

2014-05-01 14:48:09 ERROR Main Error parsing sonos broker response!
Error: 'rincon_000e588643b401400'
admin@smarthome:/usr/smarthome$ find -name "*.conf" | xargs grep -i "rincon"
./items/sonos.conf: sonos_uid = RINCON_000e58a488ce01400
./items/sonos.conf: sonos_uid = RINCON_000e5886437201400
./items/sonos.conf: sonos_uid = RINCON_000e588645e201400
./items/sonos.conf: sonos_uid = RINCON_123e5886437201400
admin@smarthome:/usr/smarthome$

sonos.play gives no attribute error

I was trying to use the plugin for smarthome.py.
Newest broker and plugin.

when I create a logic according the docs I get following error.

2016-12-09  14:56:56 ERROR    sonos        Logic: sonos, File: /usr/smarthome/logics/sonos_muziek.py, Line: 6, Method: <module>, Exception: 'Sonos' object has no attribute 'sonos_keuken'
Traceback (most recent call last):
  File "/usr/smarthome/lib/scheduler.py", line 355, in _task
    exec(obj.bytecode)
  File "/usr/smarthome/logics/sonos_muziek.py", line 6, in <module>
    sh.sonos.sonos_keuken.play = True
AttributeError: 'Sonos' object has no attribute 'sonos_keuken'

My logic is very simple

#!/usr/bin/env python
#

logger.info("Sonos")
if sh.gelijkvloers.voute.licht_bureau_a_u:
	sh.sonos.sonos_keuken.play(1)

Could you help me to understand how to send a command to a speaker using a logic?
It works when I do sh.sonos.get_version() but no speaker commands are recognized.
Looking into the code I could not figure out how you send the command to the speaker?
Thanks a lot!

sonos Warnung füllt Log

Hi

Bir mir füllt es das Log duch diese Fehlermldung.
Alle 2 Minuten wird das Log geschrieben. Nach einem Restart des Sonos Brokers ists dann wieder weg.
Ein Neustart des SH's ist nicht nötig.

Version: v0.6b1

Gruss Buffi

2015-05-22 11:02:22 WARNING sonos-update Could not send sonos notification: {'parameter': {'ip': '192.168.0.11', 'port': 9999}, 'command': 'client_subscribe'}. Error: HTTPConnectionPool(host='192.168.0.11', port=12900): Max retries exceeded with url: / (Caused by <class 'http.client.BadStatusLine'>: '')
2015-05-22 11:02:22 WARNING sonos-update Could not send sonos notification: {'parameter': {'group_command': 0, 'uid': 'rincon_000e588643b401400'}, 'command': 'current_state'}. Error: HTTPConnectionPool(host='192.168.0.11', port=12900): Max retries exceeded with url: / (Caused by <class 'http.client.BadStatusLine'>: '')
2015-05-22 11:02:22 WARNING sonos-update Could not send sonos notification: {'parameter': {'group_command': 0, 'uid': 'rincon_000e5886437201400'}, 'command': 'current_state'}. Error: HTTPConnectionPool(host='192.168.0.11', port=12900): Max retries exceeded with url: / (Caused by <class 'http.client.BadStatusLine'>: '')
2015-05-22 11:02:22 WARNING sonos-update Could not send sonos notification: {'parameter': {'group_command': 0, 'uid': 'rincon_000e58a488ce01400'}, 'command': 'current_state'}. Error: HTTPConnectionPool(host='192.168.0.11', port=12900): Max retries exceeded with url: / (Caused by <class 'http.client.BadStatusLine'>: '')
2015-05-22 11:02:22 WARNING sonos-update Could not send sonos notification: {'parameter': {'group_command': 0, 'uid': 'rincon_b8e93753801201400'}, 'command': 'current_state'}. Error: HTTPConnectionPool(host='192.168.0.11', port=12900): Max retries exceeded with url: / (Caused by <class 'http.client.BadStatusLine'>: '')
2015-05-22 11:02:22 WARNING sonos-update Could not send sonos notification: {'parameter': {'group_command': 0, 'uid': 'rincon_000e588645e201400'}, 'command': 'current_state'}. Error: HTTPConnectionPool(host='192.168.0.11', port=12900): Max retries exceeded with url: / (Caused by <class 'http.client.BadStatusLine'>: '')

track_titel fehler

2014-03-27 20:05:18 WARNING Main Item sonos.wohnen.track_title: value ['Radio SRF 3 ', ' srf3.ch ', ' facebook/srf3 ', ' twitter @Srf3'] does not match type str. Via Sonos

loglevel = error or critical logt auch info

Hi,
die angaben für den loglevel bewirken nichts.
"error" und "critical" loggen auch debug-ausgaben.
Mir fällt grad noch was ein: ist die loglevelanagbe evtl. case sensitive?

Error on client

2014-09-01 20:51:49 ERROR Main Error parsing sonos broker response!
Error: 'utf-8' codec can't decode byte 0xc0 in position 29: invalid start byte

Could you please add clear playlist functionality ?

If you want to play a alarm (ex. fire alarm) over all sonos speakers in loop mode, there is no method to clear the playlist first. If there are other music in it it will be played also ...

Thank you very much!

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.